u-boot/arch/arm/mach-uniphier
Masahiro Yamada 8ea4f49a47 ARM: uniphier: set DTB file name to fdt_file environment
When we want to boot Linux with a DTB file downloaded from a TFTP
server or somewhere, we need to know the file name to be downloaded.

Assume the U-Boot configuration is shared among some similar boards.
If they are similar enough, the difference only appears in device
trees.  The build procedure would be like this:

 - Board A:  make foo_common_defconfig && make DEVICE_TREE=foo_board_a
 - Board B:  make foo_common_defconfig && make DEVICE_TREE=foo_board_b
 - Board C:  make foo_common_defconfig && make DEVICE_TREE=foo_board_c

In this case, the U-Boot image contains nothing about the DTB file name
it is running with.  (CONFIG_DEFAULT_DEVICE_TREE is not helpful for this
purpose because it is painful to change it from "make menuconfig" for
each board.)

This commit allows to lookup the DTB file name based on the compatible
string and set it to "fdt_file" environment.  Then "tftpboot $fdt_file"
will download the file we want.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2015-12-23 00:08:56 +09:00
..
bcu Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
boot-mode Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
clk Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
dram ARM: uniphier: merge umc/ and ddrphy/ into a single directory 2015-12-23 00:08:55 +09:00
early-clk Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
early-pinctrl Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
include/mach ARM: uniphier: add macros and revision IDs for sLD11 and LD10 2015-12-23 00:08:48 +09:00
init ARM: uniphier: call uniphier_get_board_param() without FDT blob 2015-12-23 00:08:40 +09:00
memconf Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
pinctrl Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
pll Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
sbc Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
board_common.c ARM: uniphier: refactor LED function 2015-09-25 00:27:53 +09:00
board_early_init_f.c ARM: uniphier: add ProXstream2 and PH1-LD6b support 2015-09-25 00:59:33 +09:00
board_early_init_r.c ARM: uniphier: refactor LED function 2015-09-25 00:27:53 +09:00
board_late_init.c ARM: uniphier: set DTB file name to fdt_file environment 2015-12-23 00:08:56 +09:00
boards.c ARM: uniphier: split ProXstream2 board data and change DDR frequency 2015-12-23 00:08:41 +09:00
cache_uniphier.c ARM: UniPhier: replace <asm/io.h> with <linux/io.h> 2015-05-31 02:53:56 +09:00
cmd_ddrphy.c ARM: uniphier: add static qualifiers to locally used functions 2015-12-23 00:08:03 +09:00
cmd_pinmon.c ARM: uniphier: add ProXstream2 and PH1-LD6b support 2015-09-25 00:59:33 +09:00
cpu_info.c ARM: uniphier: display model number all the time on boot up 2015-12-23 00:08:54 +09:00
debug_ll.S ARM: uniphier: add ProXstream2 and PH1-LD6b support 2015-09-25 00:59:33 +09:00
dram_init.c ARM: uniphier: parse device tree to determine DRAM base and size 2015-09-25 00:27:53 +09:00
init_page_table.S ARM: uniphier: fix init page table for ProXstream2/PH1-LD6b USB boot 2015-09-25 00:59:33 +09:00
Kconfig ARM: uniphier: drop UniPhier specific SMP code 2015-11-11 23:35:35 +09:00
late_lowlevel_init.S ARM: UniPhier: disable L2 cache by lowlevel_init of U-Boot proper 2015-03-24 00:15:58 +09:00
lowlevel_init.S ARM: uniphier: drop UniPhier specific SMP code 2015-11-11 23:35:35 +09:00
Makefile ARM: uniphier: merge umc/ and ddrphy/ into a single directory 2015-12-23 00:08:55 +09:00
micro-support-card.c ARM: uniphier: move CONFIG_SUPPORT_CARD_* macros to local file 2015-09-25 00:27:53 +09:00
print_misc_info.c ARM: uniphier: refactor LED function 2015-09-25 00:27:53 +09:00
reset.c ARM: UniPhier: replace <asm/io.h> with <linux/io.h> 2015-05-31 02:53:56 +09:00
soc_info.c ARM: uniphier: add macros and revision IDs for sLD11 and LD10 2015-12-23 00:08:48 +09:00
timer.c ARM: UniPhier: replace <asm/io.h> with <linux/io.h> 2015-05-31 02:53:56 +09:00