mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
Convert CONFIG_SYS_NAND_SPL_KERNEL_OFFS to Kconfig
This converts the following to Kconfig: CONFIG_SYS_NAND_SPL_KERNEL_OFFS Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
dc22afb975
commit
5fc1d58176
30 changed files with 19 additions and 52 deletions
|
@ -1196,6 +1196,10 @@ config SYS_SPL_ARGS_ADDR
|
|||
Address in memory where the 'args' file, typically a device tree
|
||||
will be loaded in to memory.
|
||||
|
||||
config SYS_NAND_SPL_KERNEL_OFFS
|
||||
hex "Address in memory to load the OS file for Falcon mode to"
|
||||
depends on SPL_OS_BOOT && SPL_NAND_SUPPORT
|
||||
|
||||
if SPL_OS_BOOT
|
||||
config SYS_OS_BASE
|
||||
hex "addr, where OS is found"
|
||||
|
|
|
@ -34,6 +34,7 @@ CONFIG_SPL_NAND_BASE=y
|
|||
CONFIG_SPL_NET=y
|
||||
CONFIG_SPL_NET_VCI_STRING="AM335x U-Boot SPL"
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_NAND_SPL_KERNEL_OFFS=0x200000
|
||||
CONFIG_SPL_FALCON_BOOT_MMCSD=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR=0x1700
|
||||
CONFIG_SPL_USB_GADGET=y
|
||||
|
|
|
@ -40,6 +40,7 @@ CONFIG_SPL_UBI_LOAD_MONITOR_ID=0
|
|||
CONFIG_SPL_UBI_LOAD_KERNEL_ID=3
|
||||
CONFIG_SPL_UBI_LOAD_ARGS_ID=4
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_NAND_SPL_KERNEL_OFFS=0x280000
|
||||
CONFIG_SPL_FALCON_BOOT_MMCSD=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR=0x1700
|
||||
CONFIG_SPL_POWER=y
|
||||
|
|
|
@ -32,6 +32,7 @@ CONFIG_SPL_NAND_SIMPLE=y
|
|||
CONFIG_SPL_NAND_BASE=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_SPL_ARGS_ADDR=0x84000000
|
||||
CONFIG_SYS_NAND_SPL_KERNEL_OFFS=0x2a0000
|
||||
CONFIG_SPL_FALCON_BOOT_MMCSD=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR=0x1700
|
||||
# CONFIG_SPL_POWER is not set
|
||||
|
|
|
@ -29,6 +29,7 @@ CONFIG_SPL_NAND_BASE=y
|
|||
CONFIG_SPL_NET=y
|
||||
CONFIG_SPL_NET_VCI_STRING="AM43xx U-Boot SPL"
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_NAND_SPL_KERNEL_OFFS=0x300000
|
||||
CONFIG_SPL_FALCON_BOOT_MMCSD=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR=0x1700
|
||||
CONFIG_SPL_USB_HOST=y
|
||||
|
|
|
@ -26,6 +26,7 @@ CONFIG_SPL_NAND_DRIVERS=y
|
|||
CONFIG_SPL_NAND_ECC=y
|
||||
CONFIG_SPL_NAND_BASE=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_NAND_SPL_KERNEL_OFFS=0x300000
|
||||
CONFIG_SPL_FALCON_BOOT_MMCSD=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR=0x1700
|
||||
CONFIG_SYS_MAXARGS=64
|
||||
|
|
|
@ -25,6 +25,7 @@ CONFIG_SPL_NAND_DRIVERS=y
|
|||
CONFIG_SPL_NAND_ECC=y
|
||||
CONFIG_SPL_NAND_BASE=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_NAND_SPL_KERNEL_OFFS=0x300000
|
||||
CONFIG_SPL_FALCON_BOOT_MMCSD=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR=0x1700
|
||||
CONFIG_SPL_USB_HOST=y
|
||||
|
|
|
@ -23,6 +23,7 @@ CONFIG_SPL_NAND_SIMPLE=y
|
|||
CONFIG_SPL_NAND_BASE=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_SPL_ARGS_ADDR=0x80000100
|
||||
CONFIG_SYS_NAND_SPL_KERNEL_OFFS=0x280000
|
||||
CONFIG_SPL_FALCON_BOOT_MMCSD=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR=0x500
|
||||
CONFIG_SYS_MAXARGS=64
|
||||
|
|
|
@ -39,6 +39,7 @@ CONFIG_SPL_NAND_ECC=y
|
|||
CONFIG_SPL_NAND_BASE=y
|
||||
CONFIG_SPL_DM_SPI_FLASH=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_NAND_SPL_KERNEL_OFFS=0x200000
|
||||
CONFIG_SPL_FALCON_BOOT_MMCSD=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR=0x1700
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
|
|
|
@ -48,6 +48,7 @@ CONFIG_SPL_I2C=y
|
|||
CONFIG_SPL_NAND_SUPPORT=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_SPL_ARGS_ADDR=0x18000000
|
||||
CONFIG_SYS_NAND_SPL_KERNEL_OFFS=0x1200000
|
||||
CONFIG_SPL_FALCON_BOOT_MMCSD=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR=0x1000
|
||||
CONFIG_SPL_POWER=y
|
||||
|
|
|
@ -42,6 +42,7 @@ CONFIG_SPL_UBI_LOAD_ARGS_ID=4
|
|||
CONFIG_SPL_ONENAND_SUPPORT=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_SPL_ARGS_ADDR=0x84000000
|
||||
CONFIG_SYS_NAND_SPL_KERNEL_OFFS=0x280000
|
||||
CONFIG_SPL_FALCON_BOOT_MMCSD=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR=0x1700
|
||||
CONFIG_SYS_MAXARGS=64
|
||||
|
|
|
@ -35,6 +35,7 @@ CONFIG_SPL_I2C=y
|
|||
CONFIG_SPL_NAND_SUPPORT=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_SPL_ARGS_ADDR=0x18000000
|
||||
CONFIG_SYS_NAND_SPL_KERNEL_OFFS=0x500000
|
||||
CONFIG_SPL_FALCON_BOOT_MMCSD=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR=0x1000
|
||||
CONFIG_SPL_USB_HOST=y
|
||||
|
|
|
@ -36,6 +36,7 @@ CONFIG_SPL_NAND_SIMPLE=y
|
|||
CONFIG_SPL_NAND_BASE=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_SPL_ARGS_ADDR=0x84000000
|
||||
CONFIG_SYS_NAND_SPL_KERNEL_OFFS=0x280000
|
||||
CONFIG_SPL_FALCON_BOOT_MMCSD=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR=0x1700
|
||||
CONFIG_SYS_PROMPT="OMAP Logic # "
|
||||
|
|
|
@ -37,6 +37,7 @@ CONFIG_SPL_NAND_SIMPLE=y
|
|||
CONFIG_SPL_NAND_BASE=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_SPL_ARGS_ADDR=0x84000000
|
||||
CONFIG_SYS_NAND_SPL_KERNEL_OFFS=0x280000
|
||||
CONFIG_SPL_FALCON_BOOT_MMCSD=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR=0x1700
|
||||
# CONFIG_SPL_POWER is not set
|
||||
|
|
|
@ -35,6 +35,7 @@ CONFIG_SPL_NAND_SIMPLE=y
|
|||
CONFIG_SPL_NAND_BASE=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_SPL_ARGS_ADDR=0x84000000
|
||||
CONFIG_SYS_NAND_SPL_KERNEL_OFFS=0x280000
|
||||
CONFIG_SPL_FALCON_BOOT_MMCSD=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR=0x1700
|
||||
CONFIG_SYS_PROMPT="OMAP Logic # "
|
||||
|
|
|
@ -37,6 +37,7 @@ CONFIG_SPL_NAND_SIMPLE=y
|
|||
CONFIG_SPL_NAND_BASE=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_SPL_ARGS_ADDR=0x84000000
|
||||
CONFIG_SYS_NAND_SPL_KERNEL_OFFS=0x280000
|
||||
CONFIG_SPL_FALCON_BOOT_MMCSD=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR=0x1700
|
||||
# CONFIG_SPL_POWER is not set
|
||||
|
|
|
@ -193,10 +193,6 @@
|
|||
|
||||
#define CONFIG_SYS_NAND_ECCSIZE 512
|
||||
#define CONFIG_SYS_NAND_ECCBYTES 14
|
||||
/* NAND: SPL related configs */
|
||||
#ifdef CONFIG_SPL_OS_BOOT
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x00200000 /* kernel offset */
|
||||
#endif
|
||||
#endif /* !CONFIG_MTD_RAW_NAND */
|
||||
|
||||
/* USB Device Firmware Update support */
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
#define CONFIG_SYS_NAND_MAX_OOBFREE 2
|
||||
#define CONFIG_SYS_NAND_MAX_ECCPOS 56
|
||||
#define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x2a0000
|
||||
/* NAND block size is 128 KiB. Synchronize these values with
|
||||
* corresponding Device Tree entries in Linux:
|
||||
* MLO(SPL) 4 * NAND_BLOCK_SIZE = 512 KiB @ 0x000000
|
||||
|
|
|
@ -151,11 +151,6 @@
|
|||
}
|
||||
#define CONFIG_SYS_NAND_ECCSIZE 512
|
||||
#define CONFIG_SYS_NAND_ECCBYTES 26
|
||||
/* NAND: SPL related configs */
|
||||
/* NAND: SPL falcon mode configs */
|
||||
#ifdef CONFIG_SPL_OS_BOOT
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x00300000 /* kernel offset */
|
||||
#endif
|
||||
#define NANDARGS \
|
||||
"mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
|
||||
"mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
|
||||
|
|
|
@ -33,10 +33,6 @@
|
|||
#define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR 0x80 /* address 0x10000 */
|
||||
#define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTORS 0x80 /* 64KiB */
|
||||
|
||||
/* NAND */
|
||||
#ifdef CONFIG_MTD_RAW_NAND
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x140000
|
||||
#endif /* CONFIG_MTD_RAW_NAND */
|
||||
#endif /* CONFIG_SPL_OS_BOOT */
|
||||
|
||||
#ifdef CONFIG_MTD_RAW_NAND
|
||||
|
|
|
@ -86,9 +86,6 @@
|
|||
#define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE
|
||||
|
||||
#define CONFIG_SYS_ENV_SECT_SIZE (128 << 10) /* 128 KiB */
|
||||
#ifdef CONFIG_SPL_OS_BOOT
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x500000
|
||||
#endif
|
||||
|
||||
/* GPIO pin + bank to pin ID mapping */
|
||||
#define GPIO_PIN(_bank, _pin) ((_bank << 5) + _pin)
|
||||
|
|
|
@ -116,9 +116,6 @@
|
|||
|
||||
#define CONFIG_SYS_NAND_U_BOOT_SIZE 0x200000
|
||||
|
||||
/* SPL OS boot options */
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x280000
|
||||
|
||||
#undef CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR
|
||||
#undef CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTORS
|
||||
#define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR 0x8 /* address 0x1000 */
|
||||
|
|
|
@ -84,11 +84,6 @@
|
|||
50, 51, 52, 53, 54, 55, 56, 57, }
|
||||
#define CONFIG_SYS_NAND_ECCSIZE 512
|
||||
#define CONFIG_SYS_NAND_ECCBYTES 14
|
||||
/* NAND: SPL related configs */
|
||||
/* NAND: SPL falcon mode configs */
|
||||
#ifdef CONFIG_SPL_OS_BOOT
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x00200000 /* kernel offset */
|
||||
#endif
|
||||
#endif /* !CONFIG_MTD_RAW_NAND */
|
||||
|
||||
/* Parallel NOR Support */
|
||||
|
|
|
@ -11,9 +11,6 @@
|
|||
|
||||
/* Falcon Mode */
|
||||
|
||||
/* Falcon Mode - NAND support: args@17MB kernel@18MB */
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS (18 * SZ_1M)
|
||||
|
||||
/* Falcon Mode - MMC support: args@1MB kernel@2MB */
|
||||
#define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR 0x800 /* 1MB */
|
||||
#define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTORS (CONFIG_CMD_SPL_WRITE_SIZE / 512)
|
||||
|
|
|
@ -119,7 +119,6 @@
|
|||
#define CONFIG_SYS_MAX_NAND_DEVICE 1
|
||||
#define CONFIG_SYS_NAND_BASE 0x40000000
|
||||
#define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x00500000
|
||||
|
||||
/* USB Configs */
|
||||
#ifdef CONFIG_CMD_USB
|
||||
|
|
|
@ -28,9 +28,6 @@
|
|||
#define CONFIG_SYS_NAND_ECCBYTES 3
|
||||
#define CONFIG_SYS_ENV_SECT_SIZE SZ_128K
|
||||
/* NAND: SPL falcon mode configs */
|
||||
#if defined(CONFIG_SPL_OS_BOOT)
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x2a0000
|
||||
#endif /* CONFIG_SPL_OS_BOOT */
|
||||
#endif /* CONFIG_MTD_RAW_NAND */
|
||||
|
||||
/* Enable Multi Bus support for I2C */
|
||||
|
|
|
@ -32,10 +32,6 @@
|
|||
#define CONFIG_SYS_NAND_ECCSIZE 512
|
||||
#define CONFIG_SYS_NAND_ECCBYTES 3
|
||||
#define CONFIG_SYS_ENV_SECT_SIZE SZ_128K
|
||||
/* NAND: SPL falcon mode configs */
|
||||
#if defined(CONFIG_SPL_OS_BOOT)
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x2a0000
|
||||
#endif /* CONFIG_SPL_OS_BOOT */
|
||||
#endif /* CONFIG_MTD_RAW_NAND */
|
||||
|
||||
#define BOOTENV_DEV_LEGACY_MMC(devtypeu, devtypel, instance) \
|
||||
|
|
|
@ -158,11 +158,4 @@
|
|||
|
||||
#define CONFIG_SYS_ENV_SECT_SIZE (128 << 10) /* 128 KiB */
|
||||
|
||||
/* Defines for SPL */
|
||||
|
||||
/* NAND: SPL falcon mode configs */
|
||||
#ifdef CONFIG_SPL_OS_BOOT
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x280000
|
||||
#endif
|
||||
|
||||
#endif /* __CONFIG_H */
|
||||
|
|
|
@ -97,10 +97,6 @@
|
|||
#define CONFIG_SYS_NAND_ECCSIZE 512
|
||||
#define CONFIG_SYS_NAND_ECCBYTES 14
|
||||
|
||||
/* NAND: SPL related configs */
|
||||
#ifdef CONFIG_SPL_OS_BOOT
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x00200000 /* kernel offset */
|
||||
#endif
|
||||
#endif /* !CONFIG_MTD_RAW_NAND */
|
||||
|
||||
/* CPU */
|
||||
|
|
|
@ -58,9 +58,4 @@
|
|||
#define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTORS (CONFIG_CMD_SPL_WRITE_SIZE / 512)
|
||||
/* U-Boot proper stored by default at 0x200 (256 KiB) */
|
||||
|
||||
/* Falcon boot support on FAT on MMC */
|
||||
|
||||
/* Falcon boot support on raw NAND */
|
||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x1a0000
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue