mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
spl: Migrate SYS_SATA_FAT_BOOT_PARTITION to Kconfig
This moves SYS_SATA_FAT_BOOT_PARTITION to Kconfig and enforces the current default via Kconfig rather than C code. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
2db82bf2bd
commit
f16b1a6c00
3 changed files with 5 additions and 9 deletions
|
@ -1232,6 +1232,11 @@ config SPL_SATA
|
|||
expense and power consumption. This enables loading from SATA
|
||||
using a configured device.
|
||||
|
||||
config SYS_SATA_FAT_BOOT_PARTITION
|
||||
int "Partition on the SATA disk to load U-Boot from"
|
||||
depends on SPL_SATA && SPL_FS_FAT
|
||||
default 1
|
||||
|
||||
config SPL_SATA_RAW_U_BOOT_USE_SECTOR
|
||||
bool "SATA raw mode: by sector"
|
||||
depends on SPL_SATA
|
||||
|
|
|
@ -17,10 +17,6 @@
|
|||
#include <fat.h>
|
||||
#include <image.h>
|
||||
|
||||
#ifndef CONFIG_SYS_SATA_FAT_BOOT_PARTITION
|
||||
#define CONFIG_SYS_SATA_FAT_BOOT_PARTITION 1
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_SPL_SATA_RAW_U_BOOT_SECTOR
|
||||
/* Dummy value to make the compiler happy */
|
||||
#define CONFIG_SPL_SATA_RAW_U_BOOT_SECTOR 0x100
|
||||
|
|
|
@ -10,11 +10,6 @@
|
|||
|
||||
/* MMC support */
|
||||
|
||||
/* SATA support */
|
||||
#if defined(CONFIG_SPL_SATA)
|
||||
#define CONFIG_SYS_SATA_FAT_BOOT_PARTITION 1
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue