Add CONFIG_USE_PREBOOT to boards that use CONFIG_PREBOOT

In order to use CONFIG_PREBOOT with Kconfig, CONFIG_USE_PREBOOT must be
defined for each board. To prepare for conversion to Kconfig, add this.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass 2019-07-20 20:51:13 -06:00 committed by Tom Rini
parent 9f53146f39
commit b06da06dd4
59 changed files with 60 additions and 1 deletions

View file

@ -347,6 +347,7 @@
#define CONFIG_LOADADDR 800000 /* default location for tftp and bootm */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "echo;" \
"echo Type \\\"run flash_nfs\\\" to mount root filesystem over NFS;" \
"echo"

View file

@ -236,6 +236,7 @@
/* default location for tftp and bootm */
#define CONFIG_LOADADDR 400000
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "echo;" \
"echo Type \\\"run flash_nfs\\\" to mount root filesystem over NFS;" \
"echo"

View file

@ -72,6 +72,7 @@
#ifdef CONFIG_USB_MUSB_HCD
#ifdef CONFIG_USB_KEYBOARD
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "usb start"
#endif /* CONFIG_USB_KEYBOARD */

View file

@ -34,6 +34,7 @@
#ifdef CONFIG_USB_MUSB_HOST
#ifdef CONFIG_USB_KEYBOARD
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "usb start"
#endif /* CONFIG_USB_KEYBOARD */

View file

@ -83,6 +83,7 @@
#define CONFIG_SYS_CBSIZE 2048 /* console I/O buffer */
#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
/* Boot argument buffer size */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "run check_flash check_env;"
/*

View file

@ -29,6 +29,7 @@
#define CONFIG_SYS_INIT_SP_ADDR CONFIG_IRAM_STACK
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
#define CONFIG_S5P_PA_SYSRAM 0x02020000

View file

@ -157,6 +157,7 @@ extern phys_addr_t prior_stage_fdt_address;
/*
* Save the prior stage provided DTB.
*/
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT \
"fdt addr ${fdtcontroladdr};" \
"fdt move ${fdtcontroladdr} ${fdtsaveaddr};" \

View file

@ -37,6 +37,7 @@
"run manage_userdata; "
/* Enable PREBOOT variable */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
/* Set ARP_TIMEOUT to 500ms */

View file

@ -23,6 +23,7 @@
"setcurs 1 10;lcdputs serverip; setcurs 10 10; lcdputs ${serverip};" \
"setenv stdout nc;setenv stdin nc;setenv stderr nc\0"
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "run cfgscr; run brdefaultip"
/* Network defines */

View file

@ -144,6 +144,7 @@
"echo WARNING: Could not determine dtb to use; fi; \0" \
BOOTENV
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "usb start;sf probe"
#define BOOT_TARGET_DEVICES(func) \

View file

@ -37,6 +37,7 @@
"upd_uboot=tftp 100000 conga/u-boot.rom;" \
"sf probe;sf update 100000 0 800000;saveenv\0"
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
#endif /* __CONFIG_H */

View file

@ -124,6 +124,7 @@
#define CONFIG_ROOTPATH "/opt/nfsroot"
#define CONFIG_BOOTFILE "ccdc.img"
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT /* enable preboot variable */
#define CONFIG_EXTRA_ENV_SETTINGS \

View file

@ -42,6 +42,7 @@
"upd_uboot=usb reset;tftp 100000 dfi/u-boot.rom;" \
"sf probe;sf update 100000 0 800000;saveenv\0"
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
#endif /* __CONFIG_H */

View file

@ -99,6 +99,7 @@
/* Default Environment */
#define CONFIG_BOOTCOMMAND "sf read ${loadaddr} 0xd0000 0x700000; bootm"
#define CONFIG_LOADADDR 0x80000
#define CONFIG_USE_PREBOOT
#undef CONFIG_PREBOOT /* override preboot for USB and SPI flash init */
#define CONFIG_PREBOOT "usb start; sf probe"

View file

@ -138,6 +138,7 @@
/* Miscellaneous configurable options */
#define CONFIG_HWCONFIG
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
/* Memory configuration */

View file

@ -403,6 +403,7 @@ void fpga_control_clear(unsigned int bus, int pin);
#define CONFIG_ROOTPATH "/opt/nfsroot"
#define CONFIG_BOOTFILE "uImage"
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT /* enable preboot variable */
#define CONFIG_EXTRA_ENV_SETTINGS \

View file

