diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-15 19:08:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-15 19:08:50 -0400 |
commit | 65a6ec0d72a07f16719e9b7a96e1c4bae044b591 (patch) | |
tree | 344e03a5039a44982c1b78d6113633b21b434820 /include/asm-arm/arch-omap/mmc.h | |
parent | 541010e4b8921cd781ff02ae68028501457045b6 (diff) | |
parent | 0181b61a988424b5cc44fe09e6968142359c815e (diff) |
Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm
* 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (95 commits)
[ARM] 4578/1: CM-x270: PCMCIA support
[ARM] 4577/1: ITE 8152 PCI bridge support
[ARM] 4576/1: CM-X270 machine support
[ARM] pxa: Avoid pxa_gpio_mode() in gpio_direction_{in,out}put()
[ARM] pxa: move pxa_set_mode() from pxa2xx_mainstone.c to mainstone.c
[ARM] pxa: move pxa_set_mode() from pxa2xx_lubbock.c to lubbock.c
[ARM] pxa: Make cpu_is_pxaXXX dependent on configuration symbols
[ARM] pxa: PXA3xx base support
[NET] smc91x: fix PXA DMA support code
[SERIAL] Fix console initialisation ordering
[ARM] pxa: tidy up arch/arm/mach-pxa/Makefile
[ARM] Update arch/arm/Kconfig for drivers/Kconfig changes
[ARM] 4600/1: fix kernel build failure with build-id-supporting binutils
[ARM] 4599/1: Preserve ATAG list for use with kexec (2.6.23)
[ARM] Rename consistent_sync() as dma_cache_maint()
[ARM] 4572/1: ep93xx: add cirrus logic edb9307 support
[ARM] 4596/1: S3C2412: Correct IRQs for SDI+CF and add decoding support
[ARM] 4595/1: ns9xxx: define registers as void __iomem * instead of volatile u32
[ARM] 4594/1: ns9xxx: use the new gpio functions
[ARM] 4593/1: ns9xxx: implement generic clockevents
...
Diffstat (limited to 'include/asm-arm/arch-omap/mmc.h')
-rw-r--r-- | include/asm-arm/arch-omap/mmc.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/include/asm-arm/arch-omap/mmc.h b/include/asm-arm/arch-omap/mmc.h new file mode 100644 index 000000000000..b70e37b61242 --- /dev/null +++ b/include/asm-arm/arch-omap/mmc.h | |||
@@ -0,0 +1,66 @@ | |||
1 | /* | ||
2 | * MMC definitions for OMAP2 | ||
3 | * | ||
4 | * Copyright (C) 2006 Nokia Corporation | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | */ | ||
10 | |||
11 | #ifndef __OMAP2_MMC_H | ||
12 | #define __OMAP2_MMC_H | ||
13 | |||
14 | #include <linux/types.h> | ||
15 | #include <linux/device.h> | ||
16 | #include <linux/mmc/host.h> | ||
17 | |||
18 | #define OMAP_MMC_MAX_SLOTS 2 | ||
19 | |||
20 | struct omap_mmc_platform_data { | ||
21 | unsigned enabled:1; | ||
22 | /* number of slots on board */ | ||
23 | unsigned nr_slots:2; | ||
24 | /* nomux means "standard" muxing is wrong on this board, and that | ||
25 | * board-specific code handled it before common init logic. | ||
26 | */ | ||
27 | unsigned nomux:1; | ||
28 | /* 4 wire signaling is optional, and is only used for SD/SDIO and | ||
29 | * MMCv4 */ | ||
30 | unsigned wire4:1; | ||
31 | /* set if your board has components or wiring that limits the | ||
32 | * maximum frequency on the MMC bus */ | ||
33 | unsigned int max_freq; | ||
34 | |||
35 | /* switch the bus to a new slot */ | ||
36 | int (* switch_slot)(struct device *dev, int slot); | ||
37 | /* initialize board-specific MMC functionality, can be NULL if | ||
38 | * not supported */ | ||
39 | int (* init)(struct device *dev); | ||
40 | void (* cleanup)(struct device *dev); | ||
41 | |||
42 | struct omap_mmc_slot_data { | ||
43 | int (* set_bus_mode)(struct device *dev, int slot, int bus_mode); | ||
44 | int (* set_power)(struct device *dev, int slot, int power_on, int vdd); | ||
45 | int (* get_ro)(struct device *dev, int slot); | ||
46 | |||
47 | /* return MMC cover switch state, can be NULL if not supported. | ||
48 | * | ||
49 | * possible return values: | ||
50 | * 0 - open | ||
51 | * 1 - closed | ||
52 | */ | ||
53 | int (* get_cover_state)(struct device *dev, int slot); | ||
54 | |||
55 | const char *name; | ||
56 | u32 ocr_mask; | ||
57 | } slots[OMAP_MMC_MAX_SLOTS]; | ||
58 | }; | ||
59 | |||
60 | extern void omap_set_mmc_info(int host, const struct omap_mmc_platform_data *info); | ||
61 | |||
62 | /* called from board-specific card detection service routine */ | ||
63 | extern void omap_mmc_notify_card_detect(struct device *dev, int slot, int detected); | ||
64 | extern void omap_mmc_notify_cover_event(struct device *dev, int slot, int is_closed); | ||
65 | |||
66 | #endif | ||