diff options
author | Manuel Lauss <mano@roarinelk.homelinux.net> | 2008-06-09 02:36:13 -0400 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2008-07-15 08:14:43 -0400 |
commit | c4223c2c91fa9e5addd6eadd804e57a925ac5e5e (patch) | |
tree | d64af7e2b6322d59f1081ff8562cfc5f51f7f974 /include | |
parent | 12bd257532708a4d5be4b8548ff121a45ff88f5d (diff) |
au1xmmc: remove db1200 board code, rewrite probe.
Remove the DB1200 board-specific functions (card present, read-only,
activity LED methods) and instead add platform data which is passed
to the driver. This also allows for platforms to implement other
carddetect schemes (e.g. dedicated irq) without having to pollute the
driver code. The poll timer (used for pb1200) is kept for compatibility.
With the board-specific stuff gone, the driver's ->probe() code can be
cleaned up considerably.
Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-mips/mach-au1x00/au1100_mmc.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/asm-mips/mach-au1x00/au1100_mmc.h b/include/asm-mips/mach-au1x00/au1100_mmc.h index 9e0028f60a43..c35e20918490 100644 --- a/include/asm-mips/mach-au1x00/au1100_mmc.h +++ b/include/asm-mips/mach-au1x00/au1100_mmc.h | |||
@@ -38,15 +38,15 @@ | |||
38 | #ifndef __ASM_AU1100_MMC_H | 38 | #ifndef __ASM_AU1100_MMC_H |
39 | #define __ASM_AU1100_MMC_H | 39 | #define __ASM_AU1100_MMC_H |
40 | 40 | ||
41 | 41 | #include <linux/leds.h> | |
42 | #define NUM_AU1100_MMC_CONTROLLERS 2 | 42 | |
43 | 43 | struct au1xmmc_platform_data { | |
44 | #if defined(CONFIG_SOC_AU1100) | 44 | int(*cd_setup)(void *mmc_host, int on); |
45 | #define AU1100_SD_IRQ AU1100_SD_INT | 45 | int(*card_inserted)(void *mmc_host); |
46 | #elif defined(CONFIG_SOC_AU1200) | 46 | int(*card_readonly)(void *mmc_host); |
47 | #define AU1100_SD_IRQ AU1200_SD_INT | 47 | void(*set_power)(void *mmc_host, int state); |
48 | #endif | 48 | struct led_classdev *led; |
49 | 49 | }; | |
50 | 50 | ||
51 | #define SD0_BASE 0xB0600000 | 51 | #define SD0_BASE 0xB0600000 |
52 | #define SD1_BASE 0xB0680000 | 52 | #define SD1_BASE 0xB0680000 |