mainstone.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619
  1. /*
  2. * linux/arch/arm/mach-pxa/mainstone.c
  3. *
  4. * Support for the Intel HCDDBBVA0 Development Platform.
  5. * (go figure how they came up with such name...)
  6. *
  7. * Author: Nicolas Pitre
  8. * Created: Nov 05, 2002
  9. * Copyright: MontaVista Software Inc.
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License version 2 as
  13. * published by the Free Software Foundation.
  14. */
  15. #include <linux/init.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/sysdev.h>
  18. #include <linux/interrupt.h>
  19. #include <linux/sched.h>
  20. #include <linux/bitops.h>
  21. #include <linux/fb.h>
  22. #include <linux/ioport.h>
  23. #include <linux/mtd/mtd.h>
  24. #include <linux/mtd/partitions.h>
  25. #include <linux/backlight.h>
  26. #include <linux/input.h>
  27. #include <linux/gpio_keys.h>
  28. #include <asm/types.h>
  29. #include <asm/setup.h>
  30. #include <asm/memory.h>
  31. #include <asm/mach-types.h>
  32. #include <asm/hardware.h>
  33. #include <asm/irq.h>
  34. #include <asm/sizes.h>
  35. #include <asm/mach/arch.h>
  36. #include <asm/mach/map.h>
  37. #include <asm/mach/irq.h>
  38. #include <asm/mach/flash.h>
  39. #include <asm/arch/pxa-regs.h>
  40. #include <asm/arch/pxa2xx-regs.h>
  41. #include <asm/arch/mfp-pxa27x.h>
  42. #include <asm/arch/mainstone.h>
  43. #include <asm/arch/audio.h>
  44. #include <asm/arch/pxafb.h>
  45. #include <asm/arch/mmc.h>
  46. #include <asm/arch/irda.h>
  47. #include <asm/arch/ohci.h>
  48. #include "generic.h"
  49. #include "devices.h"
  50. static unsigned long mainstone_pin_config[] = {
  51. /* Chip Select */
  52. GPIO15_nCS_1,
  53. /* LCD - 16bpp Active TFT */
  54. GPIO58_LCD_LDD_0,
  55. GPIO59_LCD_LDD_1,
  56. GPIO60_LCD_LDD_2,
  57. GPIO61_LCD_LDD_3,
  58. GPIO62_LCD_LDD_4,
  59. GPIO63_LCD_LDD_5,
  60. GPIO64_LCD_LDD_6,
  61. GPIO65_LCD_LDD_7,
  62. GPIO66_LCD_LDD_8,
  63. GPIO67_LCD_LDD_9,
  64. GPIO68_LCD_LDD_10,
  65. GPIO69_LCD_LDD_11,
  66. GPIO70_LCD_LDD_12,
  67. GPIO71_LCD_LDD_13,
  68. GPIO72_LCD_LDD_14,
  69. GPIO73_LCD_LDD_15,
  70. GPIO74_LCD_FCLK,
  71. GPIO75_LCD_LCLK,
  72. GPIO76_LCD_PCLK,
  73. GPIO77_LCD_BIAS,
  74. GPIO16_PWM0_OUT, /* Backlight */
  75. /* MMC */
  76. GPIO32_MMC_CLK,
  77. GPIO112_MMC_CMD,
  78. GPIO92_MMC_DAT_0,
  79. GPIO109_MMC_DAT_1,
  80. GPIO110_MMC_DAT_2,
  81. GPIO111_MMC_DAT_3,
  82. /* USB Host Port 1 */
  83. GPIO88_USBH1_PWR,
  84. GPIO89_USBH1_PEN,
  85. /* PC Card */
  86. GPIO48_nPOE,
  87. GPIO49_nPWE,
  88. GPIO50_nPIOR,
  89. GPIO51_nPIOW,
  90. GPIO85_nPCE_1,
  91. GPIO54_nPCE_2,
  92. GPIO79_PSKTSEL,
  93. GPIO55_nPREG,
  94. GPIO56_nPWAIT,
  95. GPIO57_nIOIS16,
  96. /* AC97 */
  97. GPIO45_AC97_SYSCLK,
  98. /* Keypad */
  99. GPIO93_KP_DKIN_0 | WAKEUP_ON_LEVEL_HIGH,
  100. GPIO94_KP_DKIN_1 | WAKEUP_ON_LEVEL_HIGH,
  101. GPIO95_KP_DKIN_2 | WAKEUP_ON_LEVEL_HIGH,
  102. GPIO100_KP_MKIN_0 | WAKEUP_ON_LEVEL_HIGH,
  103. GPIO101_KP_MKIN_1 | WAKEUP_ON_LEVEL_HIGH,
  104. GPIO102_KP_MKIN_2 | WAKEUP_ON_LEVEL_HIGH,
  105. GPIO97_KP_MKIN_3 | WAKEUP_ON_LEVEL_HIGH,
  106. GPIO98_KP_MKIN_4 | WAKEUP_ON_LEVEL_HIGH,
  107. GPIO99_KP_MKIN_5 | WAKEUP_ON_LEVEL_HIGH,
  108. GPIO103_KP_MKOUT_0,
  109. GPIO104_KP_MKOUT_1,
  110. GPIO105_KP_MKOUT_2,
  111. GPIO106_KP_MKOUT_3,
  112. GPIO107_KP_MKOUT_4,
  113. GPIO108_KP_MKOUT_5,
  114. GPIO96_KP_MKOUT_6,
  115. /* GPIO */
  116. GPIO1_GPIO | WAKEUP_ON_EDGE_BOTH,
  117. };
  118. static unsigned long mainstone_irq_enabled;
  119. static void mainstone_mask_irq(unsigned int irq)
  120. {
  121. int mainstone_irq = (irq - MAINSTONE_IRQ(0));
  122. MST_INTMSKENA = (mainstone_irq_enabled &= ~(1 << mainstone_irq));
  123. }
  124. static void mainstone_unmask_irq(unsigned int irq)
  125. {
  126. int mainstone_irq = (irq - MAINSTONE_IRQ(0));
  127. /* the irq can be acknowledged only if deasserted, so it's done here */
  128. MST_INTSETCLR &= ~(1 << mainstone_irq);
  129. MST_INTMSKENA = (mainstone_irq_enabled |= (1 << mainstone_irq));
  130. }
  131. static struct irq_chip mainstone_irq_chip = {
  132. .name = "FPGA",
  133. .ack = mainstone_mask_irq,
  134. .mask = mainstone_mask_irq,
  135. .unmask = mainstone_unmask_irq,
  136. };
  137. static void mainstone_irq_handler(unsigned int irq, struct irq_desc *desc)
  138. {
  139. unsigned long pending = MST_INTSETCLR & mainstone_irq_enabled;
  140. do {
  141. GEDR(0) = GPIO_bit(0); /* clear useless edge notification */
  142. if (likely(pending)) {
  143. irq = MAINSTONE_IRQ(0) + __ffs(pending);
  144. desc = irq_desc + irq;
  145. desc_handle_irq(irq, desc);
  146. }
  147. pending = MST_INTSETCLR & mainstone_irq_enabled;
  148. } while (pending);
  149. }
  150. static void __init mainstone_init_irq(void)
  151. {
  152. int irq;
  153. pxa27x_init_irq();
  154. /* setup extra Mainstone irqs */
  155. for(irq = MAINSTONE_IRQ(0); irq <= MAINSTONE_IRQ(15); irq++) {
  156. set_irq_chip(irq, &mainstone_irq_chip);
  157. set_irq_handler(irq, handle_level_irq);
  158. if (irq == MAINSTONE_IRQ(10) || irq == MAINSTONE_IRQ(14))
  159. set_irq_flags(irq, IRQF_VALID | IRQF_PROBE | IRQF_NOAUTOEN);
  160. else
  161. set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
  162. }
  163. set_irq_flags(MAINSTONE_IRQ(8), 0);
  164. set_irq_flags(MAINSTONE_IRQ(12), 0);
  165. MST_INTMSKENA = 0;
  166. MST_INTSETCLR = 0;
  167. set_irq_chained_handler(IRQ_GPIO(0), mainstone_irq_handler);
  168. set_irq_type(IRQ_GPIO(0), IRQT_FALLING);
  169. }
  170. #ifdef CONFIG_PM
  171. static int mainstone_irq_resume(struct sys_device *dev)
  172. {
  173. MST_INTMSKENA = mainstone_irq_enabled;
  174. return 0;
  175. }
  176. static struct sysdev_class mainstone_irq_sysclass = {
  177. .name = "cpld_irq",
  178. .resume = mainstone_irq_resume,
  179. };
  180. static struct sys_device mainstone_irq_device = {
  181. .cls = &mainstone_irq_sysclass,
  182. };
  183. static int __init mainstone_irq_device_init(void)
  184. {
  185. int ret = -ENODEV;
  186. if (machine_is_mainstone()) {
  187. ret = sysdev_class_register(&mainstone_irq_sysclass);
  188. if (ret == 0)
  189. ret = sysdev_register(&mainstone_irq_device);
  190. }
  191. return ret;
  192. }
  193. device_initcall(mainstone_irq_device_init);
  194. #endif
  195. static struct resource smc91x_resources[] = {
  196. [0] = {
  197. .start = (MST_ETH_PHYS + 0x300),
  198. .end = (MST_ETH_PHYS + 0xfffff),
  199. .flags = IORESOURCE_MEM,
  200. },
  201. [1] = {
  202. .start = MAINSTONE_IRQ(3),
  203. .end = MAINSTONE_IRQ(3),
  204. .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
  205. }
  206. };
  207. static struct platform_device smc91x_device = {
  208. .name = "smc91x",
  209. .id = 0,
  210. .num_resources = ARRAY_SIZE(smc91x_resources),
  211. .resource = smc91x_resources,
  212. };
  213. static int mst_audio_startup(struct snd_pcm_substream *substream, void *priv)
  214. {
  215. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  216. MST_MSCWR2 &= ~MST_MSCWR2_AC97_SPKROFF;
  217. return 0;
  218. }
  219. static void mst_audio_shutdown(struct snd_pcm_substream *substream, void *priv)
  220. {
  221. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  222. MST_MSCWR2 |= MST_MSCWR2_AC97_SPKROFF;
  223. }
  224. static long mst_audio_suspend_mask;
  225. static void mst_audio_suspend(void *priv)
  226. {
  227. mst_audio_suspend_mask = MST_MSCWR2;
  228. MST_MSCWR2 |= MST_MSCWR2_AC97_SPKROFF;
  229. }
  230. static void mst_audio_resume(void *priv)
  231. {
  232. MST_MSCWR2 &= mst_audio_suspend_mask | ~MST_MSCWR2_AC97_SPKROFF;
  233. }
  234. static pxa2xx_audio_ops_t mst_audio_ops = {
  235. .startup = mst_audio_startup,
  236. .shutdown = mst_audio_shutdown,
  237. .suspend = mst_audio_suspend,
  238. .resume = mst_audio_resume,
  239. };
  240. static struct platform_device mst_audio_device = {
  241. .name = "pxa2xx-ac97",
  242. .id = -1,
  243. .dev = { .platform_data = &mst_audio_ops },
  244. };
  245. static struct resource flash_resources[] = {
  246. [0] = {
  247. .start = PXA_CS0_PHYS,
  248. .end = PXA_CS0_PHYS + SZ_64M - 1,
  249. .flags = IORESOURCE_MEM,
  250. },
  251. [1] = {
  252. .start = PXA_CS1_PHYS,
  253. .end = PXA_CS1_PHYS + SZ_64M - 1,
  254. .flags = IORESOURCE_MEM,
  255. },
  256. };
  257. static struct mtd_partition mainstoneflash0_partitions[] = {
  258. {
  259. .name = "Bootloader",
  260. .size = 0x00040000,
  261. .offset = 0,
  262. .mask_flags = MTD_WRITEABLE /* force read-only */
  263. },{
  264. .name = "Kernel",
  265. .size = 0x00400000,
  266. .offset = 0x00040000,
  267. },{
  268. .name = "Filesystem",
  269. .size = MTDPART_SIZ_FULL,
  270. .offset = 0x00440000
  271. }
  272. };
  273. static struct flash_platform_data mst_flash_data[2] = {
  274. {
  275. .map_name = "cfi_probe",
  276. .parts = mainstoneflash0_partitions,
  277. .nr_parts = ARRAY_SIZE(mainstoneflash0_partitions),
  278. }, {
  279. .map_name = "cfi_probe",
  280. .parts = NULL,
  281. .nr_parts = 0,
  282. }
  283. };
  284. static struct platform_device mst_flash_device[2] = {
  285. {
  286. .name = "pxa2xx-flash",
  287. .id = 0,
  288. .dev = {
  289. .platform_data = &mst_flash_data[0],
  290. },
  291. .resource = &flash_resources[0],
  292. .num_resources = 1,
  293. },
  294. {
  295. .name = "pxa2xx-flash",
  296. .id = 1,
  297. .dev = {
  298. .platform_data = &mst_flash_data[1],
  299. },
  300. .resource = &flash_resources[1],
  301. .num_resources = 1,
  302. },
  303. };
  304. #ifdef CONFIG_BACKLIGHT_CLASS_DEVICE
  305. static int mainstone_backlight_update_status(struct backlight_device *bl)
  306. {
  307. int brightness = bl->props.brightness;
  308. if (bl->props.power != FB_BLANK_UNBLANK ||
  309. bl->props.fb_blank != FB_BLANK_UNBLANK)
  310. brightness = 0;
  311. if (brightness != 0)
  312. pxa_set_cken(CKEN_PWM0, 1);
  313. PWM_CTRL0 = 0;
  314. PWM_PWDUTY0 = brightness;
  315. PWM_PERVAL0 = bl->props.max_brightness;
  316. if (brightness == 0)
  317. pxa_set_cken(CKEN_PWM0, 0);
  318. return 0; /* pointless return value */
  319. }
  320. static int mainstone_backlight_get_brightness(struct backlight_device *bl)
  321. {
  322. return PWM_PWDUTY0;
  323. }
  324. static /*const*/ struct backlight_ops mainstone_backlight_ops = {
  325. .update_status = mainstone_backlight_update_status,
  326. .get_brightness = mainstone_backlight_get_brightness,
  327. };
  328. static void __init mainstone_backlight_register(void)
  329. {
  330. struct backlight_device *bl;
  331. bl = backlight_device_register("mainstone-bl", &pxa_device_fb.dev,
  332. NULL, &mainstone_backlight_ops);
  333. if (IS_ERR(bl)) {
  334. printk(KERN_ERR "mainstone: unable to register backlight: %ld\n",
  335. PTR_ERR(bl));
  336. return;
  337. }
  338. /*
  339. * broken design - register-then-setup interfaces are
  340. * utterly broken by definition.
  341. */
  342. bl->props.max_brightness = 1023;
  343. bl->props.brightness = 1023;
  344. backlight_update_status(bl);
  345. }
  346. #else
  347. #define mainstone_backlight_register() do { } while (0)
  348. #endif
  349. static struct pxafb_mode_info toshiba_ltm04c380k_mode = {
  350. .pixclock = 50000,
  351. .xres = 640,
  352. .yres = 480,
  353. .bpp = 16,
  354. .hsync_len = 1,
  355. .left_margin = 0x9f,
  356. .right_margin = 1,
  357. .vsync_len = 44,
  358. .upper_margin = 0,
  359. .lower_margin = 0,
  360. .sync = FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT,
  361. };
  362. static struct pxafb_mode_info toshiba_ltm035a776c_mode = {
  363. .pixclock = 110000,
  364. .xres = 240,
  365. .yres = 320,
  366. .bpp = 16,
  367. .hsync_len = 4,
  368. .left_margin = 8,
  369. .right_margin = 20,
  370. .vsync_len = 3,
  371. .upper_margin = 1,
  372. .lower_margin = 10,
  373. .sync = FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT,
  374. };
  375. static struct pxafb_mach_info mainstone_pxafb_info = {
  376. .num_modes = 1,
  377. .lccr0 = LCCR0_Act,
  378. .lccr3 = LCCR3_PCP,
  379. };
  380. static int mainstone_mci_init(struct device *dev, irq_handler_t mstone_detect_int, void *data)
  381. {
  382. int err;
  383. /* make sure SD/Memory Stick multiplexer's signals
  384. * are routed to MMC controller
  385. */
  386. MST_MSCWR1 &= ~MST_MSCWR1_MS_SEL;
  387. err = request_irq(MAINSTONE_MMC_IRQ, mstone_detect_int, IRQF_DISABLED,
  388. "MMC card detect", data);
  389. if (err)
  390. printk(KERN_ERR "mainstone_mci_init: MMC/SD: can't request MMC card detect IRQ\n");
  391. return err;
  392. }
  393. static void mainstone_mci_setpower(struct device *dev, unsigned int vdd)
  394. {
  395. struct pxamci_platform_data* p_d = dev->platform_data;
  396. if (( 1 << vdd) & p_d->ocr_mask) {
  397. printk(KERN_DEBUG "%s: on\n", __func__);
  398. MST_MSCWR1 |= MST_MSCWR1_MMC_ON;
  399. MST_MSCWR1 &= ~MST_MSCWR1_MS_SEL;
  400. } else {
  401. printk(KERN_DEBUG "%s: off\n", __func__);
  402. MST_MSCWR1 &= ~MST_MSCWR1_MMC_ON;
  403. }
  404. }
  405. static void mainstone_mci_exit(struct device *dev, void *data)
  406. {
  407. free_irq(MAINSTONE_MMC_IRQ, data);
  408. }
  409. static struct pxamci_platform_data mainstone_mci_platform_data = {
  410. .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34,
  411. .init = mainstone_mci_init,
  412. .setpower = mainstone_mci_setpower,
  413. .exit = mainstone_mci_exit,
  414. };
  415. static void mainstone_irda_transceiver_mode(struct device *dev, int mode)
  416. {
  417. unsigned long flags;
  418. local_irq_save(flags);
  419. if (mode & IR_SIRMODE) {
  420. MST_MSCWR1 &= ~MST_MSCWR1_IRDA_FIR;
  421. } else if (mode & IR_FIRMODE) {
  422. MST_MSCWR1 |= MST_MSCWR1_IRDA_FIR;
  423. }
  424. if (mode & IR_OFF) {
  425. MST_MSCWR1 = (MST_MSCWR1 & ~MST_MSCWR1_IRDA_MASK) | MST_MSCWR1_IRDA_OFF;
  426. } else {
  427. MST_MSCWR1 = (MST_MSCWR1 & ~MST_MSCWR1_IRDA_MASK) | MST_MSCWR1_IRDA_FULL;
  428. }
  429. local_irq_restore(flags);
  430. }
  431. static struct pxaficp_platform_data mainstone_ficp_platform_data = {
  432. .transceiver_cap = IR_SIRMODE | IR_FIRMODE | IR_OFF,
  433. .transceiver_mode = mainstone_irda_transceiver_mode,
  434. };
  435. static struct gpio_keys_button gpio_keys_button[] = {
  436. [0] = {
  437. .desc = "wakeup",
  438. .code = KEY_SUSPEND,
  439. .type = EV_KEY,
  440. .gpio = 1,
  441. .wakeup = 1,
  442. },
  443. };
  444. static struct gpio_keys_platform_data mainstone_gpio_keys = {
  445. .buttons = gpio_keys_button,
  446. .nbuttons = 1,
  447. };
  448. static struct platform_device mst_gpio_keys_device = {
  449. .name = "gpio-keys",
  450. .id = -1,
  451. .dev = {
  452. .platform_data = &mainstone_gpio_keys,
  453. },
  454. };
  455. static struct platform_device *platform_devices[] __initdata = {
  456. &smc91x_device,
  457. &mst_audio_device,
  458. &mst_flash_device[0],
  459. &mst_flash_device[1],
  460. &mst_gpio_keys_device,
  461. };
  462. static int mainstone_ohci_init(struct device *dev)
  463. {
  464. /* Set the Power Control Polarity Low and Power Sense
  465. Polarity Low to active low. */
  466. UHCHR = (UHCHR | UHCHR_PCPL | UHCHR_PSPL) &
  467. ~(UHCHR_SSEP1 | UHCHR_SSEP2 | UHCHR_SSEP3 | UHCHR_SSE);
  468. return 0;
  469. }
  470. static struct pxaohci_platform_data mainstone_ohci_platform_data = {
  471. .port_mode = PMM_PERPORT_MODE,
  472. .init = mainstone_ohci_init,
  473. };
  474. static void __init mainstone_init(void)
  475. {
  476. int SW7 = 0; /* FIXME: get from SCR (Mst doc section 3.2.1.1) */
  477. pxa2xx_mfp_config(ARRAY_AND_SIZE(mainstone_pin_config));
  478. mst_flash_data[0].width = (BOOT_DEF & 1) ? 2 : 4;
  479. mst_flash_data[1].width = 4;
  480. /* Compensate for SW7 which swaps the flash banks */
  481. mst_flash_data[SW7].name = "processor-flash";
  482. mst_flash_data[SW7 ^ 1].name = "mainboard-flash";
  483. printk(KERN_NOTICE "Mainstone configured to boot from %s\n",
  484. mst_flash_data[0].name);
  485. /* system bus arbiter setting
  486. * - Core_Park
  487. * - LCD_wt:DMA_wt:CORE_Wt = 2:3:4
  488. */
  489. ARB_CNTRL = ARB_CORE_PARK | 0x234;
  490. platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices));
  491. /* reading Mainstone's "Virtual Configuration Register"
  492. might be handy to select LCD type here */
  493. if (0)
  494. mainstone_pxafb_info.modes = &toshiba_ltm04c380k_mode;
  495. else
  496. mainstone_pxafb_info.modes = &toshiba_ltm035a776c_mode;
  497. set_pxa_fb_info(&mainstone_pxafb_info);
  498. mainstone_backlight_register();
  499. pxa_set_mci_info(&mainstone_mci_platform_data);
  500. pxa_set_ficp_info(&mainstone_ficp_platform_data);
  501. pxa_set_ohci_info(&mainstone_ohci_platform_data);
  502. }
  503. static struct map_desc mainstone_io_desc[] __initdata = {
  504. { /* CPLD */
  505. .virtual = MST_FPGA_VIRT,
  506. .pfn = __phys_to_pfn(MST_FPGA_PHYS),
  507. .length = 0x00100000,
  508. .type = MT_DEVICE
  509. }
  510. };
  511. static void __init mainstone_map_io(void)
  512. {
  513. pxa_map_io();
  514. iotable_init(mainstone_io_desc, ARRAY_SIZE(mainstone_io_desc));
  515. /* for use I SRAM as framebuffer. */
  516. PSLR |= 0xF04;
  517. PCFR = 0x66;
  518. }
  519. MACHINE_START(MAINSTONE, "Intel HCDDBBVA0 Development Platform (aka Mainstone)")
  520. /* Maintainer: MontaVista Software Inc. */
  521. .phys_io = 0x40000000,
  522. .boot_params = 0xa0000100, /* BLOB boot parameter setting */
  523. .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
  524. .map_io = mainstone_map_io,
  525. .init_irq = mainstone_init_irq,
  526. .timer = &pxa_timer,
  527. .init_machine = mainstone_init,
  528. MACHINE_END