@ -253,6 +253,7 @@
#define CONFIG_SYS_LOAD_ADDR 0x100000
#define CONFIG_LOADS_ECHO
#define CONFIG_TIMESTAMP
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "echo;" \
"echo Type \\\"run nfsboot\\\" " \
"to mount root filesystem over NFS;echo"

View file

@ -185,6 +185,7 @@
/*
* Extra Environments
*/
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "run try_bootscript"
#define CONFIG_HOSTNAME "m53menlo"

View file

@ -40,6 +40,7 @@
#define CONFIG_REVISION_TAG
#define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT /* enable preboot variable */
/*

View file

@ -31,6 +31,7 @@
#ifdef CONFIG_USB_KEYBOARD
#define STDIN_CFG "usbkbd,serial"
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "usb start"
#else
#define STDIN_CFG "serial"

View file

@ -140,7 +140,8 @@
/* architecture dependent code */
#define CONFIG_SYS_USR_EXCEP /* user exception */
#define CONFIG_PREBOOT "echo U-BOOT for ${hostname};setenv preboot;echo"
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "echo U-BOOT for ${hostname};setenv preboot;echo"
#ifndef CONFIG_EXTRA_ENV_SETTINGS
#define CONFIG_EXTRA_ENV_SETTINGS "unlock=yes\0" \

View file

@ -38,6 +38,7 @@
#endif
/* auto boot */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
/*

View file

@ -14,6 +14,7 @@
#define CONFIG_SYS_SDRAM_BASE 0x00000000
/* auto boot */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, \

View file

@ -15,6 +15,7 @@
#define CONFIG_SYS_SDRAM_BASE 0x00000000
/* auto boot */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, \

View file

@ -66,6 +66,7 @@
#define CONFIG_MXC_USB_FLAGS MXC_EHCI_POWER_PINS_ENABLED
/* Framebuffer and LCD */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
#define CONFIG_VIDEO_BMP_RLE8
#define CONFIG_SPLASH_SCREEN

View file

@ -160,6 +160,7 @@
/* Framebuffer and LCD */
#define CONFIG_IMX_VIDEO_SKIP
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
#endif /* __CONFIG_H */

View file

@ -176,6 +176,7 @@
#endif
/* Framebuffer and LCD */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
#define CONFIG_VIDEO_BMP_RLE8
#define CONFIG_SPLASH_SCREEN

View file

@ -49,6 +49,7 @@
#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
#define CONFIG_MXC_USB_FLAGS 0
#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT \
"if hdmidet; then " \
"usb start; " \

View file

@ -67,6 +67,7 @@
#define CONFIG_IMX_HDMI
#define CONFIG_IMX_VIDEO_SKIP
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT ""
#ifdef CONFIG_CMD_MMC

View file

@ -253,6 +253,7 @@ int rx51_kp_getc(struct stdio_dev *sdev);
"bootmenu_delay=30\0" \
""
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT \
"setenv mmcnum 1; setenv mmcpart 1;" \
"setenv mmcscriptfile bootmenu.scr;" \

View file

@ -58,6 +58,7 @@
/* TWL4030 LED Support */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "usb start"
#define MEM_LAYOUT_ENV_SETTINGS \

View file

@ -60,6 +60,7 @@
/* Environment information */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT \
"setenv preboot;" \
"saveenv;"

View file

@ -76,6 +76,7 @@
#define ACFG_CONSOLE_DEV ttymxc0
#define CONFIG_SYS_AUTOLOAD "no"
#define CONFIG_ROOTPATH "/tftpboot/" __stringify(CONFIG_BOARD_NAME) "-root"
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "run check_env"
#define CONFIG_BOOTCOMMAND "run emmcboot"

View file

@ -77,6 +77,7 @@
#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 5
#endif
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT ""
/* Thermal support */

View file

@ -102,6 +102,7 @@
#define CONFIG_BOOTCOMMAND "run bootubi_scr"
/* Miscellaneous configurable options */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
/* MTD/UBI/UBIFS config */

View file

@ -32,6 +32,7 @@
#include <config_distro_bootcmd.h>
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "pci enum"
#define CONFIG_EXTRA_ENV_SETTINGS \
"fdt_high=0xffffffff\0" \

View file

@ -56,6 +56,7 @@
BOOTENV
#endif
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
#endif

View file

@ -61,6 +61,7 @@
#endif /* CONFIG_SPL_BUILD */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
#endif

View file

@ -56,6 +56,7 @@
BOOTENV
#endif
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
#endif

View file

@ -70,6 +70,7 @@
BOOTENV
#endif
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
#endif

View file

