mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-28 10:01:32 +00:00
Rename some defines containing FAT in their name to be filesystem generic
Rename some defines containing FAT in their name to be filesystem generic: MMCSD_MODE_FAT => MMCSD_MODE_FS CONFIG_SPL_FAT_LOAD_ARGS_NAME => CONFIG_SPL_FS_LOAD_ARGS_NAME CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME => CONFIG_SPL_FS_LOAD_PAYLOAD_NAME CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION => CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION Signed-off-by: Guillaume GARDET <guillaume.gardet@free.fr> Cc: Tom Rini <trini@ti.com>
This commit is contained in:
parent
b01495e644
commit
205b4f33cf
28 changed files with 57 additions and 57 deletions
|
@ -531,7 +531,7 @@ u32 spl_boot_mode(void)
|
||||||
switch (spl_boot_device()) {
|
switch (spl_boot_device()) {
|
||||||
case BOOT_DEVICE_MMC1:
|
case BOOT_DEVICE_MMC1:
|
||||||
#ifdef CONFIG_SPL_FAT_SUPPORT
|
#ifdef CONFIG_SPL_FAT_SUPPORT
|
||||||
return MMCSD_MODE_FAT;
|
return MMCSD_MODE_FS;
|
||||||
#else
|
#else
|
||||||
return MMCSD_MODE_RAW;
|
return MMCSD_MODE_RAW;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -81,8 +81,8 @@ u32 spl_boot_mode(void)
|
||||||
|
|
||||||
if (val == MMCSD_MODE_RAW)
|
if (val == MMCSD_MODE_RAW)
|
||||||
return MMCSD_MODE_RAW;
|
return MMCSD_MODE_RAW;
|
||||||
else if (val == MMCSD_MODE_FAT)
|
else if (val == MMCSD_MODE_FS)
|
||||||
return MMCSD_MODE_FAT;
|
return MMCSD_MODE_FS;
|
||||||
else
|
else
|
||||||
#ifdef CONFIG_SUPPORT_EMMC_BOOT
|
#ifdef CONFIG_SUPPORT_EMMC_BOOT
|
||||||
return MMCSD_MODE_EMMCBOOT;
|
return MMCSD_MODE_EMMCBOOT;
|
||||||
|
|
|
@ -90,7 +90,7 @@ u32 spl_boot_mode(void)
|
||||||
case BOOT_DEVICE_MMC2:
|
case BOOT_DEVICE_MMC2:
|
||||||
return MMCSD_MODE_RAW;
|
return MMCSD_MODE_RAW;
|
||||||
case BOOT_DEVICE_MMC1:
|
case BOOT_DEVICE_MMC1:
|
||||||
return MMCSD_MODE_FAT;
|
return MMCSD_MODE_FS;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
puts("spl: ERROR: unknown device - can't select boot mode\n");
|
puts("spl: ERROR: unknown device - can't select boot mode\n");
|
||||||
|
|
|
@ -63,7 +63,7 @@ u32 spl_boot_device(void)
|
||||||
#ifdef CONFIG_SPL_MMC_SUPPORT
|
#ifdef CONFIG_SPL_MMC_SUPPORT
|
||||||
u32 spl_boot_mode(void)
|
u32 spl_boot_mode(void)
|
||||||
{
|
{
|
||||||
return MMCSD_MODE_FAT;
|
return MMCSD_MODE_FS;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,7 @@ u32 spl_boot_mode(void)
|
||||||
switch (spl_boot_device()) {
|
switch (spl_boot_device()) {
|
||||||
#ifdef CONFIG_SYS_USE_MMC
|
#ifdef CONFIG_SYS_USE_MMC
|
||||||
case BOOT_DEVICE_MMC1:
|
case BOOT_DEVICE_MMC1:
|
||||||
return MMCSD_MODE_FAT;
|
return MMCSD_MODE_FS;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case BOOT_DEVICE_NONE:
|
case BOOT_DEVICE_NONE:
|
||||||
|
|
|
@ -68,7 +68,7 @@ u32 spl_boot_mode(void)
|
||||||
case BOOT_DEVICE_MMC1:
|
case BOOT_DEVICE_MMC1:
|
||||||
case BOOT_DEVICE_MMC2:
|
case BOOT_DEVICE_MMC2:
|
||||||
#ifdef CONFIG_SPL_FAT_SUPPORT
|
#ifdef CONFIG_SPL_FAT_SUPPORT
|
||||||
return MMCSD_MODE_FAT;
|
return MMCSD_MODE_FS;
|
||||||
#else
|
#else
|
||||||
return MMCSD_MODE_RAW;
|
return MMCSD_MODE_RAW;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -106,18 +106,18 @@ int spl_load_image_fat_os(block_dev_desc_t *block_dev, int partition)
|
||||||
defaults:
|
defaults:
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
err = file_fat_read(CONFIG_SPL_FAT_LOAD_ARGS_NAME,
|
err = file_fat_read(CONFIG_SPL_FS_LOAD_ARGS_NAME,
|
||||||
(void *)CONFIG_SYS_SPL_ARGS_ADDR, 0);
|
(void *)CONFIG_SYS_SPL_ARGS_ADDR, 0);
|
||||||
if (err <= 0) {
|
if (err <= 0) {
|
||||||
#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
|
#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
|
||||||
printf("%s: error reading image %s, err - %d\n",
|
printf("%s: error reading image %s, err - %d\n",
|
||||||
__func__, CONFIG_SPL_FAT_LOAD_ARGS_NAME, err);
|
__func__, CONFIG_SPL_FS_LOAD_ARGS_NAME, err);
|
||||||
#endif
|
#endif
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return spl_load_image_fat(block_dev, partition,
|
return spl_load_image_fat(block_dev, partition,
|
||||||
CONFIG_SPL_FAT_LOAD_KERNEL_NAME);
|
CONFIG_SPL_FS_LOAD_KERNEL_NAME);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -101,15 +101,15 @@ void spl_mmc_load_image(void)
|
||||||
err = mmc_load_image_raw(mmc,
|
err = mmc_load_image_raw(mmc,
|
||||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR);
|
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR);
|
||||||
#ifdef CONFIG_SPL_FAT_SUPPORT
|
#ifdef CONFIG_SPL_FAT_SUPPORT
|
||||||
} else if (boot_mode == MMCSD_MODE_FAT) {
|
} else if (boot_mode == MMCSD_MODE_FS) {
|
||||||
debug("boot mode - FAT\n");
|
debug("boot mode - FAT\n");
|
||||||
#ifdef CONFIG_SPL_OS_BOOT
|
#ifdef CONFIG_SPL_OS_BOOT
|
||||||
if (spl_start_uboot() || spl_load_image_fat_os(&mmc->block_dev,
|
if (spl_start_uboot() || spl_load_image_fat_os(&mmc->block_dev,
|
||||||
CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION))
|
CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION))
|
||||||
#endif
|
#endif
|
||||||
err = spl_load_image_fat(&mmc->block_dev,
|
err = spl_load_image_fat(&mmc->block_dev,
|
||||||
CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION,
|
CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION,
|
||||||
CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME);
|
CONFIG_SPL_FS_LOAD_PAYLOAD_NAME);
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SUPPORT_EMMC_BOOT
|
#ifdef CONFIG_SUPPORT_EMMC_BOOT
|
||||||
} else if (boot_mode == MMCSD_MODE_EMMCBOOT) {
|
} else if (boot_mode == MMCSD_MODE_EMMCBOOT) {
|
||||||
|
|
|
@ -42,7 +42,7 @@ void spl_sata_load_image(void)
|
||||||
#endif
|
#endif
|
||||||
err = spl_load_image_fat(stor_dev,
|
err = spl_load_image_fat(stor_dev,
|
||||||
CONFIG_SYS_SATA_FAT_BOOT_PARTITION,
|
CONFIG_SYS_SATA_FAT_BOOT_PARTITION,
|
||||||
CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME);
|
CONFIG_SPL_FS_LOAD_PAYLOAD_NAME);
|
||||||
if (err) {
|
if (err) {
|
||||||
puts("Error loading sata device\n");
|
puts("Error loading sata device\n");
|
||||||
hang();
|
hang();
|
||||||
|
|
|
@ -49,7 +49,7 @@ void spl_usb_load_image(void)
|
||||||
#endif
|
#endif
|
||||||
err = spl_load_image_fat(stor_dev,
|
err = spl_load_image_fat(stor_dev,
|
||||||
CONFIG_SYS_USB_FAT_BOOT_PARTITION,
|
CONFIG_SYS_USB_FAT_BOOT_PARTITION,
|
||||||
CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME);
|
CONFIG_SPL_FS_LOAD_PAYLOAD_NAME);
|
||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
puts("Error loading USB device\n");
|
puts("Error loading USB device\n");
|
||||||
|
|
|
@ -304,8 +304,8 @@
|
||||||
|
|
||||||
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
||||||
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
|
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
|
||||||
#define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1
|
#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION 1
|
||||||
#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img"
|
#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
|
||||||
|
|
||||||
#define CONFIG_SPL_LIBCOMMON_SUPPORT
|
#define CONFIG_SPL_LIBCOMMON_SUPPORT
|
||||||
#define CONFIG_SPL_LIBDISK_SUPPORT
|
#define CONFIG_SPL_LIBDISK_SUPPORT
|
||||||
|
|
|
@ -313,8 +313,8 @@
|
||||||
|
|
||||||
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
||||||
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
|
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
|
||||||
#define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1
|
#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION 1
|
||||||
#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img"
|
#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
|
||||||
|
|
||||||
#define CONFIG_SPL_LIBCOMMON_SUPPORT
|
#define CONFIG_SPL_LIBCOMMON_SUPPORT
|
||||||
#define CONFIG_SPL_LIBDISK_SUPPORT
|
#define CONFIG_SPL_LIBDISK_SUPPORT
|
||||||
|
|
|
@ -321,8 +321,8 @@
|
||||||
|
|
||||||
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
||||||
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
|
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
|
||||||
#define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1
|
#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION 1
|
||||||
#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img"
|
#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
|
||||||
|
|
||||||
#define CONFIG_SPL_BOARD_INIT
|
#define CONFIG_SPL_BOARD_INIT
|
||||||
#define CONFIG_SPL_LIBCOMMON_SUPPORT
|
#define CONFIG_SPL_LIBCOMMON_SUPPORT
|
||||||
|
|
|
@ -298,8 +298,8 @@
|
||||||
#define CONFIG_SPL_MMC_SUPPORT
|
#define CONFIG_SPL_MMC_SUPPORT
|
||||||
#define CONFIG_SPL_FAT_SUPPORT
|
#define CONFIG_SPL_FAT_SUPPORT
|
||||||
#define CONFIG_SPL_LDSCRIPT "$(CPUDIR)/omap-common/u-boot-spl.lds"
|
#define CONFIG_SPL_LDSCRIPT "$(CPUDIR)/omap-common/u-boot-spl.lds"
|
||||||
#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img"
|
#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
|
||||||
#define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1
|
#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION 1
|
||||||
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
||||||
|
|
||||||
#define CONFIG_SPL_TEXT_BASE 0x40200000 /*CONFIG_SYS_SRAM_START*/
|
#define CONFIG_SPL_TEXT_BASE 0x40200000 /*CONFIG_SYS_SRAM_START*/
|
||||||
|
@ -341,8 +341,8 @@
|
||||||
0x400000)
|
0x400000)
|
||||||
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x280000
|
#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x280000
|
||||||
|
|
||||||
#define CONFIG_SPL_FAT_LOAD_KERNEL_NAME "uImage"
|
#define CONFIG_SPL_FS_LOAD_KERNEL_NAME "uImage"
|
||||||
#define CONFIG_SPL_FAT_LOAD_ARGS_NAME "args"
|
#define CONFIG_SPL_FS_LOAD_ARGS_NAME "args"
|
||||||
|
|
||||||
#define CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR 0x500 /* address 0xa0000 */
|
#define CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR 0x500 /* address 0xa0000 */
|
||||||
#define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR 0x8 /* address 0x1000 */
|
#define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR 0x8 /* address 0x1000 */
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
#if defined(CONFIG_SPL_MMC_SUPPORT)
|
#if defined(CONFIG_SPL_MMC_SUPPORT)
|
||||||
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 138 /* offset 69KB */
|
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 138 /* offset 69KB */
|
||||||
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 800 /* 400 KB */
|
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 800 /* 400 KB */
|
||||||
#define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1
|
#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION 1
|
||||||
#define CONFIG_SYS_MONITOR_LEN (CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS/2*1024)
|
#define CONFIG_SYS_MONITOR_LEN (CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS/2*1024)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
|
|
||||||
/* Define the payload for FAT/EXT support */
|
/* Define the payload for FAT/EXT support */
|
||||||
#if defined(CONFIG_SPL_FAT_SUPPORT) || defined(CONFIG_SPL_EXT_SUPPORT)
|
#if defined(CONFIG_SPL_FAT_SUPPORT) || defined(CONFIG_SPL_EXT_SUPPORT)
|
||||||
#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img"
|
#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
|
||||||
#define CONFIG_SPL_LIBDISK_SUPPORT
|
#define CONFIG_SPL_LIBDISK_SUPPORT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -372,8 +372,8 @@
|
||||||
#define CONFIG_SPL_BSS_MAX_SIZE 0x80000
|
#define CONFIG_SPL_BSS_MAX_SIZE 0x80000
|
||||||
|
|
||||||
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
||||||
#define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1
|
#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION 1
|
||||||
#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img"
|
#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
|
||||||
|
|
||||||
/* NAND boot config */
|
/* NAND boot config */
|
||||||
#define CONFIG_SYS_NAND_PAGE_COUNT 64
|
#define CONFIG_SYS_NAND_PAGE_COUNT 64
|
||||||
|
|
|
@ -75,8 +75,8 @@
|
||||||
#define CONFIG_SPL_FAT_SUPPORT
|
#define CONFIG_SPL_FAT_SUPPORT
|
||||||
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
||||||
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
|
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
|
||||||
#define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1
|
#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION 1
|
||||||
#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img"
|
#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
|
||||||
|
|
||||||
/* Partition tables */
|
/* Partition tables */
|
||||||
#define CONFIG_EFI_PARTITION
|
#define CONFIG_EFI_PARTITION
|
||||||
|
|
|
@ -87,7 +87,7 @@
|
||||||
#define CONFIG_SPL_FAT_SUPPORT
|
#define CONFIG_SPL_FAT_SUPPORT
|
||||||
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
||||||
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
|
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
|
||||||
#define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1
|
#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION 1
|
||||||
#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img"
|
#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
|
||||||
|
|
||||||
#endif /* __OMAP3_EVM_QUICK_MMC_H */
|
#endif /* __OMAP3_EVM_QUICK_MMC_H */
|
||||||
|
|
|
@ -230,8 +230,8 @@
|
||||||
#define CONFIG_SPL_MMC_SUPPORT
|
#define CONFIG_SPL_MMC_SUPPORT
|
||||||
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x400
|
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x400
|
||||||
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x200
|
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x200
|
||||||
#define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1
|
#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION 1
|
||||||
#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img"
|
#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
|
||||||
#define CONFIG_SPL_FAT_SUPPORT
|
#define CONFIG_SPL_FAT_SUPPORT
|
||||||
#define CONFIG_SPL_LIBDISK_SUPPORT
|
#define CONFIG_SPL_LIBDISK_SUPPORT
|
||||||
|
|
||||||
|
|
|
@ -276,8 +276,8 @@
|
||||||
#define CONFIG_SPL_MMC_SUPPORT
|
#define CONFIG_SPL_MMC_SUPPORT
|
||||||
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x400
|
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x400
|
||||||
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x200
|
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x200
|
||||||
#define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1
|
#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION 1
|
||||||
#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img"
|
#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
|
||||||
#define CONFIG_SPL_FAT_SUPPORT
|
#define CONFIG_SPL_FAT_SUPPORT
|
||||||
#define CONFIG_SPL_LIBDISK_SUPPORT
|
#define CONFIG_SPL_LIBDISK_SUPPORT
|
||||||
|
|
||||||
|
|
|
@ -148,8 +148,8 @@
|
||||||
#define CONFIG_SPL_BSS_MAX_SIZE 0x80000 /* 512 KB */
|
#define CONFIG_SPL_BSS_MAX_SIZE 0x80000 /* 512 KB */
|
||||||
|
|
||||||
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
||||||
#define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1
|
#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION 1
|
||||||
#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img"
|
#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
|
||||||
#define CONFIG_SPL_MMC_SUPPORT
|
#define CONFIG_SPL_MMC_SUPPORT
|
||||||
#define CONFIG_SPL_FAT_SUPPORT
|
#define CONFIG_SPL_FAT_SUPPORT
|
||||||
#define CONFIG_FS_FAT
|
#define CONFIG_FS_FAT
|
||||||
|
|
|
@ -305,8 +305,8 @@
|
||||||
|
|
||||||
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
||||||
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
|
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
|
||||||
#define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1
|
#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION 1
|
||||||
#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img"
|
#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
|
||||||
|
|
||||||
#define CONFIG_SPL_BOARD_INIT
|
#define CONFIG_SPL_BOARD_INIT
|
||||||
#define CONFIG_SPL_LIBCOMMON_SUPPORT
|
#define CONFIG_SPL_LIBCOMMON_SUPPORT
|
||||||
|
|
|
@ -178,8 +178,8 @@
|
||||||
|
|
||||||
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
||||||
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
|
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
|
||||||
#define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1
|
#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION 1
|
||||||
#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img"
|
#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
|
||||||
#define CONFIG_SPL_MMC_SUPPORT
|
#define CONFIG_SPL_MMC_SUPPORT
|
||||||
#define CONFIG_SPL_FAT_SUPPORT
|
#define CONFIG_SPL_FAT_SUPPORT
|
||||||
|
|
||||||
|
|
|
@ -144,8 +144,8 @@
|
||||||
|
|
||||||
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
||||||
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
|
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
|
||||||
#define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1
|
#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION 1
|
||||||
#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img"
|
#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
|
||||||
#define CONFIG_SPL_MMC_SUPPORT
|
#define CONFIG_SPL_MMC_SUPPORT
|
||||||
#define CONFIG_SPL_FAT_SUPPORT
|
#define CONFIG_SPL_FAT_SUPPORT
|
||||||
|
|
||||||
|
|
|
@ -232,13 +232,13 @@
|
||||||
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
|
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
|
||||||
|
|
||||||
/* FAT sd card locations. */
|
/* FAT sd card locations. */
|
||||||
#define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1
|
#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION 1
|
||||||
#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img"
|
#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
|
||||||
|
|
||||||
#ifdef CONFIG_SPL_OS_BOOT
|
#ifdef CONFIG_SPL_OS_BOOT
|
||||||
/* FAT */
|
/* FAT */
|
||||||
#define CONFIG_SPL_FAT_LOAD_KERNEL_NAME "uImage"
|
#define CONFIG_SPL_FS_LOAD_KERNEL_NAME "uImage"
|
||||||
#define CONFIG_SPL_FAT_LOAD_ARGS_NAME "args"
|
#define CONFIG_SPL_FS_LOAD_ARGS_NAME "args"
|
||||||
|
|
||||||
/* RAW SD card / eMMC */
|
/* RAW SD card / eMMC */
|
||||||
#define CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR 0x900 /* address 0x120000 */
|
#define CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR 0x900 /* address 0x120000 */
|
||||||
|
|
|
@ -348,8 +348,8 @@
|
||||||
#define CONFIG_SPL_MMC_SUPPORT
|
#define CONFIG_SPL_MMC_SUPPORT
|
||||||
#define CONFIG_SPL_FAT_SUPPORT
|
#define CONFIG_SPL_FAT_SUPPORT
|
||||||
#define CONFIG_SPL_LDSCRIPT "$(CPUDIR)/omap-common/u-boot-spl.lds"
|
#define CONFIG_SPL_LDSCRIPT "$(CPUDIR)/omap-common/u-boot-spl.lds"
|
||||||
#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img"
|
#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
|
||||||
#define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1
|
#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION 1
|
||||||
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
||||||
|
|
||||||
#define CONFIG_SPL_TEXT_BASE 0x40200000 /*CONFIG_SYS_SRAM_START*/
|
#define CONFIG_SPL_TEXT_BASE 0x40200000 /*CONFIG_SYS_SRAM_START*/
|
||||||
|
|
|
@ -268,10 +268,10 @@
|
||||||
#define CONFIG_SPL_MMC_SUPPORT
|
#define CONFIG_SPL_MMC_SUPPORT
|
||||||
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
||||||
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
|
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
|
||||||
#define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1
|
#define CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION 1
|
||||||
#define CONFIG_SPL_LIBDISK_SUPPORT
|
#define CONFIG_SPL_LIBDISK_SUPPORT
|
||||||
#define CONFIG_SPL_FAT_SUPPORT
|
#define CONFIG_SPL_FAT_SUPPORT
|
||||||
#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot-dtb.img"
|
#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot-dtb.img"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Disable dcache for SPL just for sure */
|
/* Disable dcache for SPL just for sure */
|
||||||
|
@ -283,8 +283,8 @@
|
||||||
/* Address in RAM where the parameters must be copied by SPL. */
|
/* Address in RAM where the parameters must be copied by SPL. */
|
||||||
#define CONFIG_SYS_SPL_ARGS_ADDR 0x10000000
|
#define CONFIG_SYS_SPL_ARGS_ADDR 0x10000000
|
||||||
|
|
||||||
#define CONFIG_SPL_FAT_LOAD_ARGS_NAME "system.dtb"
|
#define CONFIG_SPL_FS_LOAD_ARGS_NAME "system.dtb"
|
||||||
#define CONFIG_SPL_FAT_LOAD_KERNEL_NAME "uImage"
|
#define CONFIG_SPL_FS_LOAD_KERNEL_NAME "uImage"
|
||||||
|
|
||||||
/* Not using MMC raw mode - just for compilation purpose */
|
/* Not using MMC raw mode - just for compilation purpose */
|
||||||
#define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR 0
|
#define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR 0
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
/* Boot type */
|
/* Boot type */
|
||||||
#define MMCSD_MODE_UNDEFINED 0
|
#define MMCSD_MODE_UNDEFINED 0
|
||||||
#define MMCSD_MODE_RAW 1
|
#define MMCSD_MODE_RAW 1
|
||||||
#define MMCSD_MODE_FAT 2
|
#define MMCSD_MODE_FS 2
|
||||||
#define MMCSD_MODE_EMMCBOOT 3
|
#define MMCSD_MODE_EMMCBOOT 3
|
||||||
|
|
||||||
struct spl_image_info {
|
struct spl_image_info {
|
||||||
|
|
Loading…
Add table
Reference in a new issue