31 #define RTC_PHYS_BASE (PXA_CS1_PHYS + (5 << 22))
34 #define GPIO83_MMC_IRQ (83)
36 #define CMX270_MMC_IRQ PXA_GPIO_TO_IRQ(GPIO83_MMC_IRQ)
39 #define GPIO105_MMC_POWER (105)
42 #define GPIO19_WLAN_STRAP (19)
43 #define GPIO102_WLAN_RST (102)
45 static unsigned long cmx270_pin_config[] = {
128 #if defined(CONFIG_RTC_DRV_V3020) || defined(CONFIG_RTC_DRV_V3020_MODULE)
129 static struct resource cmx270_v3020_resource[] = {
143 .num_resources =
ARRAY_SIZE(cmx270_v3020_resource),
144 .resource = cmx270_v3020_resource,
147 .platform_data = &cmx270_v3020_pdata,
151 static void __init cmx270_init_rtc(
void)
156 static inline void cmx270_init_rtc(
void) {}
160 #if defined(CONFIG_FB_MBX) || defined(CONFIG_FB_MBX_MODULE)
161 static u64 fb_dma_mask = ~(
u64)0;
163 static struct resource cmx270_2700G_resource[] = {
178 static unsigned long cmx270_marathon_on[] = {
201 static unsigned long cmx270_marathon_off[] = {
205 static int cmx270_marathon_probe(
struct fb_info *
fb)
209 for (gpio = 58; gpio <= 77; gpio++) {
220 static int cmx270_marathon_remove(
struct fb_info *fb)
226 for (gpio = 58; gpio <= 77; gpio++)
248 .memsize = 8*1024*1024,
249 .probe = cmx270_marathon_probe,
250 .remove = cmx270_marathon_remove,
256 .platform_data = &cmx270_2700G_data,
257 .dma_mask = &fb_dma_mask,
258 .coherent_dma_mask = 0xffffffff,
260 .num_resources =
ARRAY_SIZE(cmx270_2700G_resource),
261 .resource = cmx270_2700G_resource,
265 static void __init cmx270_init_2700G(
void)
270 static inline void cmx270_init_2700G(
void) {}
274 #if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)
280 static void __init cmx270_init_ohci(
void)
285 static inline void cmx270_init_ohci(
void) {}
288 #if defined(CONFIG_MMC) || defined(CONFIG_MMC_MODULE)
294 .gpio_power_invert = 1,
297 static void __init cmx270_init_mmc(
void)
302 static inline void cmx270_init_mmc(
void) {}
305 #if defined(CONFIG_SPI_PXA2XX) || defined(CONFIG_SPI_PXA2XX_MODULE)
318 static unsigned long cm_x270_libertas_pin_config[] = {
363 static int cm_x270_libertas_teardown(
struct spi_device *spi)
374 .setup = cm_x270_libertas_setup,
375 .teardown = cm_x270_libertas_teardown,
380 .modalias =
"libertas_spi",
381 .max_speed_hz = 13000000,
385 .controller_data = &cm_x270_libertas_chip,
386 .platform_data = &cm_x270_libertas_pdata,
390 static void __init cmx270_init_spi(
void)
396 static inline void cmx270_init_spi(
void) {}