Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 1 | /* |
Daniel Mack | 5c0dbb8 | 2009-03-13 16:37:08 +0100 | [diff] [blame] | 2 | * linux/arch/arm/mach-pxa/colibri-pxa270.c |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 3 | * |
Daniel Mack | 5c0dbb8 | 2009-03-13 16:37:08 +0100 | [diff] [blame] | 4 | * Support for Toradex PXA270 based Colibri module |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 5 | * Daniel Mack <daniel@caiaq.de> |
Marek Vasut | f95bb54 | 2010-05-22 00:29:33 +0200 | [diff] [blame] | 6 | * Marek Vasut <marek.vasut@gmail.com> |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License version 2 as |
| 10 | * published by the Free Software Foundation. |
| 11 | */ |
| 12 | |
| 13 | #include <linux/init.h> |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 14 | #include <linux/interrupt.h> |
Paul Gortmaker | 6a7a5dc | 2011-09-18 14:50:33 -0400 | [diff] [blame] | 15 | #include <linux/moduleparam.h> |
Daniel Mack | 4c243c8 | 2010-05-22 00:29:38 +0200 | [diff] [blame] | 16 | #include <linux/kernel.h> |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 17 | #include <linux/mtd/mtd.h> |
| 18 | #include <linux/mtd/partitions.h> |
| 19 | #include <linux/mtd/physmap.h> |
Daniel Mack | 4c243c8 | 2010-05-22 00:29:38 +0200 | [diff] [blame] | 20 | #include <linux/platform_device.h> |
Robert Jarzmik | a927ef8 | 2015-07-11 21:33:06 +0200 | [diff] [blame] | 21 | #include <linux/regulator/machine.h> |
Marek Vasut | 7cca84a | 2010-05-22 00:29:37 +0200 | [diff] [blame] | 22 | #include <linux/ucb1400.h> |
Daniel Mack | 4c243c8 | 2010-05-22 00:29:38 +0200 | [diff] [blame] | 23 | |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 24 | #include <asm/mach/arch.h> |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 25 | #include <asm/mach/flash.h> |
Daniel Mack | 4c243c8 | 2010-05-22 00:29:38 +0200 | [diff] [blame] | 26 | #include <asm/mach-types.h> |
| 27 | #include <asm/sizes.h> |
Eric Miao | 51c6298 | 2009-01-02 23:17:22 +0800 | [diff] [blame] | 28 | |
Marek Vasut | 7cca84a | 2010-05-22 00:29:37 +0200 | [diff] [blame] | 29 | #include <mach/audio.h> |
Arnd Bergmann | 4c25c5d | 2015-01-30 10:45:33 +0100 | [diff] [blame] | 30 | #include "colibri.h" |
| 31 | #include "pxa27x.h" |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 32 | |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 33 | #include "devices.h" |
Daniel Mack | 4c243c8 | 2010-05-22 00:29:38 +0200 | [diff] [blame] | 34 | #include "generic.h" |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 35 | |
Marek Vasut | f95bb54 | 2010-05-22 00:29:33 +0200 | [diff] [blame] | 36 | /****************************************************************************** |
Marek Vasut | 9b6956f | 2010-08-12 01:18:38 +0200 | [diff] [blame] | 37 | * Evaluation board MFP |
| 38 | ******************************************************************************/ |
Marek Vasut | a3172e5 | 2010-08-12 01:45:05 +0200 | [diff] [blame] | 39 | #ifdef CONFIG_MACH_COLIBRI_EVALBOARD |
Marek Vasut | 9b6956f | 2010-08-12 01:18:38 +0200 | [diff] [blame] | 40 | static mfp_cfg_t colibri_pxa270_evalboard_pin_config[] __initdata = { |
| 41 | /* MMC */ |
| 42 | GPIO32_MMC_CLK, |
| 43 | GPIO92_MMC_DAT_0, |
| 44 | GPIO109_MMC_DAT_1, |
| 45 | GPIO110_MMC_DAT_2, |
| 46 | GPIO111_MMC_DAT_3, |
| 47 | GPIO112_MMC_CMD, |
| 48 | GPIO0_GPIO, /* SD detect */ |
| 49 | |
| 50 | /* FFUART */ |
| 51 | GPIO39_FFUART_TXD, |
| 52 | GPIO34_FFUART_RXD, |
| 53 | |
| 54 | /* UHC */ |
| 55 | GPIO88_USBH1_PWR, |
| 56 | GPIO89_USBH1_PEN, |
| 57 | GPIO119_USBH2_PWR, |
| 58 | GPIO120_USBH2_PEN, |
| 59 | |
| 60 | /* PCMCIA */ |
| 61 | GPIO85_nPCE_1, |
| 62 | GPIO54_nPCE_2, |
| 63 | GPIO55_nPREG, |
| 64 | GPIO50_nPIOR, |
| 65 | GPIO51_nPIOW, |
| 66 | GPIO49_nPWE, |
| 67 | GPIO48_nPOE, |
| 68 | GPIO57_nIOIS16, |
| 69 | GPIO56_nPWAIT, |
| 70 | GPIO104_PSKTSEL, |
| 71 | GPIO53_GPIO, /* RESET */ |
| 72 | GPIO83_GPIO, /* BVD1 */ |
| 73 | GPIO82_GPIO, /* BVD2 */ |
| 74 | GPIO1_GPIO, /* READY */ |
| 75 | GPIO84_GPIO, /* DETECT */ |
| 76 | GPIO107_GPIO, /* PPEN */ |
Marek Vasut | 072e1ae | 2010-08-12 01:30:39 +0200 | [diff] [blame] | 77 | |
| 78 | /* I2C */ |
| 79 | GPIO117_I2C_SCL, |
| 80 | GPIO118_I2C_SDA, |
Marek Vasut | 9b6956f | 2010-08-12 01:18:38 +0200 | [diff] [blame] | 81 | }; |
| 82 | #else |
| 83 | static mfp_cfg_t colibri_pxa270_evalboard_pin_config[] __initdata = {}; |
| 84 | #endif |
| 85 | |
| 86 | #ifdef CONFIG_MACH_COLIBRI_PXA270_INCOME |
| 87 | static mfp_cfg_t income_pin_config[] __initdata = { |
| 88 | /* MMC */ |
| 89 | GPIO32_MMC_CLK, |
| 90 | GPIO92_MMC_DAT_0, |
| 91 | GPIO109_MMC_DAT_1, |
| 92 | GPIO110_MMC_DAT_2, |
| 93 | GPIO111_MMC_DAT_3, |
| 94 | GPIO112_MMC_CMD, |
| 95 | GPIO0_GPIO, /* SD detect */ |
| 96 | GPIO1_GPIO, /* SD read-only */ |
| 97 | |
| 98 | /* FFUART */ |
| 99 | GPIO39_FFUART_TXD, |
| 100 | GPIO34_FFUART_RXD, |
| 101 | |
| 102 | /* BFUART */ |
| 103 | GPIO42_BTUART_RXD, |
| 104 | GPIO43_BTUART_TXD, |
| 105 | GPIO45_BTUART_RTS, |
| 106 | |
| 107 | /* STUART */ |
| 108 | GPIO46_STUART_RXD, |
| 109 | GPIO47_STUART_TXD, |
| 110 | |
| 111 | /* UHC */ |
| 112 | GPIO88_USBH1_PWR, |
| 113 | GPIO89_USBH1_PEN, |
| 114 | |
| 115 | /* LCD */ |
| 116 | GPIOxx_LCD_TFT_16BPP, |
| 117 | |
| 118 | /* PWM */ |
| 119 | GPIO16_PWM0_OUT, |
| 120 | |
| 121 | /* I2C */ |
| 122 | GPIO117_I2C_SCL, |
| 123 | GPIO118_I2C_SDA, |
| 124 | |
| 125 | /* LED */ |
| 126 | GPIO54_GPIO, /* LED A */ |
| 127 | GPIO55_GPIO, /* LED B */ |
| 128 | }; |
| 129 | #else |
| 130 | static mfp_cfg_t income_pin_config[] __initdata = {}; |
| 131 | #endif |
| 132 | |
| 133 | /****************************************************************************** |
Marek Vasut | f95bb54 | 2010-05-22 00:29:33 +0200 | [diff] [blame] | 134 | * Pin configuration |
| 135 | ******************************************************************************/ |
Daniel Mack | 5c0dbb8 | 2009-03-13 16:37:08 +0100 | [diff] [blame] | 136 | static mfp_cfg_t colibri_pxa270_pin_config[] __initdata = { |
Marek Vasut | f95bb54 | 2010-05-22 00:29:33 +0200 | [diff] [blame] | 137 | /* Ethernet */ |
Eric Miao | c0b1541 | 2008-08-08 14:59:03 +0800 | [diff] [blame] | 138 | GPIO78_nCS_2, /* Ethernet CS */ |
| 139 | GPIO114_GPIO, /* Ethernet IRQ */ |
Marek Vasut | d01b8d6 | 2010-05-22 00:29:34 +0200 | [diff] [blame] | 140 | |
Marek Vasut | 7cca84a | 2010-05-22 00:29:37 +0200 | [diff] [blame] | 141 | /* AC97 */ |
| 142 | GPIO28_AC97_BITCLK, |
| 143 | GPIO29_AC97_SDATA_IN_0, |
| 144 | GPIO30_AC97_SDATA_OUT, |
| 145 | GPIO31_AC97_SYNC, |
| 146 | GPIO95_AC97_nRESET, |
| 147 | GPIO98_AC97_SYSCLK, |
| 148 | GPIO113_GPIO, /* Touchscreen IRQ */ |
Eric Miao | c0b1541 | 2008-08-08 14:59:03 +0800 | [diff] [blame] | 149 | }; |
| 150 | |
Marek Vasut | f95bb54 | 2010-05-22 00:29:33 +0200 | [diff] [blame] | 151 | /****************************************************************************** |
| 152 | * NOR Flash |
| 153 | ******************************************************************************/ |
| 154 | #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 155 | static struct mtd_partition colibri_partitions[] = { |
| 156 | { |
| 157 | .name = "Bootloader", |
| 158 | .offset = 0x00000000, |
| 159 | .size = 0x00040000, |
Marek Vasut | f95bb54 | 2010-05-22 00:29:33 +0200 | [diff] [blame] | 160 | .mask_flags = MTD_WRITEABLE /* force read-only */ |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 161 | }, { |
| 162 | .name = "Kernel", |
| 163 | .offset = 0x00040000, |
| 164 | .size = 0x00400000, |
| 165 | .mask_flags = 0 |
| 166 | }, { |
| 167 | .name = "Rootfs", |
| 168 | .offset = 0x00440000, |
| 169 | .size = MTDPART_SIZ_FULL, |
| 170 | .mask_flags = 0 |
| 171 | } |
| 172 | }; |
| 173 | |
| 174 | static struct physmap_flash_data colibri_flash_data[] = { |
| 175 | { |
| 176 | .width = 4, /* bankwidth in bytes */ |
| 177 | .parts = colibri_partitions, |
| 178 | .nr_parts = ARRAY_SIZE(colibri_partitions) |
| 179 | } |
| 180 | }; |
| 181 | |
Daniel Mack | 5c0dbb8 | 2009-03-13 16:37:08 +0100 | [diff] [blame] | 182 | static struct resource colibri_pxa270_flash_resource = { |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 183 | .start = PXA_CS0_PHYS, |
| 184 | .end = PXA_CS0_PHYS + SZ_32M - 1, |
| 185 | .flags = IORESOURCE_MEM, |
| 186 | }; |
| 187 | |
Daniel Mack | 5c0dbb8 | 2009-03-13 16:37:08 +0100 | [diff] [blame] | 188 | static struct platform_device colibri_pxa270_flash_device = { |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 189 | .name = "physmap-flash", |
| 190 | .id = 0, |
| 191 | .dev = { |
| 192 | .platform_data = colibri_flash_data, |
| 193 | }, |
Daniel Mack | 5c0dbb8 | 2009-03-13 16:37:08 +0100 | [diff] [blame] | 194 | .resource = &colibri_pxa270_flash_resource, |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 195 | .num_resources = 1, |
| 196 | }; |
| 197 | |
Marek Vasut | f95bb54 | 2010-05-22 00:29:33 +0200 | [diff] [blame] | 198 | static void __init colibri_pxa270_nor_init(void) |
| 199 | { |
| 200 | platform_device_register(&colibri_pxa270_flash_device); |
| 201 | } |
| 202 | #else |
| 203 | static inline void colibri_pxa270_nor_init(void) {} |
| 204 | #endif |
| 205 | |
| 206 | /****************************************************************************** |
| 207 | * Ethernet |
| 208 | ******************************************************************************/ |
| 209 | #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE) |
| 210 | static struct resource colibri_pxa270_dm9000_resources[] = { |
Marek Vasut | 403d297 | 2010-05-22 00:29:39 +0200 | [diff] [blame] | 211 | { |
Marek Vasut | f95bb54 | 2010-05-22 00:29:33 +0200 | [diff] [blame] | 212 | .start = PXA_CS2_PHYS, |
| 213 | .end = PXA_CS2_PHYS + 3, |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 214 | .flags = IORESOURCE_MEM, |
| 215 | }, |
Marek Vasut | 403d297 | 2010-05-22 00:29:39 +0200 | [diff] [blame] | 216 | { |
Marek Vasut | f95bb54 | 2010-05-22 00:29:33 +0200 | [diff] [blame] | 217 | .start = PXA_CS2_PHYS + 4, |
| 218 | .end = PXA_CS2_PHYS + 4 + 500, |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 219 | .flags = IORESOURCE_MEM, |
| 220 | }, |
Marek Vasut | 403d297 | 2010-05-22 00:29:39 +0200 | [diff] [blame] | 221 | { |
Haojian Zhuang | 4929f5a | 2011-10-10 16:03:51 +0800 | [diff] [blame] | 222 | .start = PXA_GPIO_TO_IRQ(GPIO114_COLIBRI_PXA270_ETH_IRQ), |
| 223 | .end = PXA_GPIO_TO_IRQ(GPIO114_COLIBRI_PXA270_ETH_IRQ), |
Michael Abbott | d0afc85 | 2008-05-14 16:29:24 -0700 | [diff] [blame] | 224 | .flags = IORESOURCE_IRQ | IRQF_TRIGGER_RISING, |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 225 | }, |
| 226 | }; |
| 227 | |
Marek Vasut | f95bb54 | 2010-05-22 00:29:33 +0200 | [diff] [blame] | 228 | static struct platform_device colibri_pxa270_dm9000_device = { |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 229 | .name = "dm9000", |
| 230 | .id = -1, |
Marek Vasut | f95bb54 | 2010-05-22 00:29:33 +0200 | [diff] [blame] | 231 | .num_resources = ARRAY_SIZE(colibri_pxa270_dm9000_resources), |
| 232 | .resource = colibri_pxa270_dm9000_resources, |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 233 | }; |
| 234 | |
Marek Vasut | f95bb54 | 2010-05-22 00:29:33 +0200 | [diff] [blame] | 235 | static void __init colibri_pxa270_eth_init(void) |
| 236 | { |
| 237 | platform_device_register(&colibri_pxa270_dm9000_device); |
| 238 | } |
| 239 | #else |
| 240 | static inline void colibri_pxa270_eth_init(void) {} |
Daniel Mack | 5c0dbb8 | 2009-03-13 16:37:08 +0100 | [diff] [blame] | 241 | #endif |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 242 | |
Marek Vasut | d01b8d6 | 2010-05-22 00:29:34 +0200 | [diff] [blame] | 243 | /****************************************************************************** |
Marek Vasut | 7cca84a | 2010-05-22 00:29:37 +0200 | [diff] [blame] | 244 | * Audio and Touchscreen |
| 245 | ******************************************************************************/ |
| 246 | #if defined(CONFIG_TOUCHSCREEN_UCB1400) || \ |
| 247 | defined(CONFIG_TOUCHSCREEN_UCB1400_MODULE) |
| 248 | static pxa2xx_audio_ops_t colibri_pxa270_ac97_pdata = { |
| 249 | .reset_gpio = 95, |
| 250 | }; |
| 251 | |
| 252 | static struct ucb1400_pdata colibri_pxa270_ucb1400_pdata = { |
Haojian Zhuang | 4929f5a | 2011-10-10 16:03:51 +0800 | [diff] [blame] | 253 | .irq = PXA_GPIO_TO_IRQ(GPIO113_COLIBRI_PXA270_TS_IRQ), |
Marek Vasut | 7cca84a | 2010-05-22 00:29:37 +0200 | [diff] [blame] | 254 | }; |
| 255 | |
| 256 | static struct platform_device colibri_pxa270_ucb1400_device = { |
| 257 | .name = "ucb1400_core", |
| 258 | .id = -1, |
| 259 | .dev = { |
| 260 | .platform_data = &colibri_pxa270_ucb1400_pdata, |
| 261 | }, |
| 262 | }; |
| 263 | |
| 264 | static void __init colibri_pxa270_tsc_init(void) |
| 265 | { |
| 266 | pxa_set_ac97_info(&colibri_pxa270_ac97_pdata); |
| 267 | platform_device_register(&colibri_pxa270_ucb1400_device); |
| 268 | } |
| 269 | #else |
| 270 | static inline void colibri_pxa270_tsc_init(void) {} |
| 271 | #endif |
| 272 | |
Daniel Mack | 4c243c8 | 2010-05-22 00:29:38 +0200 | [diff] [blame] | 273 | static int colibri_pxa270_baseboard; |
| 274 | core_param(colibri_pxa270_baseboard, colibri_pxa270_baseboard, int, 0444); |
| 275 | |
Daniel Mack | 5c0dbb8 | 2009-03-13 16:37:08 +0100 | [diff] [blame] | 276 | static void __init colibri_pxa270_init(void) |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 277 | { |
Daniel Mack | 5c0dbb8 | 2009-03-13 16:37:08 +0100 | [diff] [blame] | 278 | pxa2xx_mfp_config(ARRAY_AND_SIZE(colibri_pxa270_pin_config)); |
Marek Vasut | f95bb54 | 2010-05-22 00:29:33 +0200 | [diff] [blame] | 279 | |
| 280 | colibri_pxa270_nor_init(); |
| 281 | colibri_pxa270_eth_init(); |
Marek Vasut | 7cca84a | 2010-05-22 00:29:37 +0200 | [diff] [blame] | 282 | colibri_pxa270_tsc_init(); |
Daniel Mack | 4c243c8 | 2010-05-22 00:29:38 +0200 | [diff] [blame] | 283 | |
| 284 | switch (colibri_pxa270_baseboard) { |
Marek Vasut | a3172e5 | 2010-08-12 01:45:05 +0200 | [diff] [blame] | 285 | case COLIBRI_EVALBOARD: |
Marek Vasut | 9b6956f | 2010-08-12 01:18:38 +0200 | [diff] [blame] | 286 | pxa2xx_mfp_config(ARRAY_AND_SIZE( |
| 287 | colibri_pxa270_evalboard_pin_config)); |
Marek Vasut | a3172e5 | 2010-08-12 01:45:05 +0200 | [diff] [blame] | 288 | colibri_evalboard_init(); |
Daniel Mack | 4c243c8 | 2010-05-22 00:29:38 +0200 | [diff] [blame] | 289 | break; |
Marek Vasut | 403d297 | 2010-05-22 00:29:39 +0200 | [diff] [blame] | 290 | case COLIBRI_PXA270_INCOME: |
Marek Vasut | 9b6956f | 2010-08-12 01:18:38 +0200 | [diff] [blame] | 291 | pxa2xx_mfp_config(ARRAY_AND_SIZE(income_pin_config)); |
Marek Vasut | 403d297 | 2010-05-22 00:29:39 +0200 | [diff] [blame] | 292 | colibri_pxa270_income_boardinit(); |
| 293 | break; |
Daniel Mack | 4c243c8 | 2010-05-22 00:29:38 +0200 | [diff] [blame] | 294 | default: |
| 295 | printk(KERN_ERR "Illegal colibri_pxa270_baseboard type %d\n", |
| 296 | colibri_pxa270_baseboard); |
| 297 | } |
Robert Jarzmik | a927ef8 | 2015-07-11 21:33:06 +0200 | [diff] [blame] | 298 | |
| 299 | regulator_has_full_constraints(); |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 300 | } |
| 301 | |
Marek Vasut | 403d297 | 2010-05-22 00:29:39 +0200 | [diff] [blame] | 302 | /* The "Income s.r.o. SH-Dmaster PXA270 SBC" board can be booted either |
| 303 | * with the INCOME mach type or with COLIBRI and the kernel parameter |
| 304 | * "colibri_pxa270_baseboard=1" |
| 305 | */ |
| 306 | static void __init colibri_pxa270_income_init(void) |
| 307 | { |
| 308 | colibri_pxa270_baseboard = COLIBRI_PXA270_INCOME; |
| 309 | colibri_pxa270_init(); |
| 310 | } |
| 311 | |
Daniel Mack | 5c0dbb8 | 2009-03-13 16:37:08 +0100 | [diff] [blame] | 312 | MACHINE_START(COLIBRI, "Toradex Colibri PXA270") |
Nicolas Pitre | 7375aba | 2011-07-05 22:38:15 -0400 | [diff] [blame] | 313 | .atag_offset = 0x100, |
Daniel Mack | 5c0dbb8 | 2009-03-13 16:37:08 +0100 | [diff] [blame] | 314 | .init_machine = colibri_pxa270_init, |
Marek Vasut | 851982c | 2010-10-11 02:20:19 +0200 | [diff] [blame] | 315 | .map_io = pxa27x_map_io, |
Rob Herring | 4e61109 | 2012-01-03 16:53:48 -0600 | [diff] [blame] | 316 | .nr_irqs = PXA_NR_IRQS, |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 317 | .init_irq = pxa27x_init_irq, |
Eric Miao | 8a97ae2 | 2011-05-18 21:30:04 +0800 | [diff] [blame] | 318 | .handle_irq = pxa27x_handle_irq, |
Stephen Warren | 6bb27d7 | 2012-11-08 12:40:59 -0700 | [diff] [blame] | 319 | .init_time = pxa_timer_init, |
Russell King | 271a74f | 2011-11-04 14:15:53 +0000 | [diff] [blame] | 320 | .restart = pxa_restart, |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 321 | MACHINE_END |
Daniel Mack | 5c0dbb8 | 2009-03-13 16:37:08 +0100 | [diff] [blame] | 322 | |
Marek Vasut | 403d297 | 2010-05-22 00:29:39 +0200 | [diff] [blame] | 323 | MACHINE_START(INCOME, "Income s.r.o. SH-Dmaster PXA270 SBC") |
Nicolas Pitre | 7375aba | 2011-07-05 22:38:15 -0400 | [diff] [blame] | 324 | .atag_offset = 0x100, |
Marek Vasut | 403d297 | 2010-05-22 00:29:39 +0200 | [diff] [blame] | 325 | .init_machine = colibri_pxa270_income_init, |
Marek Vasut | 851982c | 2010-10-11 02:20:19 +0200 | [diff] [blame] | 326 | .map_io = pxa27x_map_io, |
Rob Herring | 4e61109 | 2012-01-03 16:53:48 -0600 | [diff] [blame] | 327 | .nr_irqs = PXA_NR_IRQS, |
Marek Vasut | 403d297 | 2010-05-22 00:29:39 +0200 | [diff] [blame] | 328 | .init_irq = pxa27x_init_irq, |
Eric Miao | 8a97ae2 | 2011-05-18 21:30:04 +0800 | [diff] [blame] | 329 | .handle_irq = pxa27x_handle_irq, |
Stephen Warren | 6bb27d7 | 2012-11-08 12:40:59 -0700 | [diff] [blame] | 330 | .init_time = pxa_timer_init, |
Russell King | 271a74f | 2011-11-04 14:15:53 +0000 | [diff] [blame] | 331 | .restart = pxa_restart, |
Marek Vasut | 403d297 | 2010-05-22 00:29:39 +0200 | [diff] [blame] | 332 | MACHINE_END |
| 333 | |