@ -73,6 +73,7 @@
/* Environment */
#define CONFIG_ENV_SIZE SZ_16K
#define CONFIG_SYS_LOAD_ADDR 0x1000000
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "usb start"
/* Shell */

View file

@ -189,6 +189,7 @@
/* UBI Support */
/* Commen environment */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
#define COMMON_ENV_DFU_ARGS "dfu_args=run bootargs_defaults;" \
"setenv bootargs ${bootargs};" \

View file

@ -12,6 +12,7 @@
/* Booting Linux */
#define CONFIG_BOOTFILE "fitImage"
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "run try_bootscript"
#define CONFIG_BOOTCOMMAND "run mmc_mmc"
#define CONFIG_LOADADDR 0x01000000

View file

@ -33,6 +33,7 @@
* if button B is not pressed, boot normal Linux system immediatelly
* if button B is pressed, wait $bootdelay and boot recovery system
*/
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT \
"setenv hostname vining-${unit_serial} ; " \
"setenv PS1 \"${unit_ident} (${unit_serial}) => \" ; " \

View file

@ -273,6 +273,7 @@
#define CONFIG_LOADADDR 200000 /* default addr for tftp & bootm*/
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "echo;" \
"echo Welcome on the ABB Socrates Board;" \
"echo"

View file

@ -436,6 +436,7 @@ void fpga_control_clear(unsigned int bus, int pin);
#define CONFIG_ROOTPATH "/opt/nfsroot"
#define CONFIG_BOOTFILE "uImage"
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT /* enable preboot variable */
#define CONFIG_EXTRA_ENV_SETTINGS \

View file

@ -286,6 +286,7 @@ extern int soft_i2c_gpio_scl;
#endif
#ifdef CONFIG_USB_KEYBOARD
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
#endif

View file

@ -80,6 +80,7 @@
#define CONFIG_USBD_HS
#endif /* CONFIG_CMD_USB_MASS_STORAGE */
#ifdef CONFIG_USB_KEYBOARD
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT \
"usb start; " \
"if hdmidet; then " \

View file

@ -42,6 +42,7 @@
#ifdef CONFIG_USB_KEYBOARD
#define STDIN_KBD_USB ",usbkbd"
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "usb start"
#else
#define STDIN_KBD_USB ""

View file

@ -13,6 +13,7 @@
#define CONFIG_SYS_MONITOR_LEN (1 << 20)
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
#define CONFIG_STD_DEVICES_SETTINGS "stdin=serial\0" \

View file

@ -47,6 +47,7 @@
#define PHY_ANEG_TIMEOUT 8000 /* PHY needs a longer aneg time */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
/* Keep device tree and initrd in lower memory so the kernel can access them */

View file

@ -79,6 +79,7 @@
# define EXTRA_ENV_USB
#endif
#define CONFIG_USE_PREBOOT
#undef CONFIG_PREBOOT
#undef CONFIG_EXTRA_ENV_SETTINGS

View file

@ -21,6 +21,7 @@
#define CONFIG_SYS_SDRAM_BASE 0x00000000
/* auto boot */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, \

View file

@ -472,6 +472,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
*/
#define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */
#define CONFIG_LOADADDR 0x1000000 /* default location for tftp and bootm */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT /* enable preboot variable */
#define CONFIG_INTEGRITY /* support booting INTEGRITY OS */

View file

@ -271,6 +271,7 @@
*/
#define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */
#define CONFIG_LOADADDR 0x1000000 /* default location for tftp and bootm */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT /* enable preboot variable */
#define CONFIG_INTEGRITY /* support booting INTEGRITY OS */
#define CONFIG_INTERRUPTS /* enable pci, srio, ddr interrupts */

View file

@ -322,6 +322,7 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
*/
#define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */
#define CONFIG_LOADADDR 0x1000000 /* default location for tftp and bootm */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT /* enable preboot variable */
#define CONFIG_INTEGRITY /* support booting INTEGRITY OS */

View file

@ -320,6 +320,7 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
*/
#define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */
#define CONFIG_LOADADDR 0x1000000 /* default location for tftp and bootm */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT /* enable preboot variable */
#define CONFIG_INTEGRITY /* support booting INTEGRITY OS */

View file

@ -98,6 +98,7 @@
#define CONFIG_SYS_MEMTEST_START (PHYS_SDRAM + (512*1024))
#define CONFIG_SYS_MEMTEST_END (PHYS_SDRAM + PHYS_SDRAM_SIZE)
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT ""

View file

@ -102,6 +102,7 @@
#define CONFIG_ENV_OVERWRITE
/* enable preboot to be loaded before CONFIG_BOOTDELAY */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
/* Boot configuration */