*/
#include <linux/kernel.h>
+#include <linux/platform_device.h>
#include <mach/gpio.h>
#include <mach/mmc.h>
{
}
+/*
+ * Note: If you want to detect card feature, please assign GPIO 37
+ */
static struct omap_mmc_platform_data apollon_mmc_data = {
.nr_slots = 1,
.switch_slot = NULL,
.init = apollon_mmc_late_init,
.cleanup = apollon_mmc_cleanup,
.slots[0] = {
+ .enabled = 1,
+ .wire4 = 1,
+
+ /*
+ * Use internal loop-back in MMC/SDIO Module Input Clock
+ * selection
+ */
+ .internal_clock = 1,
+
.set_power = apollon_mmc_set_power,
.set_bus_mode = apollon_mmc_set_bus_mode,
.get_ro = NULL,
void __init apollon_mmc_init(void)
{
- omap_set_mmc_info(1, &apollon_mmc_data);
+ omap2_init_mmc(&apollon_mmc_data);
}
#else /* !CONFIG_MMC_OMAP */