corgi.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671
  1. /*
  2. * Support for Sharp SL-C7xx PDAs
  3. * Models: SL-C700 (Corgi), SL-C750 (Shepherd), SL-C760 (Husky)
  4. *
  5. * Copyright (c) 2004-2005 Richard Purdie
  6. *
  7. * Based on Sharp's 2.4 kernel patches/lubbock.c
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. *
  13. */
  14. #include <linux/kernel.h>
  15. #include <linux/init.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/major.h>
  18. #include <linux/fs.h>
  19. #include <linux/interrupt.h>
  20. #include <linux/mmc/host.h>
  21. #include <linux/mtd/physmap.h>
  22. #include <linux/pm.h>
  23. #include <linux/gpio.h>
  24. #include <linux/backlight.h>
  25. #include <linux/io.h>
  26. #include <linux/spi/spi.h>
  27. #include <linux/spi/ads7846.h>
  28. #include <linux/spi/corgi_lcd.h>
  29. #include <video/w100fb.h>
  30. #include <asm/setup.h>
  31. #include <asm/memory.h>
  32. #include <asm/mach-types.h>
  33. #include <mach/hardware.h>
  34. #include <asm/irq.h>
  35. #include <asm/system.h>
  36. #include <asm/mach/arch.h>
  37. #include <asm/mach/map.h>
  38. #include <asm/mach/irq.h>
  39. #include <mach/pxa-regs.h>
  40. #include <mach/pxa2xx-regs.h>
  41. #include <mach/mfp-pxa25x.h>
  42. #include <mach/i2c.h>
  43. #include <mach/irda.h>
  44. #include <mach/mmc.h>
  45. #include <mach/udc.h>
  46. #include <mach/pxa2xx_spi.h>
  47. #include <mach/corgi.h>
  48. #include <mach/sharpsl.h>
  49. #include <asm/mach/sharpsl_param.h>
  50. #include <asm/hardware/scoop.h>
  51. #include "generic.h"
  52. #include "devices.h"
  53. #include "sharpsl.h"
  54. static unsigned long corgi_pin_config[] __initdata = {
  55. /* Static Memory I/O */
  56. GPIO78_nCS_2, /* w100fb */
  57. GPIO80_nCS_4, /* scoop */
  58. /* SSP1 */
  59. GPIO23_SSP1_SCLK,
  60. GPIO25_SSP1_TXD,
  61. GPIO26_SSP1_RXD,
  62. GPIO24_GPIO, /* CORGI_GPIO_ADS7846_CS - SFRM as chip select */
  63. /* I2S */
  64. GPIO28_I2S_BITCLK_OUT,
  65. GPIO29_I2S_SDATA_IN,
  66. GPIO30_I2S_SDATA_OUT,
  67. GPIO31_I2S_SYNC,
  68. GPIO32_I2S_SYSCLK,
  69. /* Infra-Red */
  70. GPIO47_FICP_TXD,
  71. GPIO46_FICP_RXD,
  72. /* FFUART */
  73. GPIO40_FFUART_DTR,
  74. GPIO41_FFUART_RTS,
  75. GPIO39_FFUART_TXD,
  76. GPIO37_FFUART_DSR,
  77. GPIO34_FFUART_RXD,
  78. GPIO35_FFUART_CTS,
  79. /* PC Card */
  80. GPIO48_nPOE,
  81. GPIO49_nPWE,
  82. GPIO50_nPIOR,
  83. GPIO51_nPIOW,
  84. GPIO52_nPCE_1,
  85. GPIO53_nPCE_2,
  86. GPIO54_nPSKTSEL,
  87. GPIO55_nPREG,
  88. GPIO56_nPWAIT,
  89. GPIO57_nIOIS16,
  90. /* MMC */
  91. GPIO6_MMC_CLK,
  92. GPIO8_MMC_CS0,
  93. /* GPIO */
  94. GPIO9_GPIO, /* CORGI_GPIO_nSD_DETECT */
  95. GPIO7_GPIO, /* CORGI_GPIO_nSD_WP */
  96. GPIO33_GPIO, /* CORGI_GPIO_SD_PWR */
  97. GPIO22_GPIO, /* CORGI_GPIO_IR_ON */
  98. GPIO44_GPIO, /* CORGI_GPIO_HSYNC */
  99. GPIO1_GPIO | WAKEUP_ON_EDGE_RISE,
  100. };
  101. /*
  102. * Corgi SCOOP Device
  103. */
  104. static struct resource corgi_scoop_resources[] = {
  105. [0] = {
  106. .start = 0x10800000,
  107. .end = 0x10800fff,
  108. .flags = IORESOURCE_MEM,
  109. },
  110. };
  111. static struct scoop_config corgi_scoop_setup = {
  112. .io_dir = CORGI_SCOOP_IO_DIR,
  113. .io_out = CORGI_SCOOP_IO_OUT,
  114. .gpio_base = CORGI_SCOOP_GPIO_BASE,
  115. };
  116. struct platform_device corgiscoop_device = {
  117. .name = "sharp-scoop",
  118. .id = -1,
  119. .dev = {
  120. .platform_data = &corgi_scoop_setup,
  121. },
  122. .num_resources = ARRAY_SIZE(corgi_scoop_resources),
  123. .resource = corgi_scoop_resources,
  124. };
  125. static struct scoop_pcmcia_dev corgi_pcmcia_scoop[] = {
  126. {
  127. .dev = &corgiscoop_device.dev,
  128. .irq = CORGI_IRQ_GPIO_CF_IRQ,
  129. .cd_irq = CORGI_IRQ_GPIO_CF_CD,
  130. .cd_irq_str = "PCMCIA0 CD",
  131. },
  132. };
  133. static struct scoop_pcmcia_config corgi_pcmcia_config = {
  134. .devs = &corgi_pcmcia_scoop[0],
  135. .num_devs = 1,
  136. };
  137. EXPORT_SYMBOL(corgiscoop_device);
  138. static struct w100_mem_info corgi_fb_mem = {
  139. .ext_cntl = 0x00040003,
  140. .sdram_mode_reg = 0x00650021,
  141. .ext_timing_cntl = 0x10002a4a,
  142. .io_cntl = 0x7ff87012,
  143. .size = 0x1fffff,
  144. };
  145. static struct w100_gen_regs corgi_fb_regs = {
  146. .lcd_format = 0x00000003,
  147. .lcdd_cntl1 = 0x01CC0000,
  148. .lcdd_cntl2 = 0x0003FFFF,
  149. .genlcd_cntl1 = 0x00FFFF0D,
  150. .genlcd_cntl2 = 0x003F3003,
  151. .genlcd_cntl3 = 0x000102aa,
  152. };
  153. static struct w100_gpio_regs corgi_fb_gpio = {
  154. .init_data1 = 0x000000bf,
  155. .init_data2 = 0x00000000,
  156. .gpio_dir1 = 0x00000000,
  157. .gpio_oe1 = 0x03c0feff,
  158. .gpio_dir2 = 0x00000000,
  159. .gpio_oe2 = 0x00000000,
  160. };
  161. static struct w100_mode corgi_fb_modes[] = {
  162. {
  163. .xres = 480,
  164. .yres = 640,
  165. .left_margin = 0x56,
  166. .right_margin = 0x55,
  167. .upper_margin = 0x03,
  168. .lower_margin = 0x00,
  169. .crtc_ss = 0x82360056,
  170. .crtc_ls = 0xA0280000,
  171. .crtc_gs = 0x80280028,
  172. .crtc_vpos_gs = 0x02830002,
  173. .crtc_rev = 0x00400008,
  174. .crtc_dclk = 0xA0000000,
  175. .crtc_gclk = 0x8015010F,
  176. .crtc_goe = 0x80100110,
  177. .crtc_ps1_active = 0x41060010,
  178. .pll_freq = 75,
  179. .fast_pll_freq = 100,
  180. .sysclk_src = CLK_SRC_PLL,
  181. .sysclk_divider = 0,
  182. .pixclk_src = CLK_SRC_PLL,
  183. .pixclk_divider = 2,
  184. .pixclk_divider_rotated = 6,
  185. },{
  186. .xres = 240,
  187. .yres = 320,
  188. .left_margin = 0x27,
  189. .right_margin = 0x2e,
  190. .upper_margin = 0x01,
  191. .lower_margin = 0x00,
  192. .crtc_ss = 0x81170027,
  193. .crtc_ls = 0xA0140000,
  194. .crtc_gs = 0xC0140014,
  195. .crtc_vpos_gs = 0x00010141,
  196. .crtc_rev = 0x00400008,
  197. .crtc_dclk = 0xA0000000,
  198. .crtc_gclk = 0x8015010F,
  199. .crtc_goe = 0x80100110,
  200. .crtc_ps1_active = 0x41060010,
  201. .pll_freq = 0,
  202. .fast_pll_freq = 0,
  203. .sysclk_src = CLK_SRC_XTAL,
  204. .sysclk_divider = 0,
  205. .pixclk_src = CLK_SRC_XTAL,
  206. .pixclk_divider = 1,
  207. .pixclk_divider_rotated = 1,
  208. },
  209. };
  210. static struct w100fb_mach_info corgi_fb_info = {
  211. .init_mode = INIT_MODE_ROTATED,
  212. .mem = &corgi_fb_mem,
  213. .regs = &corgi_fb_regs,
  214. .modelist = &corgi_fb_modes[0],
  215. .num_modes = 2,
  216. .gpio = &corgi_fb_gpio,
  217. .xtal_freq = 12500000,
  218. .xtal_dbl = 0,
  219. };
  220. static struct resource corgi_fb_resources[] = {
  221. [0] = {
  222. .start = 0x08000000,
  223. .end = 0x08ffffff,
  224. .flags = IORESOURCE_MEM,
  225. },
  226. };
  227. static struct platform_device corgifb_device = {
  228. .name = "w100fb",
  229. .id = -1,
  230. .num_resources = ARRAY_SIZE(corgi_fb_resources),
  231. .resource = corgi_fb_resources,
  232. .dev = {
  233. .platform_data = &corgi_fb_info,
  234. },
  235. };
  236. /*
  237. * Corgi Keyboard Device
  238. */
  239. static struct platform_device corgikbd_device = {
  240. .name = "corgi-keyboard",
  241. .id = -1,
  242. };
  243. /*
  244. * Corgi LEDs
  245. */
  246. static struct gpio_led corgi_gpio_leds[] = {
  247. {
  248. .name = "corgi:amber:charge",
  249. .default_trigger = "sharpsl-charge",
  250. .gpio = CORGI_GPIO_LED_ORANGE,
  251. },
  252. {
  253. .name = "corgi:green:mail",
  254. .default_trigger = "nand-disk",
  255. .gpio = CORGI_GPIO_LED_GREEN,
  256. },
  257. };
  258. static struct gpio_led_platform_data corgi_gpio_leds_info = {
  259. .leds = corgi_gpio_leds,
  260. .num_leds = ARRAY_SIZE(corgi_gpio_leds),
  261. };
  262. static struct platform_device corgiled_device = {
  263. .name = "leds-gpio",
  264. .id = -1,
  265. .dev = {
  266. .platform_data = &corgi_gpio_leds_info,
  267. },
  268. };
  269. /*
  270. * MMC/SD Device
  271. *
  272. * The card detect interrupt isn't debounced so we delay it by 250ms
  273. * to give the card a chance to fully insert/eject.
  274. */
  275. static struct pxamci_platform_data corgi_mci_platform_data;
  276. static int corgi_mci_init(struct device *dev, irq_handler_t corgi_detect_int, void *data)
  277. {
  278. int err;
  279. err = gpio_request(CORGI_GPIO_nSD_DETECT, "nSD_DETECT");
  280. if (err)
  281. goto err_out;
  282. err = gpio_request(CORGI_GPIO_nSD_WP, "nSD_WP");
  283. if (err)
  284. goto err_free_1;
  285. err = gpio_request(CORGI_GPIO_SD_PWR, "SD_PWR");
  286. if (err)
  287. goto err_free_2;
  288. gpio_direction_input(CORGI_GPIO_nSD_DETECT);
  289. gpio_direction_input(CORGI_GPIO_nSD_WP);
  290. gpio_direction_output(CORGI_GPIO_SD_PWR, 0);
  291. corgi_mci_platform_data.detect_delay = msecs_to_jiffies(250);
  292. err = request_irq(CORGI_IRQ_GPIO_nSD_DETECT, corgi_detect_int,
  293. IRQF_DISABLED | IRQF_TRIGGER_RISING |
  294. IRQF_TRIGGER_FALLING,
  295. "MMC card detect", data);
  296. if (err) {
  297. pr_err("%s: MMC/SD: can't request MMC card detect IRQ\n",
  298. __func__);
  299. goto err_free_3;
  300. }
  301. return 0;
  302. err_free_3:
  303. gpio_free(CORGI_GPIO_SD_PWR);
  304. err_free_2:
  305. gpio_free(CORGI_GPIO_nSD_WP);
  306. err_free_1:
  307. gpio_free(CORGI_GPIO_nSD_DETECT);
  308. err_out:
  309. return err;
  310. }
  311. static void corgi_mci_setpower(struct device *dev, unsigned int vdd)
  312. {
  313. struct pxamci_platform_data* p_d = dev->platform_data;
  314. gpio_set_value(CORGI_GPIO_SD_PWR, ((1 << vdd) & p_d->ocr_mask));
  315. }
  316. static int corgi_mci_get_ro(struct device *dev)
  317. {
  318. return gpio_get_value(CORGI_GPIO_nSD_WP);
  319. }
  320. static void corgi_mci_exit(struct device *dev, void *data)
  321. {
  322. free_irq(CORGI_IRQ_GPIO_nSD_DETECT, data);
  323. gpio_free(CORGI_GPIO_SD_PWR);
  324. gpio_free(CORGI_GPIO_nSD_WP);
  325. gpio_free(CORGI_GPIO_nSD_DETECT);
  326. }
  327. static struct pxamci_platform_data corgi_mci_platform_data = {
  328. .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34,
  329. .init = corgi_mci_init,
  330. .get_ro = corgi_mci_get_ro,
  331. .setpower = corgi_mci_setpower,
  332. .exit = corgi_mci_exit,
  333. };
  334. /*
  335. * Irda
  336. */
  337. static void corgi_irda_transceiver_mode(struct device *dev, int mode)
  338. {
  339. gpio_set_value(CORGI_GPIO_IR_ON, mode & IR_OFF);
  340. pxa2xx_transceiver_mode(dev, mode);
  341. }
  342. static int corgi_irda_startup(struct device *dev)
  343. {
  344. int err;
  345. err = gpio_request(CORGI_GPIO_IR_ON, "IR_ON");
  346. if (err)
  347. return err;
  348. gpio_direction_output(CORGI_GPIO_IR_ON, 1);
  349. return 0;
  350. }
  351. static void corgi_irda_shutdown(struct device *dev)
  352. {
  353. gpio_free(CORGI_GPIO_IR_ON);
  354. }
  355. static struct pxaficp_platform_data corgi_ficp_platform_data = {
  356. .transceiver_cap = IR_SIRMODE | IR_OFF,
  357. .transceiver_mode = corgi_irda_transceiver_mode,
  358. .startup = corgi_irda_startup,
  359. .shutdown = corgi_irda_shutdown,
  360. };
  361. /*
  362. * USB Device Controller
  363. */
  364. static struct pxa2xx_udc_mach_info udc_info __initdata = {
  365. /* no connect GPIO; corgi can't tell connection status */
  366. .gpio_pullup = CORGI_GPIO_USB_PULLUP,
  367. };
  368. #if defined(CONFIG_SPI_PXA2XX) || defined(CONFIG_SPI_PXA2XX_MASTER)
  369. static struct pxa2xx_spi_master corgi_spi_info = {
  370. .num_chipselect = 3,
  371. };
  372. static struct ads7846_platform_data corgi_ads7846_info = {
  373. .model = 7846,
  374. .vref_delay_usecs = 100,
  375. .x_plate_ohms = 419,
  376. .y_plate_ohms = 486,
  377. .gpio_pendown = CORGI_GPIO_TP_INT,
  378. };
  379. static void corgi_ads7846_cs(u32 command)
  380. {
  381. gpio_set_value(CORGI_GPIO_ADS7846_CS, !(command == PXA2XX_CS_ASSERT));
  382. }
  383. static struct pxa2xx_spi_chip corgi_ads7846_chip = {
  384. .cs_control = corgi_ads7846_cs,
  385. };
  386. static void corgi_bl_kick_battery(void)
  387. {
  388. void (*kick_batt)(void);
  389. kick_batt = symbol_get(sharpsl_battery_kick);
  390. if (kick_batt) {
  391. kick_batt();
  392. symbol_put(sharpsl_battery_kick);
  393. }
  394. }
  395. static struct corgi_lcd_platform_data corgi_lcdcon_info = {
  396. .init_mode = CORGI_LCD_MODE_VGA,
  397. .max_intensity = 0x2f,
  398. .default_intensity = 0x1f,
  399. .limit_mask = 0x0b,
  400. .gpio_backlight_cont = CORGI_GPIO_BACKLIGHT_CONT,
  401. .gpio_backlight_on = -1,
  402. .kick_battery = corgi_bl_kick_battery,
  403. };
  404. static void corgi_lcdcon_cs(u32 command)
  405. {
  406. gpio_set_value(CORGI_GPIO_LCDCON_CS, !(command == PXA2XX_CS_ASSERT));
  407. }
  408. static struct pxa2xx_spi_chip corgi_lcdcon_chip = {
  409. .cs_control = corgi_lcdcon_cs,
  410. };
  411. static void corgi_max1111_cs(u32 command)
  412. {
  413. gpio_set_value(CORGI_GPIO_MAX1111_CS, !(command == PXA2XX_CS_ASSERT));
  414. }
  415. static struct pxa2xx_spi_chip corgi_max1111_chip = {
  416. .cs_control = corgi_max1111_cs,
  417. };
  418. static struct spi_board_info corgi_spi_devices[] = {
  419. {
  420. .modalias = "ads7846",
  421. .max_speed_hz = 1200000,
  422. .bus_num = 1,
  423. .chip_select = 0,
  424. .platform_data = &corgi_ads7846_info,
  425. .controller_data= &corgi_ads7846_chip,
  426. .irq = gpio_to_irq(CORGI_GPIO_TP_INT),
  427. }, {
  428. .modalias = "corgi-lcd",
  429. .max_speed_hz = 50000,
  430. .bus_num = 1,
  431. .chip_select = 1,
  432. .platform_data = &corgi_lcdcon_info,
  433. .controller_data= &corgi_lcdcon_chip,
  434. }, {
  435. .modalias = "max1111",
  436. .max_speed_hz = 450000,
  437. .bus_num = 1,
  438. .chip_select = 2,
  439. .controller_data= &corgi_max1111_chip,
  440. },
  441. };
  442. static void __init corgi_init_spi(void)
  443. {
  444. int err;
  445. err = gpio_request(CORGI_GPIO_ADS7846_CS, "ADS7846_CS");
  446. if (err)
  447. return;
  448. err = gpio_request(CORGI_GPIO_LCDCON_CS, "LCDCON_CS");
  449. if (err)
  450. goto err_free_1;
  451. err = gpio_request(CORGI_GPIO_MAX1111_CS, "MAX1111_CS");
  452. if (err)
  453. goto err_free_2;
  454. gpio_direction_output(CORGI_GPIO_ADS7846_CS, 1);
  455. gpio_direction_output(CORGI_GPIO_LCDCON_CS, 1);
  456. gpio_direction_output(CORGI_GPIO_MAX1111_CS, 1);
  457. pxa2xx_set_spi_info(1, &corgi_spi_info);
  458. spi_register_board_info(ARRAY_AND_SIZE(corgi_spi_devices));
  459. return;
  460. err_free_2:
  461. gpio_free(CORGI_GPIO_LCDCON_CS);
  462. err_free_1:
  463. gpio_free(CORGI_GPIO_ADS7846_CS);
  464. }
  465. #else
  466. static inline void corgi_init_spi(void) {}
  467. #endif
  468. static struct mtd_partition sharpsl_rom_parts[] = {
  469. {
  470. .name ="Boot PROM Filesystem",
  471. .offset = 0x00120000,
  472. .size = MTDPART_SIZ_FULL,
  473. },
  474. };
  475. static struct physmap_flash_data sharpsl_rom_data = {
  476. .width = 2,
  477. .nr_parts = ARRAY_SIZE(sharpsl_rom_parts),
  478. .parts = sharpsl_rom_parts,
  479. };
  480. static struct resource sharpsl_rom_resources[] = {
  481. {
  482. .start = 0x00000000,
  483. .end = 0x007fffff,
  484. .flags = IORESOURCE_MEM,
  485. },
  486. };
  487. static struct platform_device sharpsl_rom_device = {
  488. .name = "physmap-flash",
  489. .id = -1,
  490. .resource = sharpsl_rom_resources,
  491. .num_resources = ARRAY_SIZE(sharpsl_rom_resources),
  492. .dev.platform_data = &sharpsl_rom_data,
  493. };
  494. static struct platform_device *devices[] __initdata = {
  495. &corgiscoop_device,
  496. &corgifb_device,
  497. &corgikbd_device,
  498. &corgiled_device,
  499. &sharpsl_rom_device,
  500. };
  501. static void corgi_poweroff(void)
  502. {
  503. if (!machine_is_corgi())
  504. /* Green LED off tells the bootloader to halt */
  505. gpio_set_value(CORGI_GPIO_LED_GREEN, 0);
  506. arm_machine_restart('h');
  507. }
  508. static void corgi_restart(char mode)
  509. {
  510. if (!machine_is_corgi())
  511. /* Green LED on tells the bootloader to reboot */
  512. gpio_set_value(CORGI_GPIO_LED_GREEN, 1);
  513. arm_machine_restart('h');
  514. }
  515. static void __init corgi_init(void)
  516. {
  517. pm_power_off = corgi_poweroff;
  518. arm_pm_restart = corgi_restart;
  519. /* Stop 3.6MHz and drive HIGH to PCMCIA and CS */
  520. PCFR |= PCFR_OPDE;
  521. pxa2xx_mfp_config(ARRAY_AND_SIZE(corgi_pin_config));
  522. corgi_init_spi();
  523. pxa_set_udc_info(&udc_info);
  524. pxa_set_mci_info(&corgi_mci_platform_data);
  525. pxa_set_ficp_info(&corgi_ficp_platform_data);
  526. pxa_set_i2c_info(NULL);
  527. platform_scoop_config = &corgi_pcmcia_config;
  528. platform_add_devices(devices, ARRAY_SIZE(devices));
  529. }
  530. static void __init fixup_corgi(struct machine_desc *desc,
  531. struct tag *tags, char **cmdline, struct meminfo *mi)
  532. {
  533. sharpsl_save_param();
  534. mi->nr_banks=1;
  535. mi->bank[0].start = 0xa0000000;
  536. mi->bank[0].node = 0;
  537. if (machine_is_corgi())
  538. mi->bank[0].size = (32*1024*1024);
  539. else
  540. mi->bank[0].size = (64*1024*1024);
  541. }
  542. #ifdef CONFIG_MACH_CORGI
  543. MACHINE_START(CORGI, "SHARP Corgi")
  544. .phys_io = 0x40000000,
  545. .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
  546. .fixup = fixup_corgi,
  547. .map_io = pxa_map_io,
  548. .init_irq = pxa25x_init_irq,
  549. .init_machine = corgi_init,
  550. .timer = &pxa_timer,
  551. MACHINE_END
  552. #endif
  553. #ifdef CONFIG_MACH_SHEPHERD
  554. MACHINE_START(SHEPHERD, "SHARP Shepherd")
  555. .phys_io = 0x40000000,
  556. .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
  557. .fixup = fixup_corgi,
  558. .map_io = pxa_map_io,
  559. .init_irq = pxa25x_init_irq,
  560. .init_machine = corgi_init,
  561. .timer = &pxa_timer,
  562. MACHINE_END
  563. #endif
  564. #ifdef CONFIG_MACH_HUSKY
  565. MACHINE_START(HUSKY, "SHARP Husky")
  566. .phys_io = 0x40000000,
  567. .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
  568. .fixup = fixup_corgi,
  569. .map_io = pxa_map_io,
  570. .init_irq = pxa25x_init_irq,
  571. .init_machine = corgi_init,
  572. .timer = &pxa_timer,
  573. MACHINE_END
  574. #endif