History log of /rk3399_rockchip-uboot/drivers/core/root.c (Results 1 – 25 of 74)
Revision Date Author Comments
# 250a4bb1 16-May-2023 Xuhui Lin <xuhui.lin@rock-chips.com>

core: root: Fix for dm_scan_fdt_live

- Uptream's code is only bind pre-reloc nodes.
- But the more common design by rockchip is that U-Boot will bind both dm-pre-reloc
and dm-spl nodes.
- In order

core: root: Fix for dm_scan_fdt_live

- Uptream's code is only bind pre-reloc nodes.
- But the more common design by rockchip is that U-Boot will bind both dm-pre-reloc
and dm-spl nodes.
- In order to avoid strange problems and difficult to debug, this commit unifies the behavior
into dm-pre-reloc and dm-spl will both bind.

Signed-off-by: Xuhui Lin <xuhui.lin@rock-chips.com>
Change-Id: I8b5823da631fee255969435e01efea493f7663b1

show more ...


# 6d8950bf 30-Nov-2022 Joseph Chen <chenjh@rock-chips.com>

core: root: Bind "/firmware" under config control

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ibbf845b09049112f97fa4cab41ee272f64ab21db


# dfe24df3 12-Nov-2021 Joseph Chen <chenjh@rock-chips.com>

dm: firmware: bind "firmware" into DM with OF_LIVE disabled

Do the same as commit:
(5120375c5f dm: firmware: bind "firmware" into DM)

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I

dm: firmware: bind "firmware" into DM with OF_LIVE disabled

Do the same as commit:
(5120375c5f dm: firmware: bind "firmware" into DM)

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ic574a44bf3abcb49b2559f6a5897167f638d1bab

show more ...


# 5120375c 12-Apr-2021 Joseph Chen <chenjh@rock-chips.com>

dm: firmware: bind "firmware" into DM

There is no compatible property in "/firmware", let's
bind it by default.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ib00c097e51da3f77206e35

dm: firmware: bind "firmware" into DM

There is no compatible property in "/firmware", let's
bind it by default.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ib00c097e51da3f77206e351ea9e2519433d1c1ec

show more ...


# 1a4f6af8 02-Mar-2020 Joseph Chen <chenjh@rock-chips.com>

Merge branch 'next-dev' into thunder-boot


# b455f42c 03-Dec-2019 Joseph Chen <chenjh@rock-chips.com>

core: root: fix reloc condition error '||' => '&&'

Fixes: (930ceb1 driver: core/input: treat 'u-boot,dm-spl' as 'u-boot,dm-pre-reloc')

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id:

core: root: fix reloc condition error '||' => '&&'

Fixes: (930ceb1 driver: core/input: treat 'u-boot,dm-spl' as 'u-boot,dm-pre-reloc')

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ie0dad067451bc35ade865fbd9e52f43d0ec83aab

show more ...


# b8dc613c 19-Nov-2019 Joseph Chen <chenjh@rock-chips.com>

Merge branch 'next-dev' into thunder-boot


# 930ceb12 24-Oct-2019 Joseph Chen <chenjh@rock-chips.com>

driver: core/input: treat 'u-boot,dm-spl' as 'u-boot,dm-pre-reloc'

It works when CONFIG_USING_KERNEL_DTB is enabled, because we can
set either 'u-boot,dm-spl' or 'u-boot,dm-pre-reloc' for the node
t

driver: core/input: treat 'u-boot,dm-spl' as 'u-boot,dm-pre-reloc'

It works when CONFIG_USING_KERNEL_DTB is enabled, because we can
set either 'u-boot,dm-spl' or 'u-boot,dm-pre-reloc' for the node
that we can to leave in the u-boot.dtb.

Change-Id: Id3cec0c64ee55ca9bc1e5871e7ad5a2ebb4b1b6a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>

show more ...


# 0e00a84c 04-Mar-2018 Masahiro Yamada <yamada.masahiro@socionext.com>

UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h>

Thomas reported U-Boot failed to build host tools if libfdt-devel
package is installed because tools include libfdt header

UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h>

Thomas reported U-Boot failed to build host tools if libfdt-devel
package is installed because tools include libfdt headers from
/usr/include/ instead of using internal ones.

This commit moves the header code:
include/libfdt.h -> include/linux/libfdt.h
include/libfdt_env.h -> include/linux/libfdt_env.h

and replaces include directives:
#include <libfdt.h> -> #include <linux/libfdt.h>
#include <libfdt_env.h> -> #include <linux/libfdt_env.h>

Change-Id: I6c0f7e50e8b571106627f25ddac008a62bd2994e
Reported-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>

show more ...


# d2e8ba4e 07-Feb-2018 Kever Yang <kever.yang@rock-chips.com>

Revert "rockchip: add support to load and use kernel dtb"

This reverts commit af586a3812f626a0f7ff0aded53414ac6c08b15c.

Change-Id: Ie1f8012b89ac810e3bc6219459127bc9ee88c674
Signed-off-by: Kever Yan

Revert "rockchip: add support to load and use kernel dtb"

This reverts commit af586a3812f626a0f7ff0aded53414ac6c08b15c.

Change-Id: Ie1f8012b89ac810e3bc6219459127bc9ee88c674
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>

show more ...


# af586a38 24-Jan-2018 Kever Yang <kever.yang@rock-chips.com>

rockchip: add support to load and use kernel dtb

We are going to use a tiny dtb(with 'u-boot,dm-pre-reloc') in pre-relocate,
and then read kernel dtb and use it after relocate.
This feature only wor

rockchip: add support to load and use kernel dtb

We are going to use a tiny dtb(with 'u-boot,dm-pre-reloc') in pre-relocate,
and then read kernel dtb and use it after relocate.
This feature only works with CONFIG_OF_LIVE enabled now.

Change-Id: I429ccd90ef562a96f2f7916255e7e427ce8f451d
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>

show more ...


# d42197e4 29-Sep-2017 Masahiro Yamada <yamada.masahiro@socionext.com>

UPSTREAM: dm: replace dm_dbg() with pr_debug()

As we discussed before in ML, dm_dbg() causes undefined reference
error if #define DEBUG is added to users, but not drivers/core/util.c

We do not need

UPSTREAM: dm: replace dm_dbg() with pr_debug()

As we discussed before in ML, dm_dbg() causes undefined reference
error if #define DEBUG is added to users, but not drivers/core/util.c

We do not need this macro because we can use pr_debug() instead, and
it is pretty easy to enable it for the DM core by using ccflags-y.

Change-Id: I0732d1fec827d434b1163093920a3c5bd682803e
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit ceb9190969e458dcd1427566f762dbb9cfdfdc94)

show more ...


# 46fb92f0 04-Sep-2017 Patrice Chotard <patrice.chotard@st.com>

UPSTREAM: dm: core: add clocks node scan

Currently, all fixed-clock declared in "clocks" node in device tree
can be binded by clk_fixed_rate.c driver only if each of them have
the "simple-bus" compa

UPSTREAM: dm: core: add clocks node scan

Currently, all fixed-clock declared in "clocks" node in device tree
can be binded by clk_fixed_rate.c driver only if each of them have
the "simple-bus" compatible string.
This constraint has been invoked here [1].

This patch offers a solution to avoid adding "simple-bus" compatible
string to nodes that are not busses.

[1] https://patchwork.ozlabs.org/patch/558837/

Change-Id: Ia267df49d4f1b84115d5e600c0f0cd5e74105f53
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit e81c98649b7a67d43c5baae407430a242d3b26b9)

show more ...


# 19c8205e 19-May-2017 Simon Glass <sjg@chromium.org>

dm: core: Scan the live tree when setting up driver model

When starting up driver model with a live tree we need to scan the tree
for devices. Add code to handle this.

Signed-off-by: Simon Glass <s

dm: core: Scan the live tree when setting up driver model

When starting up driver model with a live tree we need to scan the tree
for devices. Add code to handle this.

Signed-off-by: Simon Glass <sjg@chromium.org>

show more ...


# f5b5719c 19-May-2017 Simon Glass <sjg@chromium.org>

dm: core: Update lists_bind_fdt() to use ofnode

Adjust this function to use an ofnode instead of an offset, so it can be
used with livetree. This involves updating all callers.

Signed-off-by: Simon

dm: core: Update lists_bind_fdt() to use ofnode

Adjust this function to use an ofnode instead of an offset, so it can be
used with livetree. This involves updating all callers.

Signed-off-by: Simon Glass <sjg@chromium.org>

show more ...


# 4984de2b 17-May-2017 Simon Glass <sjg@chromium.org>

dm: core: Add ofnode to represent device tree nodes

With live tree we need a struct device_node * to reference a node. With
the existing flat tree, we need an int offset. We need to unify these into

dm: core: Add ofnode to represent device tree nodes

With live tree we need a struct device_node * to reference a node. With
the existing flat tree, we need an int offset. We need to unify these into
a single value which can represent both.

Add an ofnode union for this and adjust existing code to move to this.

Signed-off-by: Simon Glass <sjg@chromium.org>

show more ...


# a771a04f 17-May-2017 Simon Glass <sjg@chromium.org>

dm: core: Dont export dm_scan_fdt_node()

