Marvell SheevaPlug v2013.04 Refresh (ask for review)
Subsystems (2)
Hi,
I have started to rework all the MVSDIO driver, and some more enhancements, to make a cool updated and workable SheevaPlug. I have take the v2013.04 denx uBoot to base my patchs.
If you can take a look inside and give me needed feedback.
I want to precise that I do not easily practice GIT features.
Regards,
G?rald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Sheevaplug-board-powerplug-v2013-04-refresh.patch
Type: text/x-patch
Size: 36037 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130702/ab011d95/attachment.bin>
Hi G?rald,
Quoted 8 lines · DrEagle
Hi,
I have started to rework all the MVSDIO driver, and some more enhancements, to make a cool updated and workable SheevaPlug. I have take the v2013.04 denx uBoot to base my patchs.
If you can take a look inside and give me needed feedback.
I want to precise that I do not easily practice GIT features.
Pease submit patch according to the patch submission guidelines at
<http://www.denx.de/wiki/U-Boot/Patches>. Especially, do not send patches to the list as attachments; instead, use 'git format-patch' and 'git send-email'. Also, put the relevant custodians and/or maintainers in Cc: of your mail.
Quoted 2 lines
Regards,
G?rald
Amicalement,
Signature · 1 line
Albert.
Le 05/07/2013 23:08, Albert ARIBAUD a ?crit :
Quoted 1 line
Hi G?rald,
Hello,
Quoted 9 lines · DrEagle
Quoted 8 lines
Hi,
I have started to rework all the MVSDIO driver, and some more enhancements, to make a cool updated and workable SheevaPlug. I have take the v2013.04 denx uBoot to base my patchs.
If you can take a look inside and give me needed feedback.
Quoted 7 lines
Quoted 1 line
I want to precise that I do not easily practice GIT features.
Pease submit patch according to the patch submission guidelines at
<http://www.denx.de/wiki/U-Boot/Patches>. Especially, do not send patches to the list as attachments; instead, use 'git format-patch' and 'git send-email'. Also, put the relevant custodians and/or maintainers in Cc: of your mail.
I'll try to get it rewrote according rules.
I do not get git send-email working.
So I have take appart the patch and will send them separatly.
Regards,
G?rald
Hi DrEagle,
Quoted 16 lines · DrEagle
Le 05/07/2013 23:08, Albert ARIBAUD a ?crit :
Quoted 1 line
Hi G?rald,
Hello,
Quoted 11 lines · DrEagle
Quoted 9 lines
Hi,
I have started to rework all the MVSDIO driver, and some more enhancements, to make a cool updated and workable SheevaPlug. I have take the v2013.04 denx uBoot to base my patchs.
If you can take a look inside and give me needed feedback.
I want to precise that I do not easily practice GIT features.
Quoted 7 lines
Quoted 5 lines
Pease submit patch according to the patch submission guidelines at
<http://www.denx.de/wiki/U-Boot/Patches>. Especially, do not send patches to the list as attachments; instead, use 'git format-patch' and 'git send-email'. Also, put the relevant custodians and/or maintainers in Cc: of your mail.I'll try to get it rewrote according rules.
Among these rules, please run your patches through checkpatch, or through patman. Several lines are way beyond 80 chars, for instance, and either tool would have spotted this.
Quoted 3 lines
I do not get git send-email working.
So I have take appart the patch and will send them separatly.
You should investigate why git send-email fails and try to fix it.
Quoted 2 lines
Regards,
G?rald
Amicalement,
Signature · 1 line
Albert.
cover arm kirkwood - sheevaplug refresh
In reply to Albert ARIBAUD This serie of patch :
- add kirkwood_id to detect supported devices and revisions
- update supported devices and revisions
- add kw88f6282 support
- add SDIO/MMC generic driver v3
- add SDIO/MMC driver support to Kirkwood SoC
- add SDIO/MMC support to Sheevaplug board
- add MVSATA sheevaplug support
- update sheevaplug defaults config
PATCH 1/8 arm kirkwood - add kirkwood_id
In reply to Albert ARIBAUD - add kirkwood_id to detect supported devices and revisions
arch/arm/cpu/arm926ejs/kirkwood/cpu.c |
arch/arm/include/asm/arch-kirkwood/cpu.h |
arch/arm/cpu/arm926ejs/kirkwood/cpu.c +58 -0
@@ -350,6 +350,64 @@ int arch_cpu_init(void) }#endif /* CONFIG_ARCH_CPU_INIT */ +/***************************************************************************** +* General +****************************************************************************/ +#if defined(CONFIG_ARCH_DEV_ID ) + +void kirkwood_pcie_id (u32 *dev,u32 *rev) +{ + *dev = (readl (KW_REG_PCIE_DEVID ) >>16 ) &0xffff ; + *rev =readl (KW_REG_PCIE_REVID ) &0xff ; +} + +/* +* Identify device ID and revision. +*/ +char *kirkwood_id (void ) +{ +u32 dev, rev; + +kirkwood_pcie_id (&dev, &rev); + +if (dev ==MV88F6281_DEV_ID ) { +if (rev ==MV88F6281_REV_Z0 ) +return "MV88F6281-Z0" ; +else if (rev ==MV88F6281_REV_A0 ) +return "MV88F6281-A0" ; +else if (rev ==MV88F6281_REV_A1 ) +return "MV88F6281-A1" ; +else +return "MV88F6281-Rev-Unsupported" ; + }else if (dev ==MV88F6192_DEV_ID ) { +if (rev ==MV88F6192_REV_Z0 ) +return "MV88F6192-Z0" ; +else if (rev ==MV88F6192_REV_A0 ) +return "MV88F6192-A0" ; +else if (rev ==MV88F6192_REV_A1 ) +return "MV88F6192-A1" ; +else +return "MV88F6192-Rev-Unsupported" ; + }else if (dev ==MV88F6180_DEV_ID ) { +if (rev ==MV88F6180_REV_A0 ) +return "MV88F6180-Rev-A0" ; +else if (rev ==MV88F6180_REV_A1 ) +return "MV88F6180-Rev-A1" ; +else +return "MV88F6180-Rev-Unsupported" ; + }else if (dev ==MV88F6282_DEV_ID ) { +if (rev ==MV88F6282_REV_A0 ) +return "MV88F6282-Rev-A0" ; +else if (rev ==MV88F6282_REV_A1 ) +return "MV88F6282-Rev-A1" ; +else +return "MV88F6282-Rev-Unsupported" ; + }else { +return "Device-Unknown" ; + } +} +#endif /* CONFIG_ARCH_DEV_ID */ +/* * SOC specific misc init */
arch/arm/include/asm/arch-kirkwood/cpu.h +2 -0
@@ -167,5 +167,7 @@ int kw_config_mpp(unsigned int mpp0_7, unsigned int mpp8_15, unsigned int mpp32_39, unsigned int mpp40_47, unsigned int mpp48_55);unsigned int kw_winctrl_calcsize (unsigned int sizeval); +void kirkwood_pcie_id (u32 *dev,u32 *rev); +char *kirkwood_id (void );#endif /* __ASSEMBLY__ */ #endif /* _KWCPU_H */
PATCH 2/8 arm kirkwood update supported devices and revisions
In reply to Albert ARIBAUD- update kirkwood supported devices and revisions
arch/arm/include/asm/arch-kirkwood/config.h |
arch/arm/include/asm/arch-kirkwood/kirkwood.h +21 -0
@@ -77,10 +78,33 @@#define MVCPU_WIN_ENABLE KWCPU_WIN_ENABLE#define MVCPU_WIN_DISABLE KWCPU_WIN_DISABLE +/* +* Supported devices and revisions. +*/ +#define MV88F6281_DEV_ID 0x6281 +#define MV88F6281_REV_Z0 0 +#define MV88F6281_REV_A0 2 +#define MV88F6281_REV_A1 3 + +#define MV88F6192_DEV_ID 0x6192 +#define MV88F6192_REV_Z0 0 +#define MV88F6192_REV_A0 2 +#define MV88F6192_REV_A1 3 + +#define MV88F6180_DEV_ID 0x6180 +#define MV88F6180_REV_A0 2 +#define MV88F6180_REV_A1 3 + +#define MV88F6282_DEV_ID 0x6282 +#define MV88F6282_REV_A0 0 +#define MV88F6282_REV_A1 1 +#if defined (CONFIG_KW88F6281 )#include <asm/arch/kw88f6281.h> #elif defined (CONFIG_KW88F6192 )#include <asm/arch/kw88f6192.h>
PATCH 3/8 arm kirkwood add kw88f6282 support
In reply to Albert ARIBAUD- add kw88f6282 device support
arch/arm/include/asm/arch-kirkwood/config.h | arch/arm/include/asm/arch-kirkwood/kirkwood.h | arch/arm/include/asm/arch-kirkwood/kw88f6282.h |
arch/arm/include/asm/arch-kirkwood/config.h +2 -0
@@ -35,6 +35,8 @@#include <asm/arch/kw88f6281.h> #elif defined (CONFIG_KW88F6192 )#include <asm/arch/kw88f6192.h> +#elif defined (CONFIG_KW88F6182 ) +#include <asm/arch/kw88f6182.h> #else #error "SOC Name not defined"#endif /* CONFIG_KW88F6281 */
arch/arm/include/asm/arch-kirkwood/kirkwood.h +2 -0
@@ -77,10 +78,33 @@#if defined (CONFIG_KW88F6281 )#include <asm/arch/kw88f6281.h> #elif defined (CONFIG_KW88F6192 )#include <asm/arch/kw88f6192.h> +#elif defined (CONFIG_KW88F6182 ) +#include <asm/arch/kw88f6182.h> #else #error "SOC Name not defined"#endif /* CONFIG_KW88F6281 */
arch/arm/include/asm/arch-kirkwood/kw88f6282.h new file +39 -0
@@ -0,0 +1,39 @@ +/* +* (C) Copyright 2009 +* Marvell Semiconductor <www.marvell.com> +* Written-by: Prafulla Wadaskar <[email protected]> +* +* Header file for Feroceon CPU core 88FR131 Based KW88F6281 SOC. +* +* See file CREDITS for list of people who contributed to this +* project. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +* MA 02110-1301 USA +*/ + +#ifndef _ASM_ARCH_KW88F6281_H +#define _ASM_ARCH_KW88F6281_H + +/* SOC specific definitions */ +#define KW88F6281_REGS_PHYS_BASE 0xf1000000 +#define KW_REGS_PHY_BASE KW88F6281_REGS_PHYS_BASE + +/* TCLK Core Clock definition */ +#ifndef CONFIG_SYS_TCLK +#define CONFIG_SYS_TCLK 200000000/* 200MHz */ +#endif + +#endif /* _ASM_ARCH_KW88F6281_H */
PATCH 4/8 arm kirkwood add MVSDIO driver v3
In reply to Albert ARIBAUD- add kirkwood MVSDIO driver
WIP : MVSDIO v3
WIP : MVSDIO SD/MMC Driver Support for Marvell Kirkwood SoC need debugging and code cleaning
Fix SDIO/MMC driver
- MVSDIO driver now works in non DEBUG mode
Change from v2:
- add base_clock in mrvl_mmc_initialize and mrvl_mmc_set_clk check kirkwood device and revision to fix clock rates
- add kirkwood supported devices and revisions
- add sheevaplug board_mmc_init
- MVSDIO driver code mostly rewrote and still need some cleaning
Change from v1:
- Fix an issue with most SDHC cards because of timeout delay
drivers/mmc/Makefile | drivers/mmc/mrvl_mmc.c | include/mrvl_mmc.h |
drivers/mmc/Makefile +1 -0
@@ -37,6 +37,7 @@ COBJS-$(CONFIG_GENERIC_MMC) += mmc.o COBJS-$(CONFIG_GENERIC_ATMEL_MCI) += gen_atmel_mci.o COBJS-$(CONFIG_MMC_SPI) += mmc_spi.o COBJS-$(CONFIG_ARM_PL180_MMCI) += arm_pl180_mmci.o +COBJS-$(CONFIG_MRVL_MMC) += mrvl_mmc.o COBJS-$(CONFIG_MV_SDHCI) += mv_sdhci.o COBJS-$(CONFIG_MXC_MMC) += mxcmmc.o COBJS-$(CONFIG_MXS_MMC) += mxsmmc.o
drivers/mmc/mrvl_mmc.c new file +446 -0
446 lines not on this page · raw message
include/mrvl_mmc.h new file +266 -0
266 lines not on this page · raw message
PATCH 5/8 arm kirkwood add MVSDIO kirkwood support
In reply to Albert ARIBAUD- add kirkwood MVSDIO driver support
arch/arm/include/asm/arch-kirkwood/kirkwood.h |
arch/arm/include/asm/arch-kirkwood/kirkwood.h +1 -0
@@ -55,6 +55,7 @@#define KW_EGIGA0_BASE (KW_REGISTER(0x72000))#define KW_EGIGA1_BASE (KW_REGISTER(0x76000))#define KW_SATA_BASE (KW_REGISTER(0x80000)) +#define KW_SDIO_BASE (KW_REGISTER(0x90000))/* Kirkwood Sata controller has two ports */ #define KW_SATA_PORT0_OFFSET 0x2000
PATCH 6/8 arm kirkwood add MVSDIO sheevaplug support
In reply to Albert ARIBAUD- add sheevaplug MVSDIO driver support
board/Marvell/sheevaplug/sheevaplug.c |
include/configs/sheevaplug.h |
board/Marvell/sheevaplug/sheevaplug.c +11 -0
@@ -28,6 +28,9 @@#include <asm/arch/kirkwood.h> #include <asm/arch/mpp.h> #include "sheevaplug.h" +#ifdef CONFIG_MRVL_MMC +#include <mrvl_mmc.h> +#endif /* CONFIG_MRVL_MMC */ DECLARE_GLOBAL_DATA_PTR ;
@@ -147,3 +150,11 @@ void reset_phy(void) printf("88E1116 Initialized on %s\n", name); }#endif /* CONFIG_RESET_PHY_R */ + +#ifdef CONFIG_MRVL_MMC +int board_mmc_init (bd_t *bis) +{ +mrvl_mmc_initialize (bis); +return 0 ; +} +#endif /* CONFIG_MRVL_MMC */
include/configs/sheevaplug.h +1 -0
@@ -39,17 +40,24 @@/* * Commands configuration */ #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */ #include <config_cmd_default.h> #define CONFIG_CMD_DHCP #define CONFIG_CMD_ENV #define CONFIG_CMD_MII +#define CONFIG_CMD_MMC #define CONFIG_CMD_NAND #define CONFIG_CMD_PING #define CONFIG_CMD_USB /* * mv-common.h should be defined after CMD configs since it used them * to enable certain macros
@@ -98,17 +138,20 @@#endif /* CONFIG_CMD_NET */ /* * File system */
#define CONFIG_CMD_EXT2
#define CONFIG_CMD_FAT
#define CONFIG_CMD_JFFS2
#define CONFIG_CMD_UBI
#define CONFIG_CMD_UBIFS
#define CONFIG_RBTREE
#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
#define CONFIG_MTD_PARTITIONS
#define CONFIG_CMD_MTDPARTS
#define CONFIG_LZO
+/*
+ * SDIO/MMC Card Configuration
+ */
+#ifdef CONFIG_CMD_MMC
+#define CONFIG_MMC
+#define CONFIG_GENERIC_MMC
+#define CONFIG_MRVL_MMC
+#define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
+#endif /* CONFIG_CMD_MMC */
#endif /* _CONFIG_SHEEVAPLUG_H */
PATCH 7/8 arm kirkwood add MVSATA sheevaplug support
In reply to Albert ARIBAUD- add sheevaplug MVSATA driver support
include/configs/mv-common.h |
include/configs/sheevaplug.h |
include/configs/mv-common.h +13 -0
@@ -142,6 +146,19 @@#endif /* +* SATA driver configuration +*/ +#ifdef CONFIG_CMD_IDE +#define __io +#define CONFIG_IDE_PREINIT +#define CONFIG_DOS_PARTITION +#define CONFIG_MVSATA_IDE_USE_PORT0 +#define CONFIG_MVSATA_IDE_USE_PORT1 +#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET +#define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET +#endif /* CONFIG_CMD_IDE */ + +/* * Common USB/EHCI configuration */ #ifdef CONFIG_CMD_USB
include/configs/sheevaplug.h +1 -0
@@ -39,17 +40,24 @@/* * Commands configuration */ #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */ #include <config_cmd_default.h> #define CONFIG_CMD_DHCP #define CONFIG_CMD_ENV +#define CONFIG_CMD_IDE #define CONFIG_CMD_MII #define CONFIG_CMD_NAND #define CONFIG_CMD_PING #define CONFIG_CMD_USB /* * mv-common.h should be defined after CMD configs since it used them * to enable certain macros
PATCH 8/8 arm kirkwood update sheevaplug defaults config
In reply to Albert ARIBAUD- update defaults sheevaplug config
include/configs/mv-common.h |
include/configs/sheevaplug.h |
include/configs/mv-common.h +5 -1
@@ -72,7 +72,10 @@#define CONFIG_BAUDRATE 115200#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, \ 115200,230400, 460800, 921600 } -/* auto boot */ +/* +* Miscellaneous configurable options +*/ +#define CONFIG_ENV_OVERWRITE #define CONFIG_BOOTDELAY 3/* default enable autoboot */ /*
@@ -98,6 +101,7 @@* Other required minimal configurations */ #define CONFIG_SYS_LONGHELP +#define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */ #define CONFIG_AUTO_COMPLETE #define CONFIG_CMDLINE_EDITING #define CONFIG_CONSOLE_INFO_QUIET /* some code reduction */
include/configs/sheevaplug.h +7 -1
@@ -28,7 +28,8 @@/* * Version number information */ -#define CONFIG_IDENT_STRING "\nMarvell-Sheevaplug" + +#define CONFIG_IDENT_STRING "\nMarvell-Sheevaplug - eSATA - SD/MMC"/* * High Level Configuration Options (easy to change)
@@ -39,17 +40,24 @@#define CONFIG_MACH_SHEEVAPLUG /* Machine type */ #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ +#define CONFIG_ARCH_DEV_ID 1 +/* * Commands configuration */ +#define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */ +#define CONFIG_SYS_MVFS #include <config_cmd_default.h> #define CONFIG_CMD_DHCP #define CONFIG_CMD_ENV #define CONFIG_CMD_IDE #define CONFIG_CMD_MII #define CONFIG_CMD_MMC #define CONFIG_CMD_NAND #define CONFIG_CMD_PING #define CONFIG_CMD_USB +/*
* mv-common.h should be defined after CMD configs since it used them
* to enable certain macros
@@ -57,6 +65,11 @@
#include "mv-common.h"
/*
+ * Miscellaneous configurable options
+ */
+#undef CONFIG_CONSOLE_INFO_QUIET
+
+/*
* Environment variables configurations */
#ifdef CONFIG_CMD_NAND
@@ -65,29 +78,56 @@
#else
#define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
#endif
+
/*
* max 4k env size is enough, but in case of nand
* it has to be rounded to sector size
*/
#define CONFIG_ENV_SIZE 0x20000 /* 128k */
-#define CONFIG_ENV_ADDR 0x60000
-#define CONFIG_ENV_OFFSET 0x60000 /* env starts here */
+#define CONFIG_ENV_ADDR 0x80000
+#define CONFIG_ENV_OFFSET 0x80000 /* env starts here */
/*
* Default environment variables
*/
-#define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
- "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
- "${x_bootcmd_usb}; bootm 0x6400000;"
+#define CONFIG_BOOTCOMMAND \
+ "run x_bootcmd; run z_bootstrap; reset;"
-#define CONFIG_MTDPARTS "orion_nand:512k(uboot)," \
- "3m at 1m(kernel),1m at 4m(psm),13m at 5m(rootfs) rw\0"
+#define CONFIG_MTDPARTS \
+ "mtdparts=orion_nand:" \
+ "768k(uboot),256k(uboot_env)," \
+ "11m at 1m(kernel),- at 12m(rootfs)\0"
-#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
- "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
- "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x300000\0" \
- "x_bootcmd_usb=usb start\0" \
- "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
+#define CONFIG_EXTRA_ENV_SETTINGS \
+ "console=console=ttyS0,115200n8\0" \
+ "mtdids=nand0=orion_nand\0" \
+ "mtdparts="CONFIG_MTDPARTS \
+ "kerneladdr=0x00800000\0" \
+ "kernelfile=/boot/uImage.bin\0" \
+ "scriptaddr=0x00800000\0" \
+ "scriptfile=/boot/boot.scr\0" \
+ "x_bootargs=console=ttyS0,115200n8 "CONFIG_MTDPARTS \
+ "x_bootargs_root=root=LABEL=plug-rootfs rw rootwait panic=5\0" \
+ "x_bootcmd=${x_bootcmd_kernel}; setenv bootargs ${x_bootargs}" \
+ " ${x_bootargs_root}; run z_bootinit;\0" \
+ "x_bootcmd_kernel=echo ====== BootStrap start ======\0" \
+ "x_bootstrap_scr=for device in \"mmc usb ide\"; do for fs in" \
+ " \"ext2 fat\"; do setenv loadcmd \"${fs}load ${device} 0:1\";" \
+ " if ${loadcmd} ${scriptaddr} ${scriptfile}; then;" \
+ " run z_bootscr; fi; done; done;\0" \
+ "x_bootstrap_cmd=for device in \"mmc usb ide\"; do for fs in" \
+ " \"ext2 fat\"; do setenv loadcmd \"${fs}load ${device} 0:1\";" \
+ " if ${loadcmd} ${kerneladdr} ${kernelfile}; then;" \
+ " run z_bootcmd; fi; done; done;\0" \
+ "x_bootcmd_mtd=nand read.e ${kerneladdr} kernel 0x00b00000;\0" \
+ "z_bootinit=mmc rescan; usb reset; ide reset;\0" \
+ "z_bootcmd=if imi ${kerneladdr}; then; bootm ${kerneladdr};" \
+ " else; echo --- next bootcmd device try ---; fi;\0" \
+ "z_bootscr=if imi ${scriptaddr}; then; autoscr ${scriptaddr};" \
+ " else; echo --- next bootscr device try ---; fi;\0" \
+ "z_bootstrap=run z_bootinit; run x_bootstrap_scr;" \
+ " run x_bootstrap_cmd; run x_bootcmd_mtd; run z_bootfail;\0" \
+ "z_bootfail=echo ====== BootStrap end ======\0"
/*
* Ethernet Driver configuration
@@ -98,17 +138,20 @@
#endif /* CONFIG_CMD_NET */
/*
- * File system
+ * RTC driver configuration
+ */
+#ifdef CONFIG_CMD_DATE
+#define CONFIG_RTC_MV
+#endif /* CONFIG_CMD_DATE */
+
+/*
+ * SDIO/MMC Card Configuration
*/
-#define CONFIG_CMD_EXT2
-#define CONFIG_CMD_FAT
-#define CONFIG_CMD_JFFS2
-#define CONFIG_CMD_UBI
-#define CONFIG_CMD_UBIFS
-#define CONFIG_RBTREE
-#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
-#define CONFIG_MTD_PARTITIONS
-#define CONFIG_CMD_MTDPARTS
-#define CONFIG_LZO
+#ifdef CONFIG_CMD_MMC
+#define CONFIG_MMC
+#define CONFIG_GENERIC_MMC
+#define CONFIG_MRVL_MMC
+#define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
+#endif /* CONFIG_CMD_MMC */
#endif /* _CONFIG_SHEEVAPLUG_H */