| #
39d40ad5 |
| 27-Mar-2025 |
Joseph Chen <chenjh@rock-chips.com> |
lib: fdt: Introduce CONFIG_OF_ADDR_SIZE_AUTO_NOPARENT
In case of 64-bit U-Boot use 32-bit platform dtb.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: If3cbde606f3315849be2f366fab052
lib: fdt: Introduce CONFIG_OF_ADDR_SIZE_AUTO_NOPARENT
In case of 64-bit U-Boot use 32-bit platform dtb.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: If3cbde606f3315849be2f366fab0521f7b9af39a
show more ...
|
| #
486ce4e4 |
| 12-Sep-2024 |
Xuhui Lin <xuhui.lin@rock-chips.com> |
UPSTREAM: dm: core: Add address translation in fdt_get_resource
Today of_address_to_resource() is called only in ofnode_read_resource() for livetree support and fdt_get_resource() is called when liv
UPSTREAM: dm: core: Add address translation in fdt_get_resource
Today of_address_to_resource() is called only in ofnode_read_resource() for livetree support and fdt_get_resource() is called when livetree is not supported.
The fdt_get_resource() doesn't do the address translation so when it is required, but the address translation is done by ofnode_read_resource() caller, for example in drivers/firmware/scmi/smt.c::scmi_dt_get_smt_buffer() { ... ret = ofnode_read_resource(args.node, 0, &resource); if (ret) return ret;
faddr = cpu_to_fdt32(resource.start); paddr = ofnode_translate_address(args.node, &faddr); ...
The both behavior should be aligned and the address translation must be called in fdt_get_resource() and removed for each caller.
Change-Id: Ic4a3a19fe7401fc21e446793f453bbc1a8ab4001 Fixes: a44810123f9e ("dm: core: Add dev_read_resource() to read device resources") Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Xuhui Lin <xuhui.lin@rock-chips.com>
show more ...
|
| #
f36ea2f6 |
| 08-Jun-2018 |
Thomas Fitzsimmons <fitzsim@fitzsim.org> |
UPSTREAM: board: arm: Add support for Broadcom BCM7445
Add support for loading U-Boot on the Broadcom 7445 SoC. This port assumes Broadcom's BOLT bootloader is acting as the second stage bootloader
UPSTREAM: board: arm: Add support for Broadcom BCM7445
Add support for loading U-Boot on the Broadcom 7445 SoC. This port assumes Broadcom's BOLT bootloader is acting as the second stage bootloader, and U-Boot is acting as the third stage bootloader, loaded as an ELF program by BOLT.
Change-Id: I79d19ced6ed7c76a862b94162a92ceaddf09b062 Signed-off-by: Thomas Fitzsimmons <fitzsim@fitzsim.org> Cc: Stefan Roese <sr@denx.de> Cc: Tom Rini <trini@konsulko.com> Cc: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Jon Lin <jon.lin@rock-chips.com> (cherry picked from commit 894c3ad27fa940beb7fdc07d01dcfe81c03d0481)
show more ...
|
| #
3fc8bcd2 |
| 01-Jul-2021 |
Joseph Chen <chenjh@rock-chips.com> |
common: fdt: fix kern.dtb cleared by BSS zero operation
BSS section is right after u-boot-nodtb.bin, u-boot fdt should be relocated before BSS zero operation.
This is necessary if CONFIG_SKIP_RELOC
common: fdt: fix kern.dtb cleared by BSS zero operation
BSS section is right after u-boot-nodtb.bin, u-boot fdt should be relocated before BSS zero operation.
This is necessary if CONFIG_SKIP_RELOCATE_UBOOT=y.
- relocate the kern.dtb too. - correct ALIGN() for u-boot fdt end address but not totalsize. - set gd->fdt_blob_kern as NULL if invalid.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I8766e52f50652ed578430b75d4c3da1e4a69a8cf
show more ...
|
| #
00f93bdf |
| 29-Dec-2020 |
Joseph Chen <chenjh@rock-chips.com> |
drivers: pci: separate SPL & U-Boot proper build
It fixes SPL compile issue after PCI enabled.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Ic3d4a464defd2074be083effd25f513ae19d2e01
|
| #
1a4f6af8 |
| 02-Mar-2020 |
Joseph Chen <chenjh@rock-chips.com> |
Merge branch 'next-dev' into thunder-boot
|
| #
369e944c |
| 12-Dec-2019 |
Joseph Chen <chenjh@rock-chips.com> |
fdt/Makefile: make u-boot-dtb.bin 8-byte aligned
The dts/kern.dtb is appended after u-boot-dtb.bin for U-disk boot.
Make sure u-boot-dtb.bin is 8-byte aligned to avoid data-abort on calling: fdt_ch
fdt/Makefile: make u-boot-dtb.bin 8-byte aligned
The dts/kern.dtb is appended after u-boot-dtb.bin for U-disk boot.
Make sure u-boot-dtb.bin is 8-byte aligned to avoid data-abort on calling: fdt_check_header(gd->fdt_blob_kern).
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Id5f2daf0c5446e7ea828cb970d3d4879e3acda86
show more ...
|
| #
b8dc613c |
| 19-Nov-2019 |
Joseph Chen <chenjh@rock-chips.com> |
Merge branch 'next-dev' into thunder-boot
|
| #
5704c899 |
| 21-Oct-2019 |
Joseph Chen <chenjh@rock-chips.com> |
fdtdec: support pack "kern.dtb" to the end of u-boot.bin
- It provides a way to promise kernel dtb can be loaded successfully even when the image is damaged. - This makes developers easily to add
fdtdec: support pack "kern.dtb" to the end of u-boot.bin
- It provides a way to promise kernel dtb can be loaded successfully even when the image is damaged. - This makes developers easily to add what they what just like a "U-Boot" dtb. - The kern.dtb file is pack into the end of u-boot.bin while ./dts/kern.dtb is exist.
Change-Id: I93a36a9c65ea8719e5610cdcbcc7708e5337c53f Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
show more ...
|
| #
e91ae64f |
| 25-Jun-2019 |
Yifeng Zhao <zyf@rock-chips.com> |
lib: rockchip: nand: modify udevice_id to compatible with NAND driver include FTL
Modify the opensource nandc driver to compatible with the NAND driver include FTL,which used udevice_id "rockchip,rk
lib: rockchip: nand: modify udevice_id to compatible with NAND driver include FTL
Modify the opensource nandc driver to compatible with the NAND driver include FTL,which used udevice_id "rockchip,rk-nandc".
Change-Id: I67b9beb43b9935f88c98802f6df3507248324a12 Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
show more ...
|
| #
e217fe3c |
| 21-Dec-2018 |
Keerthy <j-keerthy@ti.com> |
lib: fdtdec: fdtdec_get_addr_size_fixed remove checks
With 8 bytes addressing even on 32 bit machines these checks are no longer valid. Remove them.
Signed-off-by: Keerthy <j-keerthy@ti.com> Review
lib: fdtdec: fdtdec_get_addr_size_fixed remove checks
With 8 bytes addressing even on 32 bit machines these checks are no longer valid. Remove them.
Signed-off-by: Keerthy <j-keerthy@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org> (cherry picked from commit f51f6715a5013f37620c38f0430e21d4736e235a) Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I07d143dbd4dfeff1ce99d081d1279c4f70fa4e8f
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 ...
|
| #
6222c401 |
| 21-Nov-2017 |
Goldschmidt Simon <sgoldschmidt@de.pepperl-fuchs.com> |
spl: make CONFIG_OF_EMBED pass dts through fdtgrep
Building spl with CONFIG_OF_EMBED enabled results in an error message on my board: "SPL image too big". This is because the fdtgrep build step is o
spl: make CONFIG_OF_EMBED pass dts through fdtgrep
Building spl with CONFIG_OF_EMBED enabled results in an error message on my board: "SPL image too big". This is because the fdtgrep build step is only executed for CONFIG_OF_SEPARATE.
Fix this by moving the fdtgrep build step ('cmd_fdtgreo') from scripts/Makefile.spl to dts/Makefile so that the reduced dtb is available for all kinds of spl builds.
The resulting variable name for the embedded device tree blob changes, too, which is why common.h and fdtdec.c have tiny changes.
Change-Id: I2bf2d9780a544ac602752527d17f14aa6b12c5a2 Signed-off-by: Simon Goldschmidt <sgoldschmidt@de.pepperl-fuchs.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
|
| #
acda6ec1 |
| 27-Nov-2017 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
UPSTREAM: fdtdec: Support parsing multiple /memory nodes
It is legal to have multiple /memory nodes in a device tree . Currently, fdtdec_setup_memory_size() only supports parsing the first node . Th
UPSTREAM: fdtdec: Support parsing multiple /memory nodes
It is legal to have multiple /memory nodes in a device tree . Currently, fdtdec_setup_memory_size() only supports parsing the first node . This patch extends the function such that if a particular /memory node does no longer have further "reg" entries and CONFIG_NR_DRAM_BANKS still allows for more DRAM banks, the code moves on to the next memory node and checks it's "reg"s. This makes it possible to handle both systems with single memory node with multiple entries and systems with multiple memory nodes with single entry.
Change-Id: Idc8b4bebc916b6a6bc0d2deb3c4008921d268d1e Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Tom Rini <trini@konsulko.com> Cc: Simon Glass <sjg@chromium.org> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 942ee0933e881ff500aae7e42309bf6abbc495d4)
show more ...
|
| #
476f6045 |
| 15-Sep-2017 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: spl: dm: Make it possible for the SPL to pick its own DTB from a FIT
u-boot can be embedded within a FIT image with multiple DTBs. It then selects at run-time which one is best suited for
UPSTREAM: spl: dm: Make it possible for the SPL to pick its own DTB from a FIT
u-boot can be embedded within a FIT image with multiple DTBs. It then selects at run-time which one is best suited for the platform. Use the same principle here for the SPL: put the DTBs in a FIT image, compress it (LZO, GZIP, or no compression) and append it at the end of the SPL.
Change-Id: Ifebdd14bdf1abc923d228f9f3947e719c8645356 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> [trini: Move default y of SPL_MULTI_DTB_FIT_DYN_ALLOC to it being the default choice if SYS_MALLOC_F, drop spl.h include from lib/fdtdec.c it's unused.] Signed-off-by Tom Rini <trini@konsulko.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 2f57c95100f231de0f4e0301237cbe477e09084b)
show more ...
|
| #
6f869ebd |
| 15-Sep-2017 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: fdtdec: sort include files
Sort include files in accordance to U-Boot coding style.
Change-Id: I3c7992edd31468f4105a95b86a6f05108e751e92 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.co
UPSTREAM: fdtdec: sort include files
Sort include files in accordance to U-Boot coding style.
Change-Id: I3c7992edd31468f4105a95b86a6f05108e751e92 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 035d64025c3e32a2f372981f86fc69255feeb2b2)
show more ...
|
| #
2bbcffb1 |
| 15-Sep-2017 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: dts: renamed FIT_EMBED to MULTI_DTB_FIT and moved it to the dts Kconfig
CONFIG_FIT_EMBED might be confused with CONFIG_OF_EMBED, rename it MULTI_DTB_FIT as it is able to get a DTB from a F
UPSTREAM: dts: renamed FIT_EMBED to MULTI_DTB_FIT and moved it to the dts Kconfig
CONFIG_FIT_EMBED might be confused with CONFIG_OF_EMBED, rename it MULTI_DTB_FIT as it is able to get a DTB from a FIT image containing multiple DTBs. Also move the option to the Kconfig dedicated to the DTS options and create a README for this feature.
Change-Id: Ide55c474339db3ccd5e20499c54c8bb41fe3a2c9 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 11955590a284ecb75892aad5f1174ca1b94a709b)
show more ...
|
| #
a3584243 |
| 17-Aug-2017 |
Paweł Jarosz <paweljarosz3691@gmail.com> |
mtd: nand: add the rockchip nand controller driver
Add basic Rockchip nand driver.
Driver in current state has 16, 24, 40, 60 per 1024B BCH/ECC ability and 8 bit asynchronous flash interface suppor
mtd: nand: add the rockchip nand controller driver
Add basic Rockchip nand driver.
Driver in current state has 16, 24, 40, 60 per 1024B BCH/ECC ability and 8 bit asynchronous flash interface support. Other features will come later.
Change-Id: I8e766afe7358a2357d75cfe094c4cd6fe92bd281 Signed-off-by: Paweł Jarosz <paweljarosz3691@gmail.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
|
| #
bfebc8c9 |
| 03-Aug-2017 |
Simon Glass <sjg@chromium.org> |
env: Rename getenv_hex(), getenv_yesno(), getenv_ulong()
We are now using an env_ prefix for environment functions. Rename these for consistency. Also add function comments in common.h.
Suggested-b
env: Rename getenv_hex(), getenv_yesno(), getenv_ulong()
We are now using an env_ prefix for environment functions. Rename these for consistency. Also add function comments in common.h.
Suggested-by: Wolfgang Denk <wd@denx.de> Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
f6a4093b |
| 25-Jul-2017 |
Simon Glass <sjg@chromium.org> |
fdtdec: Drop old compatible values
These are not needed now since the drivers now use driver model. Drop them.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Marcel Ziswiler <marcel.ziswi
fdtdec: Drop old compatible values
These are not needed now since the drivers now use driver model. Drop them.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1 Tested-by: Stephen Warren <swarren@nvidia.com>
show more ...
|
| #
2059ecf3 |
| 16-Jun-2017 |
Cooper Jr., Franklin <fcooper@ti.com> |
fdt: Enable selecting correct DTB from appended FIT Image
This patch gives U-boot the runtime support to have the board specific code decide which FDT to use. This is especially useful for devices t
fdt: Enable selecting correct DTB from appended FIT Image
This patch gives U-boot the runtime support to have the board specific code decide which FDT to use. This is especially useful for devices that need this type of runtime determination and also doesn't use SPL.
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| #
dd31be21 |
| 04-Jun-2017 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-fdt
|
| #
c69380f8 |
| 27-May-2017 |
Simon Glass <sjg@chromium.org> |
fdt: Correct cast for sandbox in fdtdec_setup_memory_size()
This gives a warning with some native compilers:
lib/fdtdec.c:1203:8: warning: format ‘%llx’ expects argument of type ‘long long unsig
fdt: Correct cast for sandbox in fdtdec_setup_memory_size()
This gives a warning with some native compilers:
lib/fdtdec.c:1203:8: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
Fix it with a cast.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
2ec9d171 |
| 19-May-2017 |
Simon Glass <sjg@chromium.org> |
cros_ec: Convert to support live tree
Convert this driver to support the live device tree and remove the old fdtdec support.
The keyboard is not yet converted.
Signed-off-by: Simon Glass <sjg@chro
cros_ec: Convert to support live tree
Convert this driver to support the live device tree and remove the old fdtdec support.
The keyboard is not yet converted.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
b7e0d73b |
| 19-May-2017 |
Simon Glass <sjg@chromium.org> |
dm: core: Add a place to put extra device-tree reading functions
Some functions deal with structured data rather than simple data types. It makes sense to have these in their own file. For now this
dm: core: Add a place to put extra device-tree reading functions
Some functions deal with structured data rather than simple data types. It makes sense to have these in their own file. For now this just has a function to read a flashmap entry. Move the data types also.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|