Convert CONFIG_SYS_MMC_MAX_DEVICE to Kconfig
This converts the following to Kconfig: CONFIG_SYS_MMC_MAX_DEVICE Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
This commit is contained in:
parent
75fc79e530
commit
9ba938e744
8 changed files with 5 additions and 40 deletions
|
@ -5,4 +5,9 @@ config API
|
||||||
help
|
help
|
||||||
This option enables the U-Boot API. See api/README for more information.
|
This option enables the U-Boot API. See api/README for more information.
|
||||||
|
|
||||||
|
config SYS_MMC_MAX_DEVICE
|
||||||
|
int "Maximum number of MMC devices exposed via the API"
|
||||||
|
depends on API
|
||||||
|
default 1
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
|
@ -44,10 +44,6 @@ struct stor_spec {
|
||||||
|
|
||||||
static struct stor_spec specs[ENUM_MAX] = { { 0, 0, 0, 0, NULL }, };
|
static struct stor_spec specs[ENUM_MAX] = { { 0, 0, 0, 0, NULL }, };
|
||||||
|
|
||||||
#ifndef CONFIG_SYS_MMC_MAX_DEVICE
|
|
||||||
#define CONFIG_SYS_MMC_MAX_DEVICE 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void dev_stor_init(void)
|
void dev_stor_init(void)
|
||||||
{
|
{
|
||||||
#if defined(CONFIG_IDE)
|
#if defined(CONFIG_IDE)
|
||||||
|
|
|
@ -192,24 +192,6 @@
|
||||||
DFU_ALT_INFO_NAND
|
DFU_ALT_INFO_NAND
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* Default to using SPI for environment, etc.
|
|
||||||
* 0x000000 - 0x020000 : SPL (128KiB)
|
|
||||||
* 0x020000 - 0x0A0000 : U-Boot (512KiB)
|
|
||||||
* 0x0A0000 - 0x0BFFFF : First copy of U-Boot Environment (128KiB)
|
|
||||||
* 0x0C0000 - 0x0DFFFF : Second copy of U-Boot Environment (128KiB)
|
|
||||||
* 0x0E0000 - 0x442000 : Linux Kernel
|
|
||||||
* 0x442000 - 0x800000 : Userland
|
|
||||||
*/
|
|
||||||
#if defined(CONFIG_SPI_BOOT)
|
|
||||||
/* SPL related */
|
|
||||||
#elif defined(CONFIG_EMMC_BOOT)
|
|
||||||
#define CONFIG_SYS_MMC_MAX_DEVICE 2
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Network. */
|
|
||||||
/* Enable Atheros phy driver */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* NOR Size = 16 MiB
|
* NOR Size = 16 MiB
|
||||||
* Number of Sectors/Blocks = 128
|
* Number of Sectors/Blocks = 128
|
||||||
|
|
|
@ -21,9 +21,6 @@
|
||||||
*/
|
*/
|
||||||
#define CONFIG_SYS_BOOTMAPSZ SZ_256M
|
#define CONFIG_SYS_BOOTMAPSZ SZ_256M
|
||||||
|
|
||||||
/*MMC SD*/
|
|
||||||
#define CONFIG_SYS_MMC_MAX_DEVICE 2
|
|
||||||
|
|
||||||
/* NAND support */
|
/* NAND support */
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -21,9 +21,6 @@
|
||||||
*/
|
*/
|
||||||
#define CONFIG_SYS_BOOTMAPSZ SZ_256M
|
#define CONFIG_SYS_BOOTMAPSZ SZ_256M
|
||||||
|
|
||||||
/*MMC SD*/
|
|
||||||
#define CONFIG_SYS_MMC_MAX_DEVICE 3
|
|
||||||
|
|
||||||
/* NAND support */
|
/* NAND support */
|
||||||
|
|
||||||
/* Ethernet need */
|
/* Ethernet need */
|
||||||
|
|
|
@ -78,8 +78,6 @@
|
||||||
/* mmc config */
|
/* mmc config */
|
||||||
#define CONFIG_MMC_SUNXI_SLOT 0
|
#define CONFIG_MMC_SUNXI_SLOT 0
|
||||||
|
|
||||||
#define CONFIG_SYS_MMC_MAX_DEVICE 4
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Miscellaneous configurable options
|
* Miscellaneous configurable options
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -28,13 +28,6 @@
|
||||||
*/
|
*/
|
||||||
#define CONFIG_SYS_NS16550_CLK V_NS16550_CLK
|
#define CONFIG_SYS_NS16550_CLK V_NS16550_CLK
|
||||||
|
|
||||||
/*
|
|
||||||
* Common HW configuration.
|
|
||||||
* If this varies between SoCs later, move to tegraNN-common.h
|
|
||||||
* Note: This is number of devices, not max device ID.
|
|
||||||
*/
|
|
||||||
#define CONFIG_SYS_MMC_MAX_DEVICE 4
|
|
||||||
|
|
||||||
#ifdef CONFIG_ARM64
|
#ifdef CONFIG_ARM64
|
||||||
#define FDTFILE "nvidia/" CONFIG_DEFAULT_DEVICE_TREE ".dtb"
|
#define FDTFILE "nvidia/" CONFIG_DEFAULT_DEVICE_TREE ".dtb"
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -195,9 +195,6 @@
|
||||||
|
|
||||||
/* Extend size of kernel image for uncompression */
|
/* Extend size of kernel image for uncompression */
|
||||||
|
|
||||||
/* Boot FreeBSD/vxWorks from an ELF image */
|
|
||||||
#define CONFIG_SYS_MMC_MAX_DEVICE 1
|
|
||||||
|
|
||||||
/* Address in RAM where the parameters must be copied by SPL. */
|
/* Address in RAM where the parameters must be copied by SPL. */
|
||||||
|
|
||||||
/* Not using MMC raw mode - just for compilation purpose */
|
/* Not using MMC raw mode - just for compilation purpose */
|
||||||
|
|
Loading…
Reference in a new issue