This function is only used in one place. It is better to just declare it
internally since there is a simpler replacement for use outside the
driver-model cor

dm: core: Dont export dm_scan_fdt_node()

This function is only used in one place. It is better to just declare it
internally since there is a simpler replacement for use outside the
driver-model core code.

Signed-off-by: Simon Glass <sjg@chromium.org>

show more ...


# 433647a7 05-Apr-2017 Tom Rini <trini@konsulko.com>

Merge git://git.denx.de/u-boot-dm


# bc85aa40 27-Mar-2017 Stefan Roese <sr@denx.de>

dm: core: Add dm_remove_devices_flags() and hook it into device_remove()

The new function dm_remove_devices_flags() is intented for driver specific
last-stage cleanup operations before the OS is sta

dm: core: Add dm_remove_devices_flags() and hook it into device_remove()

The new function dm_remove_devices_flags() is intented for driver specific
last-stage cleanup operations before the OS is started. This patch adds
this functionality and hooks it into the common device_remove()
function.

Drivers wanting to use this feature for some last-stage removal calls,
need to add one of the DM_REMOVE_xx flags to their driver .flags.

Signed-off-by: Stefan Roese <sr@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>

show more ...


# 706865af 20-Mar-2017 Stefan Roese <sr@denx.de>

dm: core: Add flags parameter to device_remove()

This patch adds the flags parameter to device_remove() and changes all
calls to this function to provide the default value of DM_REMOVE_NORMAL
for "n

dm: core: Add flags parameter to device_remove()

This patch adds the flags parameter to device_remove() and changes all
calls to this function to provide the default value of DM_REMOVE_NORMAL
for "normal" device removal.

This is in preparation for the driver specific pre-OS (e.g. DMA
cancelling) remove support.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>

show more ...


# d6665580 13-Feb-2017 Lokesh Vutla <lokeshvutla@ti.com>

dm: core: Fix Handling of global_data moving in SPL

commit 2f11cd9121658 ("dm: core: Handle global_data moving in SPL")
handles relocation of GD in SPL if spl_init() is called before
board_init_r().

dm: core: Fix Handling of global_data moving in SPL

commit 2f11cd9121658 ("dm: core: Handle global_data moving in SPL")
handles relocation of GD in SPL if spl_init() is called before
board_init_r(). So, uclass_root.next need not be initialized always
and accessing uclass_root.next->prev gives an abort. Update the
uclass_root only if it is available.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>

show more ...


# d0ffda8e 23-Mar-2017 Tom Rini <trini@konsulko.com>

Merge git://git.denx.de/u-boot-dm


# b0d9512a 13-Feb-2017 Lokesh Vutla <lokeshvutla@ti.com>

dm: core: Fix Handling of global_data moving in SPL

commit 2f11cd9121658 ("dm: core: Handle global_data moving in SPL")
handles relocation of GD in SPL if spl_init() is called before
board_init_r().

dm: core: Fix Handling of global_data moving in SPL

commit 2f11cd9121658 ("dm: core: Handle global_data moving in SPL")
handles relocation of GD in SPL if spl_init() is called before
board_init_r(). So, uclass_root.next need not be initialized always
and accessing uclass_root.next->prev gives an abort. Update the
uclass_root only if it is available.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>

show more ...


# f9515756 17-Mar-2017 Tom Rini <trini@konsulko.com>

Merge git://git.denx.de/u-boot-rockchip

This includes support for rk3188 from Heiko Stübner and and rk3328 from
Kever Yang. Also included is SPL support for rk3399 and a fix for
rk3288 to get it bo

Merge git://git.denx.de/u-boot-rockchip

This includes support for rk3188 from Heiko Stübner and and rk3328 from
Kever Yang. Also included is SPL support for rk3399 and a fix for
rk3288 to get it booting again (spl_early_init()).

show more ...


# 27326c7e 18-Feb-2017 Heiko Stübner <heiko@sntech.de>

dm: allow limiting pre-reloc markings to spl or tpl

Right now the u-boot,dm-pre-reloc flag will make each marked node
always appear in both spl and tpl. But systems needing an additional
tpl might h

dm: allow limiting pre-reloc markings to spl or tpl

Right now the u-boot,dm-pre-reloc flag will make each marked node
always appear in both spl and tpl. But systems needing an additional
tpl might have special constraints for each, like the spl needing to
be very tiny.

So introduce two additional flags to mark nodes for only spl or tpl
environments and introduce a function dm_fdt_pre_reloc to automate
the necessary checks in code instances checking for pre-relocation
flags.

The behaviour of the original flag stays untouched and still marks
a node for both spl and tpl.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Kever Yang <kever.yang@rock-chips.com>

show more ...


123