[U-Boot] why so little use of ft_system_setup()?
Robert P. J. Day
rpjday at crashcourse.ca
Thu May 19 20:19:05 CEST 2016
still crawling through the code related to FDTs, and while i see a
pile of boards that define CONFIG_OF_SYSTEM_SETUP, i see very few that
define the corresponding(?) ft_system_setup() routine.
$ grep -r CONFIG_OF_SYSTEM_SETUP *
cmd/fdt.c:#ifdef CONFIG_OF_SYSTEM_SETUP
cmd/fdt.c:#ifdef CONFIG_OF_SYSTEM_SETUP
configs/apalis_t30_defconfig:CONFIG_OF_SYSTEM_SETUP=y
configs/paz00_defconfig:CONFIG_OF_SYSTEM_SETUP=y
configs/plutux_defconfig:CONFIG_OF_SYSTEM_SETUP=y
configs/venice2_defconfig:CONFIG_OF_SYSTEM_SETUP=y
configs/p2571_defconfig:CONFIG_OF_SYSTEM_SETUP=y
configs/beaver_defconfig:CONFIG_OF_SYSTEM_SETUP=y
configs/ventana_defconfig:CONFIG_OF_SYSTEM_SETUP=y
configs/p2371-0000_defconfig:CONFIG_OF_SYSTEM_SETUP=y
configs/tec-ng_defconfig:CONFIG_OF_SYSTEM_SETUP=y
configs/seaboard_defconfig:CONFIG_OF_SYSTEM_SETUP=y
configs/dalmore_defconfig:CONFIG_OF_SYSTEM_SETUP=y
configs/harmony_defconfig:CONFIG_OF_SYSTEM_SETUP=y
configs/cardhu_defconfig:CONFIG_OF_SYSTEM_SETUP=y
configs/p2371-2180_defconfig:CONFIG_OF_SYSTEM_SETUP=y
configs/trimslice_defconfig:CONFIG_OF_SYSTEM_SETUP=y
configs/colibri_t30_defconfig:CONFIG_OF_SYSTEM_SETUP=y
configs/colibri_t20_defconfig:CONFIG_OF_SYSTEM_SETUP=y
configs/whistler_defconfig:CONFIG_OF_SYSTEM_SETUP=y
configs/tec_defconfig:CONFIG_OF_SYSTEM_SETUP=y
configs/jetson-tk1_defconfig:CONFIG_OF_SYSTEM_SETUP=y
configs/e2220-1170_defconfig:CONFIG_OF_SYSTEM_SETUP=y
configs/medcom-wide_defconfig:CONFIG_OF_SYSTEM_SETUP=y
configs/nyan-big_defconfig:CONFIG_OF_SYSTEM_SETUP=y
include/image.h:#ifdef CONFIG_OF_SYSTEM_SETUP
include/fdt_support.h: * This function is called if CONFIG_OF_SYSTEM_SETUP is defined
README: CONFIG_OF_SYSTEM_SETUP
$
and yet ...
$ grep -rw ft_system_setup *
arch/arm/mach-tegra/board2.c:int ft_system_setup(void *blob, bd_t *bd)
cmd/fdt.c: int err = ft_system_setup(working_fdt, gd->bd);
common/image-fdt.c: fdt_ret = ft_system_setup(blob, gd->bd);
include/fdt_support.h:int ft_system_setup(void *blob, bd_t *bd);
Kconfig: This causes U-Boot to call ft_system_setup() before booting into
README: This causes ft_system_setup() to be called before booting
$
am i missing something? what is the point of a board defining that
setting but not defining the associated(?) ft_system_setup() function?
what else is that CONFIG setting being used for? thanks.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
More information about the U-Boot
mailing list