u-boot-2016/common
mario.six@gdsys.cc 301ea68621 dm: Add callback to modify the device tree
Certain boards come in different variations by way of utilizing daughter
boards, for example. These boards might contain additional chips, which
are added to the main board's busses, e.g. I2C.

The device tree support for such boards would either, quite naturally,
employ the overlay mechanism to add such chips to the tree, or would use
one large default device tree, and delete the devices that are actually
not present.

Regardless of approach, even on the U-Boot level, a modification of the
device tree is a prerequisite to have such modular families of boards
supported properly.

Therefore, we add an option to make the U-Boot device tree (the actual
copy later used by the driver model) writeable, and add a callback
method that allows boards to modify the device tree at an early stage,
at which, hopefully, also the application of device tree overlays will
be possible.

Signed-off-by: Mario Six <mario.six@gdsys.cc>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Stefan Roese <sr@denx.de>
(cherry picked from commit 2a792753d6)
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>

Change-Id: I9a5fe4c6d681aaa5c68edd8a2a39d36bf2340fdf
2022-01-10 17:48:07 -08:00
..
init qca: common: include the correct headers for global descriptor data size 2016-11-30 14:15:49 +05:30
spl Merge git://git.denx.de/u-boot-rockchip 2015-12-16 14:50:03 -05:00
autoboot.c ipq: Add support for failsafe boot 2022-01-03 21:05:45 -08:00
bedbug.c Consolidate bool type 2013-04-01 16:33:52 -04:00
board_f.c dm: Add callback to modify the device tree 2022-01-10 17:48:07 -08:00
board_info.c generic-board: allow showing custom board info 2015-08-13 07:19:36 -04:00
board_r.c ipq: Add support for failsafe boot 2022-01-03 21:05:45 -08:00
bootm.c Merge "ipq807x: Detect NOC error" 2019-10-16 21:06:29 -07:00
bootm_os.c VxWorks: fixup MAC address for VxWorks 2015-12-12 15:56:08 -05:00
bootretry.c Rename bootretry functions and remove #ifdefs 2014-05-29 17:49:00 -04:00
bootstage.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
bouncebuf.c Fix a few printf argument verification warnings 2014-09-15 13:32:55 -04:00
cli.c common: cli: avoid memory leak 2016-01-04 12:25:35 -05:00
cli_hush.c common: cli_hush: Fix up simple typo 2015-12-12 15:56:10 -05:00
cli_readline.c spl, common, serial: build SPL without serial support 2015-08-12 20:47:13 -04:00
cli_simple.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_aes.c IPQ807x: Implement SCM interface for AES 256 2020-08-05 06:48:06 -07:00
cmd_ambapp.c sparc: leon3: Moved GRLIB core header files to common include/grlib directory 2015-11-13 10:23:33 +02:00
cmd_armflash.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_bdinfo.c Reserve secure memory 2015-12-15 08:57:32 +08:00
cmd_bedbug.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_blob.c armv8/ls1043ardb: add SECURE BOOT target for NOR 2015-12-15 08:57:35 +08:00
cmd_bmp.c Remove typedefs from bmp_layout.h 2015-06-10 19:26:54 -06:00
cmd_boot.c common: cmd_boot: Add stack canary test command. 2019-06-10 11:48:03 +05:30
cmd_bootldr.c Blackfin: bootldr: use common defines 2011-04-08 00:44:27 -04:00
cmd_bootm.c Combine bootm_find_<thing> functions together 2015-05-28 08:18:21 -04:00
cmd_bootmenu.c Remove unnecessary use of hush header file 2014-05-29 17:45:31 -04:00
cmd_bootstage.c Kconfig: Move CONFIG_BOOTSTAGE to Kconfig 2015-04-18 11:11:37 -06:00
cmd_cache.c common: commands: make commands static 2014-07-18 17:53:23 -04:00
cmd_cbfs.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cmd_clk.c common: Add new clk command 2014-02-04 16:32:20 +01:00
cmd_console.c video: Drop DEV_FLAGS_SYSTEM flag 2015-11-05 08:22:21 +01:00
cmd_cplbinfo.c various cmd_* files: fixed layout a little bit 2010-08-09 01:07:37 +02:00
cmd_cpu.c dm: cpu: Fix undefined ENOSYS build error 2015-07-14 18:03:15 -06:00
cmd_cramfs.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cmd_dataflash_mmc_mux.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cmd_date.c cmd: date: Change to use CONFIG_DM_RTC instead of CONFIG_DM_I2C 2015-07-14 18:03:16 -06:00
cmd_dcr.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_demo.c common: Make sure arch-specific map_sysmem() is defined 2015-04-18 11:11:09 -06:00
cmd_dfu.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_diag.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cmd_disk.c ipq807x: Changes for fixing kw issues 2018-03-06 14:06:48 +05:30
cmd_display.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cmd_dtt.c Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
cmd_echo.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cmd_eeprom.c eeprom: fix eeprom write procedure 2015-12-16 10:31:31 -05:00
cmd_efi.c efi: Add a command to display the memory map 2015-08-05 08:44:07 -06:00
cmd_elf.c cmd: bootvx: Add asmlinkage to the VxWorks x86 entry 2015-10-21 07:46:26 -06:00
cmd_ethsw.c drivers/net/vsc9953: Add commands for VLAN ingress filtering 2015-09-21 08:29:48 -07:00
cmd_exit.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cmd_ext2.c Fix help text of ext2load and fatload. 2014-07-22 07:44:25 -04:00
cmd_ext4.c ext4: Prepare API change for files greater than 2GB 2014-11-23 06:49:04 -05:00
cmd_fastboot.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_fat.c ipq: Enable crashdump collection in usb device 2019-05-30 20:17:55 +05:30
cmd_fdc.c bootm: make use of legacy image format configurable 2014-06-05 14:44:56 -04:00
cmd_fdt.c cmd_fdt: save fdtaddr in hex format 2015-07-20 07:21:47 -06:00
cmd_fitupd.c update: tftp: dfu: Extend update_tftp() function to support DFU 2015-09-07 13:41:05 +02:00
cmd_flash.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cmd_flashwrite.c ipq: Add support for failsafe boot 2022-01-03 21:05:45 -08:00
cmd_fpga.c fpga: Extend dump description 2015-01-30 09:19:17 -05:00
cmd_fpgad.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_fs.c fs: Add command to retrieve the filesystem type 2015-01-29 13:36:54 -05:00
cmd_fs_uuid.c fs: make it possible to read the filesystem UUID 2014-11-23 06:49:01 -05:00
cmd_fuse.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_gettime.c cmd: Fix gettime command help 2015-01-30 09:19:16 -05:00
cmd_gpio.c Merge git://git.denx.de/u-boot-dm 2014-10-26 14:03:08 -04:00
cmd_gpt.c part:efi: add bootable parameter in gpt command 2015-11-23 11:01:52 -05:00
cmd_hash.c Fix hash verification 2014-12-29 16:31:24 -05:00
cmd_help.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cmd_host.c sandbox: Implement host dev [device] 2015-04-19 14:45:57 -06:00
cmd_i2c.c i2c: cmd: Relocate subcommands when MANUAL_RELOC 2015-12-07 10:14:30 +01:00
cmd_ide.c cmd_ide: Eliminate build warnings in atapi_inquiry() 2015-06-04 02:39:39 -06:00
cmd_immap.c powerpc: mpc8260: consolidate CONFIG_MPC8260 and CONFIG_8260 2014-03-07 10:59:06 -05:00
cmd_ini.c SPDX-License-Identifier: convert BSD-3-Clause files 2013-08-19 15:45:35 -04:00
cmd_io.c common/cmd_io.c: Fix incorrect help for iod/iow 2014-10-27 17:54:09 -04:00
cmd_iotrace.c Add an I/O tracing feature 2014-06-20 11:54:29 -06:00
cmd_irq.c Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
cmd_itest.c itest: add missing break statements to evalexp() 2015-11-18 15:29:00 -05:00
cmd_jffs2.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cmd_ldrinfo.c Blackfin: ldrinfo: new command 2011-04-08 00:44:27 -04:00
cmd_led.c cmd_led: Extend led command to support blinking and more leds 2015-04-23 09:43:08 -04:00
cmd_license.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cmd_load.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_log.c stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
cmd_lzmadec.c common: Make sure arch-specific map_sysmem() is defined 2015-04-18 11:11:09 -06:00
cmd_mac.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cmd_md5sum.c common: Make sure arch-specific map_sysmem() is defined 2015-04-18 11:11:09 -06:00
cmd_mdio.c net: add support for extended registers to mdio command 2013-11-22 16:50:52 -06:00
cmd_mem.c fix always succesful memory test 2016-01-08 10:15:47 -05:00
cmd_mfsl.c common: fsl: Fix broken SPDX-License-Identifier change 2013-10-16 09:24:38 -04:00
cmd_mii.c mii: Fix the device name command 2020-03-05 15:46:34 +05:30
cmd_misc.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_mmc.c ARM: mmc: Added power-on write protection support 2018-03-12 05:25:56 -07:00
cmd_mmc_spi.c mmc: Split mmc struct, rework mmc initialization (v2) 2014-03-24 12:58:56 +02:00
cmd_mp.c cmd_mp: Add support for showing all CPU status by one command 2015-07-28 11:56:29 +02:00
cmd_mtdparts.c fdt: ipq5018: Add support for tiny nor fixup 2020-06-12 05:44:40 -07:00
cmd_nand.c driver: mtd: Add support to read entire ONFI parameter page structure. 2019-06-11 22:51:13 +05:30
cmd_net.c net: cosmetic: Fix checkpatch.pl failures in net.c 2015-04-18 11:11:35 -06:00
cmd_nvedit.c ipq806x: Customized environment size handling 2018-02-19 16:11:21 +05:30
cmd_onenand.c mtd, nand: Move common functions from cmd_nand.c to common place 2015-06-30 00:40:11 +05:30
cmd_otp.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_part.c part: fix "part list ... -bootable varname" to use hex 2015-12-13 20:22:01 -05:00
cmd_pci.c dm: pci: Convert 'pci' command to driver model 2015-12-01 06:26:38 -07:00
cmd_pcmcia.c powerpc: mpc824x: remove MPC824X cpu support 2015-01-05 12:08:55 -05:00
cmd_pmic.c common: cmd pmic: command cleanup 2015-05-14 19:58:34 -06:00
cmd_portio.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cmd_pxe.c pxe: add AArch64 image support 2015-07-27 15:53:48 -07:00
cmd_read.c Add a command to read raw blocks from a partition 2012-12-11 13:17:33 -07:00
cmd_reginfo.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cmd_regulator.c dm: pmic: Display the regulator limits on error 2015-08-05 21:06:13 -06:00
cmd_reiser.c cmd_reiser: normalize 'file not found' errors 2013-11-08 15:25:13 -05:00
cmd_remoteproc.c drivers: Introduce a simplified remoteproc framework 2015-10-22 14:18:38 -04:00
cmd_sata.c cmd_sata: implement sata stop command 2014-11-24 12:00:00 +01:00
cmd_scsi.c scsi: fix compiler warning with DEBUG and 48bit LBAs 2015-07-11 08:01:54 -04:00
cmd_setexpr.c Use map_sysmem when accessing memory in setexpr 2015-05-14 07:03:15 -04:00
cmd_sf.c sf: Fix sram size issue for 4GB DDR 2021-09-28 17:21:14 +05:30
cmd_sha1sum.c includes: move openssl headers to include/u-boot 2014-06-19 11:19:04 -04:00
cmd_softswitch.c blackfin: bf609: add softswitch config command 2013-05-13 16:26:12 +08:00
cmd_sound.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cmd_source.c common/cmd_source.c: Fix the source command failure under 64-bit platform 2015-08-12 20:47:56 -04:00
cmd_spi.c dm: spi: Adjust cmd_spi to work with driver model 2014-10-22 10:36:47 -06:00
cmd_spibootldr.c various cmd_* files: fixed layout a little bit 2010-08-09 01:07:37 +02:00
cmd_spl.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cmd_strings.c Convert cmd_usage() calls in common to use a return value 2012-03-06 21:09:46 +01:00
cmd_terminal.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cmd_test.c mtd, nand: Move common functions from cmd_nand.c to common place 2015-06-30 00:40:11 +05:30
cmd_thordown.c usb: gadget: thor: Invoke board specific USB cleanup interface 2015-04-14 05:48:11 +02:00
cmd_time.c cmd_time: do not show ticks 2014-05-12 15:19:46 -04:00
cmd_tpm.c dm: tpm: Remove every compilation switch for TPM driver model 2015-10-23 09:42:28 -06:00
cmd_tpm_test.c dm: tpm: Add a 'tpmtest' command 2015-08-31 07:57:29 -06:00
cmd_trace.c common: Make sure arch-specific map_sysmem() is defined 2015-04-18 11:11:09 -06:00
cmd_tsi148.c dm: pci: Add support for PCI driver matching 2015-07-21 17:39:38 -06:00
cmd_ubi.c mtd: qpic_nand: add support to switch between 2K & 4K layout 2021-10-22 19:23:10 +05:30
cmd_ubifs.c ubifs: Modify ubifs u-boot wrapper function prototypes for generic fs use 2015-10-24 13:50:31 -04:00
cmd_universe.c Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
cmd_unzip.c unzip: add gzwrite command to write compressed image to block device 2015-04-22 12:14:55 -04:00
cmd_usb.c usb: Refactor USB tree output code for testing 2015-11-19 20:27:51 -07:00
cmd_usb_mass_storage.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_version.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cmd_ximg.c dcache: Skipping dcache flush when no destination pointer 2018-06-08 17:50:42 +05:30
cmd_yaffs2.c cmd_yaffs: Clean up command usage messages 2015-03-05 20:13:20 -05:00
cmd_zfs.c cmd_zfs: normalize 'file not found' errors 2013-11-08 15:25:13 -05:00
cmd_zip.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
command.c ipq806x: Added multicore support 2018-04-27 11:47:47 +05:30
console.c lib/tiny-printf.c: Add tiny printf function for space limited environments 2015-11-23 10:56:07 -05:00
cros_ec.c cros_ec: Remove unused cros_ec_board_init() function 2015-04-18 11:11:16 -06:00
ddr_spd.c driver/ddr/fsl: Add DDR4 support to Freescale DDR driver 2014-04-22 17:58:48 -07:00
dlmalloc.c ipq50xx: Added support for compressed dtb in u-boot 2020-09-16 00:01:29 -07:00
dlmalloc.src Consolidate bool type 2013-04-01 16:33:52 -04:00
edid.c edid: Add a function to read detailed monitor timings 2015-05-13 09:24:10 -07:00
env_attr.c env: Add regex support to env_attrs 2015-05-21 09:13:19 -04:00
env_callback.c common: env: initialize scalar variable 2016-01-04 12:25:35 -05:00
env_common.c ipq807x: Adding SOC version to default env. 2018-11-09 16:29:18 +05:30
env_dataflash.c env: Add env_export() wrapper 2014-03-21 16:43:59 -04:00
env_eeprom.c eeprom: Add bus argument to eeprom_init() 2015-11-21 21:50:26 -05:00
env_embedded.c nand_spl: remove nand_spl infrastructure 2014-06-05 17:01:59 -04:00
env_fat.c IPQ5018: Redcued U-boot reserved memory to 2MB 2020-08-27 02:19:12 -07:00
env_flags.c common: env: initialize scalar variable 2016-01-04 12:25:35 -05:00
env_flash.c env_flash.c: Drop unused variables 2014-04-17 17:44:36 -04:00
env_mmc.c IPQ5018: Redcued U-boot reserved memory to 2MB 2020-08-27 02:19:12 -07:00
env_nand.c IPQ5018: Redcued U-boot reserved memory to 2MB 2020-08-27 02:19:12 -07:00
env_nowhere.c qca: Modified board spcific Makefile to support CONFIG_ENV_IS_NOWHERE. 2016-10-07 01:41:05 -07:00
env_nvram.c env: Add env_export() wrapper 2014-03-21 16:43:59 -04:00
env_onenand.c env: Add env_export() wrapper 2014-03-21 16:43:59 -04:00
env_remote.c Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
env_sf.c saveenv: spi-nor: fix for data abort issue 2020-08-04 20:01:42 +05:30
env_ubi.c IPQ5018: Redcued U-boot reserved memory to 2MB 2020-08-27 02:19:12 -07:00
exports.c board/ls2085rdb: Export functions for standalone AQ FW load apps 2015-07-20 11:44:37 -07:00
fb_mmc.c mmc: Use lldiv() for 64-bit division in write_raw_image() 2015-11-12 15:58:59 -05:00
fb_nand.c sparse: Rename the file and header 2015-11-12 13:18:59 -05:00
fdt_support.c fdt: fix address cell count checking in fdt_translate_address() 2016-01-07 11:28:04 -07:00
flash.c mpc8xx: remove SPD823TS board support 2015-01-05 12:08:51 -05:00
hash.c autoboot.c: Add feature to stop autobooting via SHA256 encrypted password 2015-06-08 17:32:40 -04:00
hwconfig.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
image-android.c image: fix support for Android boot images with no ramdisk 2015-10-11 17:12:10 -04:00
image-fdt.c common: image-fdt: correct fdt_blob for IMAGE_FORMAT_LEGACY 2015-12-05 18:22:15 -05:00
image-fit.c ipq806x: Added support for compressed dtb images 2016-10-26 17:04:12 +05:30
image-sig.c image: Convert to use fdt_for_each_subnode macro 2015-02-16 12:41:41 -05:00
image-sparse.c sparse: Rename the file and header 2015-11-12 13:18:59 -05:00
image.c tools: zynqimage: Add Xilinx Zynq boot header generation to mkimage 2015-11-19 13:09:21 +01:00
iomux.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
iotrace.c common: Make sure arch-specific map_sysmem() is defined 2015-04-18 11:11:09 -06:00
kallsyms.c Add support for Linux-like kallsysms 2009-06-12 20:45:48 +02:00
Kconfig ipq807x: Added MMC Kconfig options 2016-04-01 02:24:46 -07:00
kgdb.c kgdb: Remove first_entry for kgdb 2014-09-16 12:23:56 -04:00
kgdb_stubs.c kgdb: add default generic stubs 2010-01-18 00:23:00 +01:00
lcd.c Revert "LCD: Add an option to skip registration as an stdio output" 2015-12-02 15:46:58 +01:00
lcd_console.c common/lcd_console: introduce display/framebuffer rotation 2015-04-18 17:40:37 +02:00
lcd_console_rotation.c common/lcd_console: introduce display/framebuffer rotation 2015-04-18 17:40:37 +02:00
lcd_simplefb.c common/lcd_simplefb: Add support for 32bit organized framebuffers 2015-07-23 18:10:58 +02:00
lynxkdi.c checkpatch whitespace cleanups 2011-10-22 01:13:35 +02:00
main.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
Makefile mtd: ipq5018: remove CONFIG_CMD_NAND from tiny nor 2020-08-12 00:04:52 -07:00
malloc_simple.c Merge git://git.denx.de/u-boot-x86 2015-10-21 20:47:40 -04:00
memsize.c common/memsize.c: Coding style cleanup 2015-01-14 11:35:43 -05:00
menu.c menu: Return an error code if Ctrl-C is pressed 2015-05-27 13:35:54 -04:00
miiphyutil.c common: miiphyutil: avoid memory leak 2015-12-05 18:22:24 -05:00
modem.c modem.c: Switch to debug() from dbg found in common/console.c 2014-10-25 07:27:37 -04:00
s_record.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
splash.c lcd: split splash code into its own function 2015-02-10 13:31:58 +01:00
splash_source.c splash_source: add support for filesystem formatted sata 2015-11-16 12:01:35 +01:00
stdio.c dm: stdio: Plumb in the new keyboard uclass 2015-11-19 20:13:40 -07:00
system_map.c Add support for Linux-like kallsysms 2009-06-12 20:45:48 +02:00
update.c update: tftp: dfu: Extend update_tftp() function to support DFU 2015-09-07 13:41:05 +02:00
usb.c ipq9574: USB: Add delay for Get descriptor 2021-11-22 23:01:33 -08:00
usb_hub.c usb: hub: Translate USB 3.0 hub port status into old version 2018-06-05 15:55:12 +05:30
usb_kbd.c dm: usb: Add a remove() method for USB keyboards 2016-01-07 11:28:03 -07:00
usb_storage.c ipq: Enable crashdump collection in usb device 2019-05-30 20:17:55 +05:30
xyzModem.c common/xyzModem.c: move empty statements to newline 2014-06-11 16:27:06 -04:00