spl: Kconfig: SPL_MMC_SUPPORT depends on GENERIC_MMC
PATCH 1/1 spl: Kconfig: SPL_MMC_SUPPORT depends on GENERIC_MMC
spl_mmc.c calls mmc_initialize(). This symbol is provided in drivers/mmc/mmc.c when CONFIG_GENERIC_MMC is enabled.
--- common/spl/Kconfig | 1 + 1 file changed, 1 insertion(+)
common/spl/Kconfig +1 -0
@@ -354,6 +354,7 @@ config SPL_LIBGENERIC_SUPPORT config SPL_MMC_SUPPORT bool "Support MMC" depends on SPL + depends on GENERIC_MMC help Enable support for MMC (Multimedia Card) within SPL. This enables the MMC protocol implementation and allows any enabled drivers to
Signature · 1 line
2.7.4
Quoted 13 lines · Alexandru Gagniuc
spl_mmc.ccallsmmc_initialize(). This symbol is provided indrivers/mmc/mmc.cwhenCONFIG_GENERIC_MMCis enabled.Signed-off-by Alexandru Gagniuc <[email protected]>--- common/spl/Kconfig | 1 + 1 file changed, 1 insertion(+)common/spl/Kconfig +0
-0
common/spl/Kconfig config SPL_LIBGENERIC_SUPPORT · line 360
Quoted 7 lines
common/spl/Kconfig +1
-0@@ -354,6 +354,7 @@ config SPL_LIBGENERIC_SUPPORT config SPL_MMC_SUPPORT bool "Support MMC" depends on SPL + depends on GENERIC_MMC help Enable support for MMC (Multimedia Card) within SPL. This enables the MMC protocol implementation and allows any enabled drivers to
This isn't 100% right as it breaks some sunxi boards as-is, CHIP (which indeed doesn't do MMC) and Nintendo_NES_Classic_Edition.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170320/b8d202b1/attachment.sig>
Quoted 10 lines · Tom Rini
Quoted 8 lines · Alexandru Gagniuc
spl_mmc.ccallsmmc_initialize(). This symbol is provided indrivers/mmc/mmc.cwhenCONFIG_GENERIC_MMCis enabled.Signed-off-by Alexandru Gagniuc <[email protected]>--- common/spl/Kconfig | 1 + 1 file changed, 1 insertion(+)
Quoted 15 lines
common/spl/Kconfig config SPL_LIBGENERIC_SUPPORT · line 360
Quoted 12 lines
common/spl/Kconfig +1
-0@@ -354,6 +354,7 @@ config SPL_LIBGENERIC_SUPPORT config SPL_MMC_SUPPORT bool "Support MMC" depends on SPL + depends on GENERIC_MMC help Enable support for MMC (Multimedia Card) within SPL. This enables the MMC protocol implementation and allows any enabled drivers toThis isn't 100% right as it breaks some sunxi boards as-is, CHIP (which indeed doesn't do MMC) and
Nintendo_NES_Classic_Edition.
How exactly does it break things? Do you have a link to build test results. If I don't know what's broken, I can't fix it.
Alex
Quoted 27 lines · Alexandru Gagniuc
Quoted 10 lines · Tom Rini
Quoted 8 lines · Alexandru Gagniuc
spl_mmc.ccallsmmc_initialize(). This symbol is provided indrivers/mmc/mmc.cwhenCONFIG_GENERIC_MMCis enabled.Signed-off-by Alexandru Gagniuc <[email protected]>---
common/spl/Kconfig | 1 +1 file changed, 1 insertion(+)Quoted 15 lines
Quoted 9 lines
common/spl/Kconfig +0
-0@@ -354,6 +354,7 @@ config SPL_LIBGENERIC_SUPPORTconfig
SPL_MMC_SUPPORT
bool "Support MMC"
depends on SPLcommon/spl/Kconfig +1
-0+ depends on GENERIC_MMCQuoted 3 lines
help
Enable support for MMC (Multimedia Card) within SPL. This enables the MMC protocol implementation and allows any enabled drivers toThis isn't 100% right as it breaks some sunxi boards as-is, CHIP (which indeed doesn't do MMC) and
Nintendo_NES_Classic_Edition.
Quoted 2 lines
How exactly does it break things? Do you have a link to build test results. If I don't know what's broken, I can't fix it.
If you build one of those platforms (which just needs a regular ARM toolchain), you'll see it. I don't have the logs around, sorry.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170404/1b8d9a61/attachment.sig>
PATCH 1/1 spl: Kconfig: SPL_MMC_SUPPORT depends on GENERIC_MMC
spl_mmc.c calls mmc_initialize(). This symbol is provided in drivers/mmc/mmc.c when CONFIG_GENERIC_MMC is enabled. The sunxi Kconfig case is an oddball because it redefines SPL_MMC_SUPPORT.
---
Changes since v1:
* Applied same dependency logic to sunxi Kconfig file
board/sunxi/Kconfig | 2 ++ common/spl/Kconfig | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)
board/sunxi/Kconfig +2 -0
@@ -3,6 +3,7 @@ if ARCH_SUNXI config IDENT_STRING default " Allwinner Technology" +# FIXME: Should not redefine these Kconfig symbols config PRE_CONSOLE_BUFFER default y
@@ -19,6 +20,7 @@ config SPL_LIBGENERIC_SUPPORT default y config SPL_MMC_SUPPORT + depends on SPL && GENERIC_MMC default y config SPL_POWER_SUPPORT
common/spl/Kconfig +1 -1
@@ -371,7 +371,7 @@ config SPL_LIBGENERIC_SUPPORT config SPL_MMC_SUPPORT bool "Support MMC" - depends on SPL + depends on SPL && GENERIC_MMC help Enable support for MMC (Multimedia Card) within SPL. This enables the MMC protocol implementation and allows any enabled drivers to
Signature · 1 line
2.9.3
Quoted 6 lines · Alexandru Gagniuc
spl_mmc.ccallsmmc_initialize(). This symbol is provided indrivers/mmc/mmc.cwhenCONFIG_GENERIC_MMCis enabled. The sunxiKconfigcase is an oddball because it redefinesSPL_MMC_SUPPORT.Signed-off-by Alexandru Gagniuc <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170408/ff51f4c1/attachment.sig>