Remove deprecated CONFIG_OF_HAS_UBOOT_ENV and CONFIG_OF_HAS_BD_T
PATCH 1/1 Remove deprecated CONFIG_OF_HAS_UBOOT_ENV and CONFIG_OF_HAS_BD_T
These defines embedded the u-boot env variables and/or the bd_t structure in the fdt blob. The conclusion of discussion on the u-boot email list was that embedding these in the fdt blob is not useful: there are better ways of passing the data (in fact, the fdt blob itself replaces the bd_t struct).
The only board that enables these is the stxxtc and they don't appear to be used by linux.
--- common/cmd_bootm.c | 14 ---- common/cmd_fdt.c | 17 ---- common/fdt_support.c | 193 ---------------------------------------------- include/configs/stxxtc.h | 2 - include/fdt_support.h | 8 -- 5 files changed, 0 insertions(+), 234 deletions(-)
common/cmd_bootm.c +0 -14
@@ -984,20 +984,6 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag, "must RESET the board to recover.\n");do_reset (cmdtp, flag, argc, argv); } -#ifdef CONFIG_OF_HAS_UBOOT_ENV -if (fdt_env (of_flat_tree) <0 ) { -puts ("ERROR: /u-boot-env node create failed - " -"must RESET the board to recover.\n" ); -do_reset (cmdtp, flag, argc, argv); - } -#endif -#ifdef CONFIG_OF_HAS_BD_T -if (fdt_bd_t (of_flat_tree) <0 ) { -puts ("ERROR: /bd_t node create failed - " -"must RESET the board to recover.\n" ); -do_reset (cmdtp, flag, argc, argv); - } -#endif #ifdef CONFIG_OF_BOARD_SETUP /* Call the board-specific fixup routine */ ft_board_setup (of_flat_tree, gd->bd);
common/cmd_fdt.c +0 -17
@@ -410,17 +410,6 @@ int do_fdt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])/* Create a chosen node */ else if (argv[1][0] == 'c') fdt_chosen(fdt, 0, 0, 1); - -#ifdef CONFIG_OF_HAS_UBOOT_ENV -/* Create a u-boot-env node */ - else if (argv[1][0] == 'e') - fdt_env(fdt); -#endif -#ifdef CONFIG_OF_HAS_BD_T -/* Create a bd_t node */ - else if (argv[1][0] == 'b') - fdt_bd_t(fdt); -#endif else {/* Unrecognized command */ printf ("Usage:\n%s\n" , cmdtp->usage);
@@ -801,12 +790,6 @@ U_BOOT_CMD("fdt rsvmem add <addr> <size> - Add a mem reserve\n" "fdt rsvmem delete <index> - Delete a mem reserves\n" "fdt chosen - Add/update the /chosen branch in the tree\n" -#ifdef CONFIG_OF_HAS_UBOOT_ENV - "fdt env - Add/replace the /u-boot-env branch in the tree\n" -#endif -#ifdef CONFIG_OF_HAS_BD_T -"fdt bd_t - Add/replace the /bd_t branch in the tree\n" -#endif"NOTE: If the path or property you are setting/printing has a '#' character\n" " or spaces, you MUST escape it with a \\ character or quote it with \".\n" );
common/fdt_support.c +0 -193
205 lines not on this page · raw message
include/configs/stxxtc.h +0 -2
@@ -594,7 +594,5 @@ typedef unsigned int led_id_t;#define OF_CPU "PowerPC,MPC870@0"#define OF_TBCLK (MPC8XX_HZ / 16) -#define CONFIG_OF_HAS_BD_T 1 -#define CONFIG_OF_HAS_UBOOT_ENV 1#endif /* __CONFIG_H */
include/fdt_support.h +0 -8
@@ -50,14 +50,6 @@ int fdt_find_and_setprop(void *fdt, const char *node, const char *prop, const void *val, int len, int create);void fdt_fixup_qe_firmware (void *fdt); -#ifdef CONFIG_OF_HAS_UBOOT_ENV -int fdt_env (void *fdt); -#endif - -#ifdef CONFIG_OF_HAS_BD_T -int fdt_bd_t (void *fdt); -#endif -#ifdef CONFIG_OF_BOARD_SETUP void ft_board_setup (void *blob,bd_t *bd);void ft_cpu_setup (void *blob,bd_t *bd);
Signature · 1 line
1.5.4.1
PATCH 1/1 Remove deprecated CONFIG_OF_HAS_UBOOT_ENV and CONFIG_OF_HAS_BD_T
Quoted 11 lines · On Sat, 22 Mar 2008 14:23:49 -0400 Jerry Van Baren <[email protected]> wrote:
These defines embedded the u-boot env variables and/or the
bd_tstructure in the fdt blob. The conclusion of discussion on the u-boot email list was that embedding these in the fdt blob is not useful: there are better ways of passing the data (in fact, the fdt blob itself replaces thebd_tstruct).The only board that enables these is the stxxtc and they don't appear to be used by linux.
Signed-off-by Gerald Van Baren <[email protected]>---
we've had people running into issues when their environment+dtb exceeded dtc -S values. This option is more trouble than it's worth:
Kim
Wolfgang Denk
AppliedPATCH 1/1 Remove deprecated CONFIG_OF_HAS_UBOOT_ENV and CONFIG_OF_HAS_BD_T
In reply to Jerry Van BarenQuoted 10 lines · In message <[email protected]> you wrote:
These defines embedded the u-boot env variables and/or the
bd_tstructure in the fdt blob. The conclusion of discussion on the u-boot email list was that embedding these in the fdt blob is not useful: there are better ways of passing the data (in fact, the fdt blob itself replaces thebd_tstruct).The only board that enables these is the stxxtc and they don't appear to be used by linux.
Signed-off-by Gerald Van Baren <[email protected]>
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Not one hundred percent efficient, of course ... but nothing ever is. -- Kirk, "Metamorphosis", stardate 3219.8