mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
Convert CONFIG_CMD_SPL_NAND_OFS to Kconfig
This converts the following to Kconfig: CONFIG_CMD_SPL_NAND_OFS Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
This commit is contained in:
parent
72c3033fd1
commit
203dc1b3a8
39 changed files with 30 additions and 20 deletions
10
cmd/Kconfig
10
cmd/Kconfig
|
@ -285,6 +285,16 @@ config CMD_SPL
|
|||
doc/README.falcon for full information about how to use this
|
||||
command.
|
||||
|
||||
config CMD_SPL_NAND_OFS
|
||||
hex "Offset of OS command line args for Falcon-mode NAND boot"
|
||||
depends on CMD_SPL
|
||||
default 0
|
||||
help
|
||||
This provides the offset of the command line arguments for Linux
|
||||
when booting from NAND in Falcon mode. See doc/README.falcon
|
||||
for full information about how to use this option (and also see
|
||||
board/gateworks/gw_ventana/README for an example).
|
||||
|
||||
endmenu
|
||||
|
||||
menu "Environment commands"
|
||||
|
|
|
@ -21,6 +21,7 @@ CONFIG_FASTBOOT_BUF_ADDR=0x81000000
|
|||
CONFIG_FASTBOOT_BUF_SIZE=0x07000000
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_SPL_NAND_OFS=0x00080000
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_NAND=y
|
||||
# CONFIG_CMD_SETEXPR is not set
|
||||
|
|
|
@ -21,6 +21,7 @@ CONFIG_FASTBOOT_BUF_SIZE=0x07000000
|
|||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_NAND=y
|
||||
CONFIG_CMD_SPL_NAND_OFS=0x00080000
|
||||
# CONFIG_CMD_SETEXPR is not set
|
||||
CONFIG_CMD_MTDPARTS=y
|
||||
CONFIG_DFU_MMC=y
|
||||
|
|
|
@ -23,6 +23,7 @@ CONFIG_FASTBOOT_BUF_ADDR=0x81000000
|
|||
CONFIG_FASTBOOT_BUF_SIZE=0x07000000
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_SPL_NAND_OFS=0x00080000
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_NAND=y
|
||||
# CONFIG_CMD_SETEXPR is not set
|
||||
|
|
|
@ -16,6 +16,7 @@ CONFIG_SPL_OS_BOOT=y
|
|||
CONFIG_HUSH_PARSER=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_SPL_NAND_OFS=0x00100000
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_NAND=y
|
||||
# CONFIG_CMD_SETEXPR is not set
|
||||
|
|
|
@ -16,6 +16,7 @@ CONFIG_HUSH_PARSER=y
|
|||
CONFIG_CMD_BOOTZ=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_SPL_NAND_OFS=0x00100000
|
||||
CONFIG_CMD_ASKENV=y
|
||||
CONFIG_CMD_EEPROM=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
|
|
|
@ -20,6 +20,7 @@ CONFIG_HUSH_PARSER=y
|
|||
CONFIG_CMD_BOOTZ=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_SPL_NAND_OFS=0x00100000
|
||||
CONFIG_CMD_ASKENV=y
|
||||
CONFIG_CMD_EEPROM=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
|
|
|
@ -15,6 +15,7 @@ CONFIG_CMD_BOOTZ=y
|
|||
# CONFIG_CMD_IMI is not set
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_SPL_NAND_OFS=0x240000
|
||||
CONFIG_CMD_ASKENV=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_MMC=y
|
||||
|
|
|
@ -11,6 +11,7 @@ CONFIG_HUSH_PARSER=y
|
|||
# CONFIG_CMD_IMI is not set
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_SPL_NAND_OFS=0x680000
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_MMC=y
|
||||
CONFIG_CMD_NAND=y
|
||||
|
|
|
@ -32,6 +32,7 @@ CONFIG_HUSH_PARSER=y
|
|||
CONFIG_SYS_PROMPT="Ventana > "
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_SPL_NAND_OFS=0x1100000
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_MMC=y
|
||||
CONFIG_CMD_I2C=y
|
||||
|
|
|
@ -32,6 +32,7 @@ CONFIG_HUSH_PARSER=y
|
|||
CONFIG_SYS_PROMPT="Ventana > "
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_SPL_NAND_OFS=0x1100000
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_MMC=y
|
||||
CONFIG_CMD_I2C=y
|
||||
|
|
|
@ -33,6 +33,7 @@ CONFIG_HUSH_PARSER=y
|
|||
CONFIG_SYS_PROMPT="Ventana > "
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_SPL_NAND_OFS=0x1100000
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_MMC=y
|
||||
CONFIG_CMD_NAND=y
|
||||
|
|
|
@ -16,6 +16,7 @@ CONFIG_SPL_MTD_SUPPORT=y
|
|||
CONFIG_SPL_ONENAND_SUPPORT=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_ASKENV=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_MMC=y
|
||||
|
|
|
@ -16,6 +16,7 @@ CONFIG_SPL_MTD_SUPPORT=y
|
|||
CONFIG_SPL_ONENAND_SUPPORT=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_ASKENV=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_MMC=y
|
||||
|
|
|
@ -15,6 +15,7 @@ CONFIG_SPL_MTD_SUPPORT=y
|
|||
CONFIG_SPL_ONENAND_SUPPORT=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_ASKENV=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_MMC=y
|
||||
|
|
|
@ -18,6 +18,7 @@ CONFIG_HUSH_PARSER=y
|
|||
CONFIG_SYS_PROMPT="U-Boot > "
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_SPL_NAND_OFS=0x00180000
|
||||
CONFIG_CMD_ASKENV=y
|
||||
CONFIG_CRC32_VERIFY=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
|
|
|
@ -12,6 +12,7 @@ CONFIG_SPL_MTD_SUPPORT=y
|
|||
CONFIG_SPL_OS_BOOT=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_SPL_NAND_OFS=0x240000
|
||||
CONFIG_CMD_ASKENV=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_MMC=y
|
||||
|
|
|
@ -20,6 +20,7 @@ CONFIG_SYS_PROMPT="OMAP Logic # "
|
|||
# CONFIG_CMD_IMI is not set
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_SPL_NAND_OFS=0x240000
|
||||
# CONFIG_CMD_EEPROM is not set
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_NAND=y
|
||||
|
|
|
@ -17,6 +17,7 @@ CONFIG_CMD_BOOTZ=y
|
|||
# CONFIG_CMD_IMI is not set
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_SPL_NAND_OFS=0x240000
|
||||
CONFIG_CMD_ASKENV=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_MMC=y
|
||||
|
|
|
@ -30,6 +30,7 @@ CONFIG_HUSH_PARSER=y
|
|||
CONFIG_CMD_BOOTZ=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_SPL_NAND_OFS=0x240000
|
||||
CONFIG_CMD_ASKENV=y
|
||||
CONFIG_CMD_EEPROM=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
|
|
|
@ -12,6 +12,7 @@ CONFIG_HUSH_PARSER=y
|
|||
CONFIG_SYS_PROMPT="twister => "
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_SPL_NAND_OFS=0x00800000
|
||||
CONFIG_CMD_EEPROM=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_MMC=y
|
||||
|
|
|
@ -238,7 +238,6 @@
|
|||
#define CONFIG_SPL_NAND_AM33XX_BCH
|
||||
#endif
|
||||
#ifdef CONFIG_SPL_OS_BOOT
|
||||
#define CONFIG_CMD_SPL_NAND_OFS 0x00080000 /* os parameters */
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x00200000 /* kernel offset */
|
||||
#define CONFIG_CMD_SPL_WRITE_SIZE 0x2000
|
||||
#endif
|
||||
|
|
|
@ -307,7 +307,6 @@
|
|||
#endif
|
||||
/* NAND: SPL falcon mode configs */
|
||||
#ifdef CONFIG_SPL_OS_BOOT
|
||||
#define CONFIG_CMD_SPL_NAND_OFS 0x00100000 /* os parameters */
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x00300000 /* kernel offset */
|
||||
#define CONFIG_CMD_SPL_WRITE_SIZE CONFIG_SYS_NAND_BLOCK_SIZE
|
||||
#endif
|
||||
|
|
|
@ -45,7 +45,6 @@
|
|||
#ifdef CONFIG_NAND
|
||||
#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x00080000
|
||||
#ifdef CONFIG_SPL_OS_BOOT
|
||||
#define CONFIG_CMD_SPL_NAND_OFS 0x00080000 /* os parameters */
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x00200000 /* kernel offset */
|
||||
#define CONFIG_CMD_SPL_WRITE_SIZE 0x2000
|
||||
#endif
|
||||
|
|
|
@ -395,7 +395,6 @@ DEFAULT_LINUX_BOOT_ENV \
|
|||
#define CONFIG_SPL_NAND_AM33XX_BCH
|
||||
#endif
|
||||
#ifdef CONFIG_SPL_OS_BOOT
|
||||
#define CONFIG_CMD_SPL_NAND_OFS 0x00080000 /* os parameters */
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x00200000 /* kernel offset */
|
||||
#define CONFIG_CMD_SPL_WRITE_SIZE 0x2000
|
||||
#endif
|
||||
|
|
|
@ -66,7 +66,6 @@
|
|||
|
||||
/* NAND */
|
||||
#ifdef CONFIG_NAND
|
||||
#define CONFIG_CMD_SPL_NAND_OFS 0x080000 /* end of u-boot */
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x140000
|
||||
#define CONFIG_CMD_SPL_WRITE_SIZE 0x2000
|
||||
#endif /* CONFIG_NAND */
|
||||
|
|
|
@ -137,7 +137,6 @@
|
|||
#define CONFIG_SYS_ENV_SECT_SIZE (128 << 10) /* 128 KiB */
|
||||
#define CONFIG_SYS_NAND_ONFI_DETECTION
|
||||
#ifdef CONFIG_SPL_OS_BOOT
|
||||
#define CONFIG_CMD_SPL_NAND_OFS 0x400000 /* un-assigned: (using dtb) */
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x500000
|
||||
#define CONFIG_CMD_SPL_WRITE_SIZE 0x2000
|
||||
#endif
|
||||
|
|
|
@ -210,8 +210,6 @@
|
|||
|
||||
/* SPL OS boot options */
|
||||
#define CONFIG_CMD_SPL_WRITE_SIZE 0x400 /* 1024 byte */
|
||||
#define CONFIG_CMD_SPL_NAND_OFS (CONFIG_SYS_NAND_SPL_KERNEL_OFFS+\
|
||||
0x400000)
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x280000
|
||||
|
||||
#undef CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR
|
||||
|
|
|
@ -209,7 +209,6 @@
|
|||
#endif
|
||||
/* NAND: SPL falcon mode configs */
|
||||
#ifdef CONFIG_SPL_OS_BOOT
|
||||
#define CONFIG_CMD_SPL_NAND_OFS 0x00080000 /* os-boot params*/
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x00200000 /* kernel offset */
|
||||
#define CONFIG_CMD_SPL_WRITE_SIZE 0x2000
|
||||
#endif
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
#define CONFIG_CMD_SPL_WRITE_SIZE (128 * SZ_1K)
|
||||
|
||||
/* Falcon Mode - NAND support: args@17MB kernel@18MB */
|
||||
#define CONFIG_CMD_SPL_NAND_OFS (17 * SZ_1M)
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS (18 * SZ_1M)
|
||||
|
||||
/* Falcon Mode - MMC support: args@1MB kernel@2MB */
|
||||
|
|
|
@ -276,7 +276,6 @@
|
|||
/* add FALCON boot mode */
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x00200000
|
||||
#define CONFIG_SYS_SPL_ARGS_ADDR LINUX_BOOT_PARAM_ADDR
|
||||
#define CONFIG_CMD_SPL_NAND_OFS 0x00180000
|
||||
#define CONFIG_CMD_SPL_WRITE_SIZE 0x400
|
||||
|
||||
/* GPIO support */
|
||||
|
|
|
@ -276,7 +276,6 @@
|
|||
#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000
|
||||
/* NAND: SPL falcon mode configs */
|
||||
#ifdef CONFIG_SPL_OS_BOOT
|
||||
#define CONFIG_CMD_SPL_NAND_OFS 0x240000
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x280000
|
||||
#define CONFIG_CMD_SPL_WRITE_SIZE 0x2000
|
||||
#endif
|
||||
|
|
|
@ -200,7 +200,6 @@
|
|||
#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000
|
||||
/* NAND: SPL falcon mode configs */
|
||||
#ifdef CONFIG_SPL_OS_BOOT
|
||||
#define CONFIG_CMD_SPL_NAND_OFS 0x240000
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x280000
|
||||
#define CONFIG_CMD_SPL_WRITE_SIZE 0x2000
|
||||
#endif
|
||||
|
|
|
@ -263,7 +263,6 @@
|
|||
|
||||
/* NAND: SPL falcon mode configs */
|
||||
#ifdef CONFIG_SPL_OS_BOOT
|
||||
#define CONFIG_CMD_SPL_NAND_OFS 0x240000
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x280000
|
||||
#define CONFIG_CMD_SPL_WRITE_SIZE 0x2000
|
||||
#endif
|
||||
|
|
|
@ -217,7 +217,6 @@
|
|||
#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000
|
||||
/* NAND: SPL falcon mode configs */
|
||||
#ifdef CONFIG_SPL_OS_BOOT
|
||||
#define CONFIG_CMD_SPL_NAND_OFS 0x240000
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x280000
|
||||
#define CONFIG_CMD_SPL_WRITE_SIZE 0x2000
|
||||
#endif
|
||||
|
|
|
@ -57,7 +57,6 @@
|
|||
#if defined(CONFIG_CMD_NAND)
|
||||
/* NAND: SPL falcon mode configs */
|
||||
#ifdef CONFIG_SPL_OS_BOOT
|
||||
#define CONFIG_CMD_SPL_NAND_OFS 0x240000
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x280000
|
||||
#define CONFIG_CMD_SPL_WRITE_SIZE 0x2000
|
||||
#endif
|
||||
|
|
|
@ -163,7 +163,6 @@
|
|||
#define CONFIG_SYS_ENV_SECT_SIZE (128 << 10) /* 128 KiB */
|
||||
/* NAND: SPL falcon mode configs */
|
||||
#ifdef CONFIG_SPL_OS_BOOT
|
||||
#define CONFIG_CMD_SPL_NAND_OFS 0x240000 /* un-assigned */
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x280000
|
||||
#define CONFIG_CMD_SPL_WRITE_SIZE 0x2000
|
||||
#endif
|
||||
|
|
|
@ -38,8 +38,6 @@
|
|||
/* SPL OS boot options */
|
||||
#define CONFIG_CMD_SPL_WRITE_SIZE 0x400 /* 1024 byte */
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x00200000
|
||||
#define CONFIG_CMD_SPL_NAND_OFS (CONFIG_SYS_NAND_SPL_KERNEL_OFFS+\
|
||||
0x600000)
|
||||
|
||||
#define CONFIG_SYS_SPL_ARGS_ADDR (PHYS_SDRAM_1 + 0x100)
|
||||
|
||||
|
|
|
@ -293,7 +293,6 @@ CONFIG_CM922T_XA10
|
|||
CONFIG_CMDLINE_EDITING
|
||||
CONFIG_CMDLINE_PS_SUPPORT
|
||||
CONFIG_CMDLINE_TAG
|
||||
CONFIG_CMD_SPL_NAND_OFS
|
||||
CONFIG_CMD_SPL_WRITE_SIZE
|
||||
CONFIG_CMD_STRINGS
|
||||
CONFIG_CMD_SX151X
|
||||
|
|
Loading…
Reference in a new issue