au1xmmc: remove db1200 board code, rewrite probe.
[firefly-linux-kernel-4.4.55.git] / include / asm-mips / mach-au1x00 / au1100_mmc.h
index 9e0028f60a43bb1b0be30cb91dc3cd01924bd27b..c35e209184907fd9f7bdab54bed0457aa36bcaa1 100644 (file)
 #ifndef __ASM_AU1100_MMC_H
 #define __ASM_AU1100_MMC_H
 
-
-#define NUM_AU1100_MMC_CONTROLLERS     2
-
-#if defined(CONFIG_SOC_AU1100)
-#define AU1100_SD_IRQ  AU1100_SD_INT
-#elif defined(CONFIG_SOC_AU1200)
-#define AU1100_SD_IRQ  AU1200_SD_INT
-#endif
-
+#include <linux/leds.h>
+
+struct au1xmmc_platform_data {
+       int(*cd_setup)(void *mmc_host, int on);
+       int(*card_inserted)(void *mmc_host);
+       int(*card_readonly)(void *mmc_host);
+       void(*set_power)(void *mmc_host, int state);
+       struct led_classdev *led;
+};
 
 #define SD0_BASE       0xB0600000
 #define SD1_BASE       0xB0680000