lubbock.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656
  1. /*
  2. * linux/arch/arm/mach-pxa/lubbock.c
  3. *
  4. * Support for the Intel DBPXA250 Development Platform.
  5. *
  6. * Author: Nicolas Pitre
  7. * Created: Jun 15, 2001
  8. * Copyright: MontaVista Software Inc.
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License version 2 as
  12. * published by the Free Software Foundation.
  13. */
  14. #include <linux/gpio.h>
  15. #include <linux/module.h>
  16. #include <linux/kernel.h>
  17. #include <linux/init.h>
  18. #include <linux/io.h>
  19. #include <linux/platform_device.h>
  20. #include <linux/syscore_ops.h>
  21. #include <linux/major.h>
  22. #include <linux/fb.h>
  23. #include <linux/interrupt.h>
  24. #include <linux/mtd/mtd.h>
  25. #include <linux/mtd/partitions.h>
  26. #include <linux/smc91x.h>
  27. #include <linux/slab.h>
  28. #include <linux/leds.h>
  29. #include <linux/spi/spi.h>
  30. #include <linux/spi/ads7846.h>
  31. #include <linux/spi/pxa2xx_spi.h>
  32. #include <asm/setup.h>
  33. #include <asm/memory.h>
  34. #include <asm/mach-types.h>
  35. #include <mach/hardware.h>
  36. #include <asm/irq.h>
  37. #include <asm/sizes.h>
  38. #include <asm/mach/arch.h>
  39. #include <asm/mach/map.h>
  40. #include <asm/mach/irq.h>
  41. #include <asm/mach/flash.h>
  42. #include <asm/hardware/sa1111.h>
  43. #include <mach/pxa25x.h>
  44. #include <mach/audio.h>
  45. #include <mach/lubbock.h>
  46. #include <mach/udc.h>
  47. #include <linux/platform_data/irda-pxaficp.h>
  48. #include <linux/platform_data/video-pxafb.h>
  49. #include <linux/platform_data/mmc-pxamci.h>
  50. #include <mach/pm.h>
  51. #include <mach/smemc.h>
  52. #include "generic.h"
  53. #include "clock.h"
  54. #include "devices.h"
  55. static unsigned long lubbock_pin_config[] __initdata = {
  56. GPIO15_nCS_1, /* CS1 - Flash */
  57. GPIO78_nCS_2, /* CS2 - Baseboard FGPA */
  58. GPIO79_nCS_3, /* CS3 - SMC ethernet */
  59. GPIO80_nCS_4, /* CS4 - SA1111 */
  60. /* SSP data pins */
  61. GPIO23_SSP1_SCLK,
  62. GPIO25_SSP1_TXD,
  63. GPIO26_SSP1_RXD,
  64. /* AC97 */
  65. GPIO28_AC97_BITCLK,
  66. GPIO29_AC97_SDATA_IN_0,
  67. GPIO30_AC97_SDATA_OUT,
  68. GPIO31_AC97_SYNC,
  69. /* LCD - 16bpp DSTN */
  70. GPIOxx_LCD_DSTN_16BPP,
  71. /* BTUART */
  72. GPIO42_BTUART_RXD,
  73. GPIO43_BTUART_TXD,
  74. GPIO44_BTUART_CTS,
  75. GPIO45_BTUART_RTS,
  76. /* PC Card */
  77. GPIO48_nPOE,
  78. GPIO49_nPWE,
  79. GPIO50_nPIOR,
  80. GPIO51_nPIOW,
  81. GPIO52_nPCE_1,
  82. GPIO53_nPCE_2,
  83. GPIO54_nPSKTSEL,
  84. GPIO55_nPREG,
  85. GPIO56_nPWAIT,
  86. GPIO57_nIOIS16,
  87. /* MMC */
  88. GPIO6_MMC_CLK,
  89. GPIO8_MMC_CS0,
  90. /* wakeup */
  91. GPIO1_GPIO | WAKEUP_ON_EDGE_RISE,
  92. };
  93. #define LUB_HEXLED __LUB_REG(LUBBOCK_FPGA_PHYS + 0x010)
  94. #define LUB_MISC_WR __LUB_REG(LUBBOCK_FPGA_PHYS + 0x080)
  95. void lubbock_set_hexled(uint32_t value)
  96. {
  97. LUB_HEXLED = value;
  98. }
  99. void lubbock_set_misc_wr(unsigned int mask, unsigned int set)
  100. {
  101. unsigned long flags;
  102. local_irq_save(flags);
  103. LUB_MISC_WR = (LUB_MISC_WR & ~mask) | (set & mask);
  104. local_irq_restore(flags);
  105. }
  106. EXPORT_SYMBOL(lubbock_set_misc_wr);
  107. static unsigned long lubbock_irq_enabled;
  108. static void lubbock_mask_irq(struct irq_data *d)
  109. {
  110. int lubbock_irq = (d->irq - LUBBOCK_IRQ(0));
  111. LUB_IRQ_MASK_EN = (lubbock_irq_enabled &= ~(1 << lubbock_irq));
  112. }
  113. static void lubbock_unmask_irq(struct irq_data *d)
  114. {
  115. int lubbock_irq = (d->irq - LUBBOCK_IRQ(0));
  116. /* the irq can be acknowledged only if deasserted, so it's done here */
  117. LUB_IRQ_SET_CLR &= ~(1 << lubbock_irq);
  118. LUB_IRQ_MASK_EN = (lubbock_irq_enabled |= (1 << lubbock_irq));
  119. }
  120. static struct irq_chip lubbock_irq_chip = {
  121. .name = "FPGA",
  122. .irq_ack = lubbock_mask_irq,
  123. .irq_mask = lubbock_mask_irq,
  124. .irq_unmask = lubbock_unmask_irq,
  125. };
  126. static void lubbock_irq_handler(unsigned int irq, struct irq_desc *desc)
  127. {
  128. unsigned long pending = LUB_IRQ_SET_CLR & lubbock_irq_enabled;
  129. do {
  130. /* clear our parent irq */
  131. desc->irq_data.chip->irq_ack(&desc->irq_data);
  132. if (likely(pending)) {
  133. irq = LUBBOCK_IRQ(0) + __ffs(pending);
  134. generic_handle_irq(irq);
  135. }
  136. pending = LUB_IRQ_SET_CLR & lubbock_irq_enabled;
  137. } while (pending);
  138. }
  139. static void __init lubbock_init_irq(void)
  140. {
  141. int irq;
  142. pxa25x_init_irq();
  143. /* setup extra lubbock irqs */
  144. for (irq = LUBBOCK_IRQ(0); irq <= LUBBOCK_LAST_IRQ; irq++) {
  145. irq_set_chip_and_handler(irq, &lubbock_irq_chip,
  146. handle_level_irq);
  147. set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
  148. }
  149. irq_set_chained_handler(PXA_GPIO_TO_IRQ(0), lubbock_irq_handler);
  150. irq_set_irq_type(PXA_GPIO_TO_IRQ(0), IRQ_TYPE_EDGE_FALLING);
  151. }
  152. #ifdef CONFIG_PM
  153. static void lubbock_irq_resume(void)
  154. {
  155. LUB_IRQ_MASK_EN = lubbock_irq_enabled;
  156. }
  157. static struct syscore_ops lubbock_irq_syscore_ops = {
  158. .resume = lubbock_irq_resume,
  159. };
  160. static int __init lubbock_irq_device_init(void)
  161. {
  162. if (machine_is_lubbock()) {
  163. register_syscore_ops(&lubbock_irq_syscore_ops);
  164. return 0;
  165. }
  166. return -ENODEV;
  167. }
  168. device_initcall(lubbock_irq_device_init);
  169. #endif
  170. static int lubbock_udc_is_connected(void)
  171. {
  172. return (LUB_MISC_RD & (1 << 9)) == 0;
  173. }
  174. static struct pxa2xx_udc_mach_info udc_info __initdata = {
  175. .udc_is_connected = lubbock_udc_is_connected,
  176. // no D+ pullup; lubbock can't connect/disconnect in software
  177. };
  178. static struct resource sa1111_resources[] = {
  179. [0] = {
  180. .start = 0x10000000,
  181. .end = 0x10001fff,
  182. .flags = IORESOURCE_MEM,
  183. },
  184. [1] = {
  185. .start = LUBBOCK_SA1111_IRQ,
  186. .end = LUBBOCK_SA1111_IRQ,
  187. .flags = IORESOURCE_IRQ,
  188. },
  189. };
  190. static struct sa1111_platform_data sa1111_info = {
  191. .irq_base = LUBBOCK_SA1111_IRQ_BASE,
  192. .disable_devs = SA1111_DEVID_SAC,
  193. };
  194. static struct platform_device sa1111_device = {
  195. .name = "sa1111",
  196. .id = -1,
  197. .num_resources = ARRAY_SIZE(sa1111_resources),
  198. .resource = sa1111_resources,
  199. .dev = {
  200. .platform_data = &sa1111_info,
  201. },
  202. };
  203. /* ADS7846 is connected through SSP ... and if your board has J5 populated,
  204. * you can select it to replace the ucb1400 by switching the touchscreen cable
  205. * (to J5) and poking board registers (as done below). Else it's only useful
  206. * for the temperature sensors.
  207. */
  208. static struct pxa2xx_spi_master pxa_ssp_master_info = {
  209. .num_chipselect = 1,
  210. };
  211. static int lubbock_ads7846_pendown_state(void)
  212. {
  213. /* TS_BUSY is bit 8 in LUB_MISC_RD, but pendown is irq-only */
  214. return 0;
  215. }
  216. static struct ads7846_platform_data ads_info = {
  217. .model = 7846,
  218. .vref_delay_usecs = 100, /* internal, no cap */
  219. .get_pendown_state = lubbock_ads7846_pendown_state,
  220. // .x_plate_ohms = 500, /* GUESS! */
  221. // .y_plate_ohms = 500, /* GUESS! */
  222. };
  223. static void ads7846_cs(u32 command)
  224. {
  225. static const unsigned TS_nCS = 1 << 11;
  226. lubbock_set_misc_wr(TS_nCS, (command == PXA2XX_CS_ASSERT) ? 0 : TS_nCS);
  227. }
  228. static struct pxa2xx_spi_chip ads_hw = {
  229. .tx_threshold = 1,
  230. .rx_threshold = 2,
  231. .cs_control = ads7846_cs,
  232. };
  233. static struct spi_board_info spi_board_info[] __initdata = { {
  234. .modalias = "ads7846",
  235. .platform_data = &ads_info,
  236. .controller_data = &ads_hw,
  237. .irq = LUBBOCK_BB_IRQ,
  238. .max_speed_hz = 120000 /* max sample rate at 3V */
  239. * 26 /* command + data + overhead */,
  240. .bus_num = 1,
  241. .chip_select = 0,
  242. },
  243. };
  244. static struct resource smc91x_resources[] = {
  245. [0] = {
  246. .name = "smc91x-regs",
  247. .start = 0x0c000c00,
  248. .end = 0x0c0fffff,
  249. .flags = IORESOURCE_MEM,
  250. },
  251. [1] = {
  252. .start = LUBBOCK_ETH_IRQ,
  253. .end = LUBBOCK_ETH_IRQ,
  254. .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
  255. },
  256. [2] = {
  257. .name = "smc91x-attrib",
  258. .start = 0x0e000000,
  259. .end = 0x0e0fffff,
  260. .flags = IORESOURCE_MEM,
  261. },
  262. };
  263. static struct smc91x_platdata lubbock_smc91x_info = {
  264. .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT | SMC91X_IO_SHIFT_2,
  265. };
  266. static struct platform_device smc91x_device = {
  267. .name = "smc91x",
  268. .id = -1,
  269. .num_resources = ARRAY_SIZE(smc91x_resources),
  270. .resource = smc91x_resources,
  271. .dev = {
  272. .platform_data = &lubbock_smc91x_info,
  273. },
  274. };
  275. static struct resource flash_resources[] = {
  276. [0] = {
  277. .start = 0x00000000,
  278. .end = SZ_64M - 1,
  279. .flags = IORESOURCE_MEM,
  280. },
  281. [1] = {
  282. .start = 0x04000000,
  283. .end = 0x04000000 + SZ_64M - 1,
  284. .flags = IORESOURCE_MEM,
  285. },
  286. };
  287. static struct mtd_partition lubbock_partitions[] = {
  288. {
  289. .name = "Bootloader",
  290. .size = 0x00040000,
  291. .offset = 0,
  292. .mask_flags = MTD_WRITEABLE /* force read-only */
  293. },{
  294. .name = "Kernel",
  295. .size = 0x00100000,
  296. .offset = 0x00040000,
  297. },{
  298. .name = "Filesystem",
  299. .size = MTDPART_SIZ_FULL,
  300. .offset = 0x00140000
  301. }
  302. };
  303. static struct flash_platform_data lubbock_flash_data[2] = {
  304. {
  305. .map_name = "cfi_probe",
  306. .parts = lubbock_partitions,
  307. .nr_parts = ARRAY_SIZE(lubbock_partitions),
  308. }, {
  309. .map_name = "cfi_probe",
  310. .parts = NULL,
  311. .nr_parts = 0,
  312. }
  313. };
  314. static struct platform_device lubbock_flash_device[2] = {
  315. {
  316. .name = "pxa2xx-flash",
  317. .id = 0,
  318. .dev = {
  319. .platform_data = &lubbock_flash_data[0],
  320. },
  321. .resource = &flash_resources[0],
  322. .num_resources = 1,
  323. },
  324. {
  325. .name = "pxa2xx-flash",
  326. .id = 1,
  327. .dev = {
  328. .platform_data = &lubbock_flash_data[1],
  329. },
  330. .resource = &flash_resources[1],
  331. .num_resources = 1,
  332. },
  333. };
  334. static struct platform_device *devices[] __initdata = {
  335. &sa1111_device,
  336. &smc91x_device,
  337. &lubbock_flash_device[0],
  338. &lubbock_flash_device[1],
  339. };
  340. static struct pxafb_mode_info sharp_lm8v31_mode = {
  341. .pixclock = 270000,
  342. .xres = 640,
  343. .yres = 480,
  344. .bpp = 16,
  345. .hsync_len = 1,
  346. .left_margin = 3,
  347. .right_margin = 3,
  348. .vsync_len = 1,
  349. .upper_margin = 0,
  350. .lower_margin = 0,
  351. .sync = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,
  352. .cmap_greyscale = 0,
  353. };
  354. static struct pxafb_mach_info sharp_lm8v31 = {
  355. .modes = &sharp_lm8v31_mode,
  356. .num_modes = 1,
  357. .cmap_inverse = 0,
  358. .cmap_static = 0,
  359. .lcd_conn = LCD_COLOR_DSTN_16BPP | LCD_PCLK_EDGE_FALL |
  360. LCD_AC_BIAS_FREQ(255),
  361. };
  362. #define MMC_POLL_RATE msecs_to_jiffies(1000)
  363. static void lubbock_mmc_poll(unsigned long);
  364. static irq_handler_t mmc_detect_int;
  365. static struct timer_list mmc_timer = {
  366. .function = lubbock_mmc_poll,
  367. };
  368. static void lubbock_mmc_poll(unsigned long data)
  369. {
  370. unsigned long flags;
  371. /* clear any previous irq state, then ... */
  372. local_irq_save(flags);
  373. LUB_IRQ_SET_CLR &= ~(1 << 0);
  374. local_irq_restore(flags);
  375. /* poll until mmc/sd card is removed */
  376. if (LUB_IRQ_SET_CLR & (1 << 0))
  377. mod_timer(&mmc_timer, jiffies + MMC_POLL_RATE);
  378. else {
  379. (void) mmc_detect_int(LUBBOCK_SD_IRQ, (void *)data);
  380. enable_irq(LUBBOCK_SD_IRQ);
  381. }
  382. }
  383. static irqreturn_t lubbock_detect_int(int irq, void *data)
  384. {
  385. /* IRQ is level triggered; disable, and poll for removal */
  386. disable_irq(irq);
  387. mod_timer(&mmc_timer, jiffies + MMC_POLL_RATE);
  388. return mmc_detect_int(irq, data);
  389. }
  390. static int lubbock_mci_init(struct device *dev,
  391. irq_handler_t detect_int,
  392. void *data)
  393. {
  394. /* detect card insert/eject */
  395. mmc_detect_int = detect_int;
  396. init_timer(&mmc_timer);
  397. mmc_timer.data = (unsigned long) data;
  398. return request_irq(LUBBOCK_SD_IRQ, lubbock_detect_int,
  399. 0, "lubbock-sd-detect", data);
  400. }
  401. static int lubbock_mci_get_ro(struct device *dev)
  402. {
  403. return (LUB_MISC_RD & (1 << 2)) != 0;
  404. }
  405. static void lubbock_mci_exit(struct device *dev, void *data)
  406. {
  407. free_irq(LUBBOCK_SD_IRQ, data);
  408. del_timer_sync(&mmc_timer);
  409. }
  410. static struct pxamci_platform_data lubbock_mci_platform_data = {
  411. .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34,
  412. .detect_delay_ms = 10,
  413. .init = lubbock_mci_init,
  414. .get_ro = lubbock_mci_get_ro,
  415. .exit = lubbock_mci_exit,
  416. .gpio_card_detect = -1,
  417. .gpio_card_ro = -1,
  418. .gpio_power = -1,
  419. };
  420. static void lubbock_irda_transceiver_mode(struct device *dev, int mode)
  421. {
  422. unsigned long flags;
  423. local_irq_save(flags);
  424. if (mode & IR_SIRMODE) {
  425. LUB_MISC_WR &= ~(1 << 4);
  426. } else if (mode & IR_FIRMODE) {
  427. LUB_MISC_WR |= 1 << 4;
  428. }
  429. pxa2xx_transceiver_mode(dev, mode);
  430. local_irq_restore(flags);
  431. }
  432. static struct pxaficp_platform_data lubbock_ficp_platform_data = {
  433. .gpio_pwdown = -1,
  434. .transceiver_cap = IR_SIRMODE | IR_FIRMODE,
  435. .transceiver_mode = lubbock_irda_transceiver_mode,
  436. };
  437. static void __init lubbock_init(void)
  438. {
  439. int flashboot = (LUB_CONF_SWITCHES & 1);
  440. pxa2xx_mfp_config(ARRAY_AND_SIZE(lubbock_pin_config));
  441. pxa_set_ffuart_info(NULL);
  442. pxa_set_btuart_info(NULL);
  443. pxa_set_stuart_info(NULL);
  444. clk_add_alias("SA1111_CLK", NULL, "GPIO11_CLK", NULL);
  445. pxa_set_udc_info(&udc_info);
  446. pxa_set_fb_info(NULL, &sharp_lm8v31);
  447. pxa_set_mci_info(&lubbock_mci_platform_data);
  448. pxa_set_ficp_info(&lubbock_ficp_platform_data);
  449. pxa_set_ac97_info(NULL);
  450. lubbock_flash_data[0].width = lubbock_flash_data[1].width =
  451. (__raw_readl(BOOT_DEF) & 1) ? 2 : 4;
  452. /* Compensate for the nROMBT switch which swaps the flash banks */
  453. printk(KERN_NOTICE "Lubbock configured to boot from %s (bank %d)\n",
  454. flashboot?"Flash":"ROM", flashboot);
  455. lubbock_flash_data[flashboot^1].name = "application-flash";
  456. lubbock_flash_data[flashboot].name = "boot-rom";
  457. (void) platform_add_devices(devices, ARRAY_SIZE(devices));
  458. pxa2xx_set_spi_info(1, &pxa_ssp_master_info);
  459. spi_register_board_info(spi_board_info, ARRAY_SIZE(spi_board_info));
  460. }
  461. static struct map_desc lubbock_io_desc[] __initdata = {
  462. { /* CPLD */
  463. .virtual = LUBBOCK_FPGA_VIRT,
  464. .pfn = __phys_to_pfn(LUBBOCK_FPGA_PHYS),
  465. .length = 0x00100000,
  466. .type = MT_DEVICE
  467. }
  468. };
  469. static void __init lubbock_map_io(void)
  470. {
  471. pxa25x_map_io();
  472. iotable_init(lubbock_io_desc, ARRAY_SIZE(lubbock_io_desc));
  473. PCFR |= PCFR_OPDE;
  474. }
  475. /*
  476. * Driver for the 8 discrete LEDs available for general use:
  477. * Note: bits [15-8] are used to enable/blank the 8 7 segment hex displays
  478. * so be sure to not monkey with them here.
  479. */
  480. #if defined(CONFIG_NEW_LEDS) && defined(CONFIG_LEDS_CLASS)
  481. struct lubbock_led {
  482. struct led_classdev cdev;
  483. u8 mask;
  484. };
  485. /*
  486. * The triggers lines up below will only be used if the
  487. * LED triggers are compiled in.
  488. */
  489. static const struct {
  490. const char *name;
  491. const char *trigger;
  492. } lubbock_leds[] = {
  493. { "lubbock:D28", "default-on", },
  494. { "lubbock:D27", "cpu0", },
  495. { "lubbock:D26", "heartbeat" },
  496. { "lubbock:D25", },
  497. { "lubbock:D24", },
  498. { "lubbock:D23", },
  499. { "lubbock:D22", },
  500. { "lubbock:D21", },
  501. };
  502. static void lubbock_led_set(struct led_classdev *cdev,
  503. enum led_brightness b)
  504. {
  505. struct lubbock_led *led = container_of(cdev,
  506. struct lubbock_led, cdev);
  507. u32 reg = LUB_DISC_BLNK_LED;
  508. if (b != LED_OFF)
  509. reg |= led->mask;
  510. else
  511. reg &= ~led->mask;
  512. LUB_DISC_BLNK_LED = reg;
  513. }
  514. static enum led_brightness lubbock_led_get(struct led_classdev *cdev)
  515. {
  516. struct lubbock_led *led = container_of(cdev,
  517. struct lubbock_led, cdev);
  518. u32 reg = LUB_DISC_BLNK_LED;
  519. return (reg & led->mask) ? LED_FULL : LED_OFF;
  520. }
  521. static int __init lubbock_leds_init(void)
  522. {
  523. int i;
  524. if (!machine_is_lubbock())
  525. return -ENODEV;
  526. /* All ON */
  527. LUB_DISC_BLNK_LED |= 0xff;
  528. for (i = 0; i < ARRAY_SIZE(lubbock_leds); i++) {
  529. struct lubbock_led *led;
  530. led = kzalloc(sizeof(*led), GFP_KERNEL);
  531. if (!led)
  532. break;
  533. led->cdev.name = lubbock_leds[i].name;
  534. led->cdev.brightness_set = lubbock_led_set;
  535. led->cdev.brightness_get = lubbock_led_get;
  536. led->cdev.default_trigger = lubbock_leds[i].trigger;
  537. led->mask = BIT(i);
  538. if (led_classdev_register(NULL, &led->cdev) < 0) {
  539. kfree(led);
  540. break;
  541. }
  542. }
  543. return 0;
  544. }
  545. /*
  546. * Since we may have triggers on any subsystem, defer registration
  547. * until after subsystem_init.
  548. */
  549. fs_initcall(lubbock_leds_init);
  550. #endif
  551. MACHINE_START(LUBBOCK, "Intel DBPXA250 Development Platform (aka Lubbock)")
  552. /* Maintainer: MontaVista Software Inc. */
  553. .map_io = lubbock_map_io,
  554. .nr_irqs = LUBBOCK_NR_IRQS,
  555. .init_irq = lubbock_init_irq,
  556. .handle_irq = pxa25x_handle_irq,
  557. .init_time = pxa_timer_init,
  558. .init_machine = lubbock_init,
  559. .restart = pxa_restart,
  560. MACHINE_END