[PATCH 4/5] ARM omap3evm: Enable HSMMC device
Sanjeev Premi
premi at ti.com
Wed Jan 11 09:57:21 EST 2012
Enable the HSMMC device to fix these errors:
Board: Texas Instrument's OMAP3EVM
Malloc space: 0x87bfff10 -> 0x87ffff0f (size 4 MB)
Stack space : 0x87bf7f10 -> 0x87bfff10 (size 32 kB)
booting from MMC1
mounting sd card failed with -22
booting failed
Signed-off-by: Sanjeev Premi <premi at ti.com>
---
Did basic boot testing on OMAP3EVM after this
change.
arch/arm/boards/omap/board-omap3evm.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boards/omap/board-omap3evm.c b/arch/arm/boards/omap/board-omap3evm.c
index 9e96bc8..9e292d2 100644
--- a/arch/arm/boards/omap/board-omap3evm.c
+++ b/arch/arm/boards/omap/board-omap3evm.c
@@ -49,6 +49,7 @@
#include <init.h>
#include <driver.h>
#include <io.h>
+#include <sizes.h>
#include <ns16550.h>
#include <asm/armlinux.h>
#include <mach/silicon.h>
@@ -252,6 +253,10 @@ static int omap3evm_init_devices(void)
*/
gpmc_generic_init(0x10);
#endif
+#ifdef CONFIG_MCI_OMAP_HSMMC
+ add_generic_device("omap-hsmmc", -1, NULL, OMAP_MMC1_BASE, SZ_4K,
+ IORESOURCE_MEM, NULL);
+#endif
return 0;
}
device_initcall(omap3evm_init_devices);
--
1.7.0.4
More information about the barebox
mailing list