netwinder-hw.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772
  1. /*
  2. * linux/arch/arm/mach-footbridge/netwinder-hw.c
  3. *
  4. * Netwinder machine fixup
  5. *
  6. * Copyright (C) 1998, 1999 Russell King, Phil Blundell
  7. */
  8. #include <linux/module.h>
  9. #include <linux/ioport.h>
  10. #include <linux/kernel.h>
  11. #include <linux/delay.h>
  12. #include <linux/init.h>
  13. #include <linux/io.h>
  14. #include <linux/spinlock.h>
  15. #include <linux/slab.h>
  16. #include <linux/leds.h>
  17. #include <asm/hardware/dec21285.h>
  18. #include <asm/mach-types.h>
  19. #include <asm/setup.h>
  20. #include <asm/system_misc.h>
  21. #include <asm/mach/arch.h>
  22. #include "common.h"
  23. #define IRDA_IO_BASE 0x180
  24. #define GP1_IO_BASE 0x338
  25. #define GP2_IO_BASE 0x33a
  26. /*
  27. * Winbond WB83977F accessibility stuff
  28. */
  29. static inline void wb977_open(void)
  30. {
  31. outb(0x87, 0x370);
  32. outb(0x87, 0x370);
  33. }
  34. static inline void wb977_close(void)
  35. {
  36. outb(0xaa, 0x370);
  37. }
  38. static inline void wb977_wb(int reg, int val)
  39. {
  40. outb(reg, 0x370);
  41. outb(val, 0x371);
  42. }
  43. static inline void wb977_ww(int reg, int val)
  44. {
  45. outb(reg, 0x370);
  46. outb(val >> 8, 0x371);
  47. outb(reg + 1, 0x370);
  48. outb(val & 255, 0x371);
  49. }
  50. #define wb977_device_select(dev) wb977_wb(0x07, dev)
  51. #define wb977_device_disable() wb977_wb(0x30, 0x00)
  52. #define wb977_device_enable() wb977_wb(0x30, 0x01)
  53. /*
  54. * This is a lock for accessing ports GP1_IO_BASE and GP2_IO_BASE
  55. */
  56. DEFINE_RAW_SPINLOCK(nw_gpio_lock);
  57. EXPORT_SYMBOL(nw_gpio_lock);
  58. static unsigned int current_gpio_op;
  59. static unsigned int current_gpio_io;
  60. static unsigned int current_cpld;
  61. void nw_gpio_modify_op(unsigned int mask, unsigned int set)
  62. {
  63. unsigned int new_gpio, changed;
  64. new_gpio = (current_gpio_op & ~mask) | set;
  65. changed = new_gpio ^ current_gpio_op;
  66. current_gpio_op = new_gpio;
  67. if (changed & 0xff)
  68. outb(new_gpio, GP1_IO_BASE);
  69. if (changed & 0xff00)
  70. outb(new_gpio >> 8, GP2_IO_BASE);
  71. }
  72. EXPORT_SYMBOL(nw_gpio_modify_op);
  73. static inline void __gpio_modify_io(int mask, int in)
  74. {
  75. unsigned int new_gpio, changed;
  76. int port;
  77. new_gpio = (current_gpio_io & ~mask) | in;
  78. changed = new_gpio ^ current_gpio_io;
  79. current_gpio_io = new_gpio;
  80. changed >>= 1;
  81. new_gpio >>= 1;
  82. wb977_device_select(7);
  83. for (port = 0xe1; changed && port < 0xe8; changed >>= 1) {
  84. wb977_wb(port, new_gpio & 1);
  85. port += 1;
  86. new_gpio >>= 1;
  87. }
  88. wb977_device_select(8);
  89. for (port = 0xe8; changed && port < 0xec; changed >>= 1) {
  90. wb977_wb(port, new_gpio & 1);
  91. port += 1;
  92. new_gpio >>= 1;
  93. }
  94. }
  95. void nw_gpio_modify_io(unsigned int mask, unsigned int in)
  96. {
  97. /* Open up the SuperIO chip */
  98. wb977_open();
  99. __gpio_modify_io(mask, in);
  100. /* Close up the EFER gate */
  101. wb977_close();
  102. }
  103. EXPORT_SYMBOL(nw_gpio_modify_io);
  104. unsigned int nw_gpio_read(void)
  105. {
  106. return inb(GP1_IO_BASE) | inb(GP2_IO_BASE) << 8;
  107. }
  108. EXPORT_SYMBOL(nw_gpio_read);
  109. /*
  110. * Initialise the Winbond W83977F global registers
  111. */
  112. static inline void wb977_init_global(void)
  113. {
  114. /*
  115. * Enable R/W config registers
  116. */
  117. wb977_wb(0x26, 0x40);
  118. /*
  119. * Power down FDC (not used)
  120. */
  121. wb977_wb(0x22, 0xfe);
  122. /*
  123. * GP12, GP11, CIRRX, IRRXH, GP10
  124. */
  125. wb977_wb(0x2a, 0xc1);
  126. /*
  127. * GP23, GP22, GP21, GP20, GP13
  128. */
  129. wb977_wb(0x2b, 0x6b);
  130. /*
  131. * GP17, GP16, GP15, GP14
  132. */
  133. wb977_wb(0x2c, 0x55);
  134. }
  135. /*
  136. * Initialise the Winbond W83977F printer port
  137. */
  138. static inline void wb977_init_printer(void)
  139. {
  140. wb977_device_select(1);
  141. /*
  142. * mode 1 == EPP
  143. */
  144. wb977_wb(0xf0, 0x01);
  145. }
  146. /*
  147. * Initialise the Winbond W83977F keyboard controller
  148. */
  149. static inline void wb977_init_keyboard(void)
  150. {
  151. wb977_device_select(5);
  152. /*
  153. * Keyboard controller address
  154. */
  155. wb977_ww(0x60, 0x0060);
  156. wb977_ww(0x62, 0x0064);
  157. /*
  158. * Keyboard IRQ 1, active high, edge trigger
  159. */
  160. wb977_wb(0x70, 1);
  161. wb977_wb(0x71, 0x02);
  162. /*
  163. * Mouse IRQ 5, active high, edge trigger
  164. */
  165. wb977_wb(0x72, 5);
  166. wb977_wb(0x73, 0x02);
  167. /*
  168. * KBC 8MHz
  169. */
  170. wb977_wb(0xf0, 0x40);
  171. /*
  172. * Enable device
  173. */
  174. wb977_device_enable();
  175. }
  176. /*
  177. * Initialise the Winbond W83977F Infra-Red device
  178. */
  179. static inline void wb977_init_irda(void)
  180. {
  181. wb977_device_select(6);
  182. /*
  183. * IR base address
  184. */
  185. wb977_ww(0x60, IRDA_IO_BASE);
  186. /*
  187. * IRDA IRQ 6, active high, edge trigger
  188. */
  189. wb977_wb(0x70, 6);
  190. wb977_wb(0x71, 0x02);
  191. /*
  192. * RX DMA - ISA DMA 0
  193. */
  194. wb977_wb(0x74, 0x00);
  195. /*
  196. * TX DMA - Disable Tx DMA
  197. */
  198. wb977_wb(0x75, 0x04);
  199. /*
  200. * Append CRC, Enable bank selection
  201. */
  202. wb977_wb(0xf0, 0x03);
  203. /*
  204. * Enable device
  205. */
  206. wb977_device_enable();
  207. }
  208. /*
  209. * Initialise Winbond W83977F general purpose IO
  210. */
  211. static inline void wb977_init_gpio(void)
  212. {
  213. unsigned long flags;
  214. /*
  215. * Set up initial I/O definitions
  216. */
  217. current_gpio_io = -1;
  218. __gpio_modify_io(-1, GPIO_DONE | GPIO_WDTIMER);
  219. wb977_device_select(7);
  220. /*
  221. * Group1 base address
  222. */
  223. wb977_ww(0x60, GP1_IO_BASE);
  224. wb977_ww(0x62, 0);
  225. wb977_ww(0x64, 0);
  226. /*
  227. * GP10 (Orage button) IRQ 10, active high, edge trigger
  228. */
  229. wb977_wb(0x70, 10);
  230. wb977_wb(0x71, 0x02);
  231. /*
  232. * GP10: Debounce filter enabled, IRQ, input
  233. */
  234. wb977_wb(0xe0, 0x19);
  235. /*
  236. * Enable Group1
  237. */
  238. wb977_device_enable();
  239. wb977_device_select(8);
  240. /*
  241. * Group2 base address
  242. */
  243. wb977_ww(0x60, GP2_IO_BASE);
  244. /*
  245. * Clear watchdog timer regs
  246. * - timer disable
  247. */
  248. wb977_wb(0xf2, 0x00);
  249. /*
  250. * - disable LED, no mouse nor keyboard IRQ
  251. */
  252. wb977_wb(0xf3, 0x00);
  253. /*
  254. * - timer counting, disable power LED, disable timeouot
  255. */
  256. wb977_wb(0xf4, 0x00);
  257. /*
  258. * Enable group2
  259. */
  260. wb977_device_enable();
  261. /*
  262. * Set Group1/Group2 outputs
  263. */
  264. raw_spin_lock_irqsave(&nw_gpio_lock, flags);
  265. nw_gpio_modify_op(-1, GPIO_RED_LED | GPIO_FAN);
  266. raw_spin_unlock_irqrestore(&nw_gpio_lock, flags);
  267. }
  268. /*
  269. * Initialise the Winbond W83977F chip.
  270. */
  271. static void __init wb977_init(void)
  272. {
  273. request_region(0x370, 2, "W83977AF configuration");
  274. /*
  275. * Open up the SuperIO chip
  276. */
  277. wb977_open();
  278. /*
  279. * Initialise the global registers
  280. */
  281. wb977_init_global();
  282. /*
  283. * Initialise the various devices in
  284. * the multi-IO chip.
  285. */
  286. wb977_init_printer();
  287. wb977_init_keyboard();
  288. wb977_init_irda();
  289. wb977_init_gpio();
  290. /*
  291. * Close up the EFER gate
  292. */
  293. wb977_close();
  294. }
  295. void nw_cpld_modify(unsigned int mask, unsigned int set)
  296. {
  297. int msk;
  298. current_cpld = (current_cpld & ~mask) | set;
  299. nw_gpio_modify_io(GPIO_DATA | GPIO_IOCLK | GPIO_IOLOAD, 0);
  300. nw_gpio_modify_op(GPIO_IOLOAD, 0);
  301. for (msk = 8; msk; msk >>= 1) {
  302. int bit = current_cpld & msk;
  303. nw_gpio_modify_op(GPIO_DATA | GPIO_IOCLK, bit ? GPIO_DATA : 0);
  304. nw_gpio_modify_op(GPIO_IOCLK, GPIO_IOCLK);
  305. }
  306. nw_gpio_modify_op(GPIO_IOCLK|GPIO_DATA, 0);
  307. nw_gpio_modify_op(GPIO_IOLOAD|GPIO_DSCLK, GPIO_IOLOAD|GPIO_DSCLK);
  308. nw_gpio_modify_op(GPIO_IOLOAD, 0);
  309. }
  310. EXPORT_SYMBOL(nw_cpld_modify);
  311. static void __init cpld_init(void)
  312. {
  313. unsigned long flags;
  314. raw_spin_lock_irqsave(&nw_gpio_lock, flags);
  315. nw_cpld_modify(-1, CPLD_UNMUTE | CPLD_7111_DISABLE);
  316. raw_spin_unlock_irqrestore(&nw_gpio_lock, flags);
  317. }
  318. static unsigned char rwa_unlock[] __initdata =
  319. { 0x00, 0x00, 0x6a, 0xb5, 0xda, 0xed, 0xf6, 0xfb, 0x7d, 0xbe, 0xdf, 0x6f, 0x37, 0x1b,
  320. 0x0d, 0x86, 0xc3, 0x61, 0xb0, 0x58, 0x2c, 0x16, 0x8b, 0x45, 0xa2, 0xd1, 0xe8, 0x74,
  321. 0x3a, 0x9d, 0xce, 0xe7, 0x73, 0x39 };
  322. #ifndef DEBUG
  323. #define dprintk(x...)
  324. #else
  325. #define dprintk(x...) printk(x)
  326. #endif
  327. #define WRITE_RWA(r,v) do { outb((r), 0x279); udelay(10); outb((v), 0xa79); } while (0)
  328. static inline void rwa010_unlock(void)
  329. {
  330. int i;
  331. WRITE_RWA(2, 2);
  332. mdelay(10);
  333. for (i = 0; i < sizeof(rwa_unlock); i++) {
  334. outb(rwa_unlock[i], 0x279);
  335. udelay(10);
  336. }
  337. }
  338. static inline void rwa010_read_ident(void)
  339. {
  340. unsigned char si[9];
  341. int i, j;
  342. WRITE_RWA(3, 0);
  343. WRITE_RWA(0, 128);
  344. outb(1, 0x279);
  345. mdelay(1);
  346. dprintk("Identifier: ");
  347. for (i = 0; i < 9; i++) {
  348. si[i] = 0;
  349. for (j = 0; j < 8; j++) {
  350. int bit;
  351. udelay(250);
  352. inb(0x203);
  353. udelay(250);
  354. bit = inb(0x203);
  355. dprintk("%02X ", bit);
  356. bit = (bit == 0xaa) ? 1 : 0;
  357. si[i] |= bit << j;
  358. }
  359. dprintk("(%02X) ", si[i]);
  360. }
  361. dprintk("\n");
  362. }
  363. static inline void rwa010_global_init(void)
  364. {
  365. WRITE_RWA(6, 2); // Assign a card no = 2
  366. dprintk("Card no = %d\n", inb(0x203));
  367. /* disable the modem section of the chip */
  368. WRITE_RWA(7, 3);
  369. WRITE_RWA(0x30, 0);
  370. /* disable the cdrom section of the chip */
  371. WRITE_RWA(7, 4);
  372. WRITE_RWA(0x30, 0);
  373. /* disable the MPU-401 section of the chip */
  374. WRITE_RWA(7, 2);
  375. WRITE_RWA(0x30, 0);
  376. }
  377. static inline void rwa010_game_port_init(void)
  378. {
  379. int i;
  380. WRITE_RWA(7, 5);
  381. dprintk("Slider base: ");
  382. WRITE_RWA(0x61, 1);
  383. i = inb(0x203);
  384. WRITE_RWA(0x60, 2);
  385. dprintk("%02X%02X (201)\n", inb(0x203), i);
  386. WRITE_RWA(0x30, 1);
  387. }
  388. static inline void rwa010_waveartist_init(int base, int irq, int dma)
  389. {
  390. int i;
  391. WRITE_RWA(7, 0);
  392. dprintk("WaveArtist base: ");
  393. WRITE_RWA(0x61, base & 255);
  394. i = inb(0x203);
  395. WRITE_RWA(0x60, base >> 8);
  396. dprintk("%02X%02X (%X),", inb(0x203), i, base);
  397. WRITE_RWA(0x70, irq);
  398. dprintk(" irq: %d (%d),", inb(0x203), irq);
  399. WRITE_RWA(0x74, dma);
  400. dprintk(" dma: %d (%d)\n", inb(0x203), dma);
  401. WRITE_RWA(0x30, 1);
  402. }
  403. static inline void rwa010_soundblaster_init(int sb_base, int al_base, int irq, int dma)
  404. {
  405. int i;
  406. WRITE_RWA(7, 1);
  407. dprintk("SoundBlaster base: ");
  408. WRITE_RWA(0x61, sb_base & 255);
  409. i = inb(0x203);
  410. WRITE_RWA(0x60, sb_base >> 8);
  411. dprintk("%02X%02X (%X),", inb(0x203), i, sb_base);
  412. dprintk(" irq: ");
  413. WRITE_RWA(0x70, irq);
  414. dprintk("%d (%d),", inb(0x203), irq);
  415. dprintk(" 8-bit DMA: ");
  416. WRITE_RWA(0x74, dma);
  417. dprintk("%d (%d)\n", inb(0x203), dma);
  418. dprintk("AdLib base: ");
  419. WRITE_RWA(0x63, al_base & 255);
  420. i = inb(0x203);
  421. WRITE_RWA(0x62, al_base >> 8);
  422. dprintk("%02X%02X (%X)\n", inb(0x203), i, al_base);
  423. WRITE_RWA(0x30, 1);
  424. }
  425. static void rwa010_soundblaster_reset(void)
  426. {
  427. int i;
  428. outb(1, 0x226);
  429. udelay(3);
  430. outb(0, 0x226);
  431. for (i = 0; i < 5; i++) {
  432. if (inb(0x22e) & 0x80)
  433. break;
  434. mdelay(1);
  435. }
  436. if (i == 5)
  437. printk("SoundBlaster: DSP reset failed\n");
  438. dprintk("SoundBlaster DSP reset: %02X (AA)\n", inb(0x22a));
  439. for (i = 0; i < 5; i++) {
  440. if ((inb(0x22c) & 0x80) == 0)
  441. break;
  442. mdelay(1);
  443. }
  444. if (i == 5)
  445. printk("SoundBlaster: DSP not ready\n");
  446. else {
  447. outb(0xe1, 0x22c);
  448. dprintk("SoundBlaster DSP id: ");
  449. i = inb(0x22a);
  450. udelay(1);
  451. i |= inb(0x22a) << 8;
  452. dprintk("%04X\n", i);
  453. for (i = 0; i < 5; i++) {
  454. if ((inb(0x22c) & 0x80) == 0)
  455. break;
  456. mdelay(1);
  457. }
  458. if (i == 5)
  459. printk("SoundBlaster: could not turn speaker off\n");
  460. outb(0xd3, 0x22c);
  461. }
  462. /* turn on OPL3 */
  463. outb(5, 0x38a);
  464. outb(1, 0x38b);
  465. }
  466. static void __init rwa010_init(void)
  467. {
  468. rwa010_unlock();
  469. rwa010_read_ident();
  470. rwa010_global_init();
  471. rwa010_game_port_init();
  472. rwa010_waveartist_init(0x250, 3, 7);
  473. rwa010_soundblaster_init(0x220, 0x388, 3, 1);
  474. rwa010_soundblaster_reset();
  475. }
  476. /*
  477. * Initialise any other hardware after we've got the PCI bus
  478. * initialised. We may need the PCI bus to talk to this other
  479. * hardware.
  480. */
  481. static int __init nw_hw_init(void)
  482. {
  483. if (machine_is_netwinder()) {
  484. wb977_init();
  485. cpld_init();
  486. rwa010_init();
  487. }
  488. return 0;
  489. }
  490. __initcall(nw_hw_init);
  491. /*
  492. * Older NeTTroms either do not provide a parameters
  493. * page, or they don't supply correct information in
  494. * the parameter page.
  495. */
  496. static void __init
  497. fixup_netwinder(struct tag *tags, char **cmdline)
  498. {
  499. #ifdef CONFIG_ISAPNP
  500. extern int isapnp_disable;
  501. /*
  502. * We must not use the kernels ISAPnP code
  503. * on the NetWinder - it will reset the settings
  504. * for the WaveArtist chip and render it inoperable.
  505. */
  506. isapnp_disable = 1;
  507. #endif
  508. }
  509. static void netwinder_restart(enum reboot_mode mode, const char *cmd)
  510. {
  511. if (mode == REBOOT_SOFT) {
  512. /* Jump into the ROM */
  513. soft_restart(0x41000000);
  514. } else {
  515. local_irq_disable();
  516. local_fiq_disable();
  517. /* open up the SuperIO chip */
  518. outb(0x87, 0x370);
  519. outb(0x87, 0x370);
  520. /* aux function group 1 (logical device 7) */
  521. outb(0x07, 0x370);
  522. outb(0x07, 0x371);
  523. /* set GP16 for WD-TIMER output */
  524. outb(0xe6, 0x370);
  525. outb(0x00, 0x371);
  526. /* set a RED LED and toggle WD_TIMER for rebooting */
  527. outb(0xc4, 0x338);
  528. }
  529. }
  530. /* LEDs */
  531. #if defined(CONFIG_NEW_LEDS) && defined(CONFIG_LEDS_CLASS)
  532. struct netwinder_led {
  533. struct led_classdev cdev;
  534. u8 mask;
  535. };
  536. /*
  537. * The triggers lines up below will only be used if the
  538. * LED triggers are compiled in.
  539. */
  540. static const struct {
  541. const char *name;
  542. const char *trigger;
  543. } netwinder_leds[] = {
  544. { "netwinder:green", "heartbeat", },
  545. { "netwinder:red", "cpu0", },
  546. };
  547. /*
  548. * The LED control in Netwinder is reversed:
  549. * - setting bit means turn off LED
  550. * - clearing bit means turn on LED
  551. */
  552. static void netwinder_led_set(struct led_classdev *cdev,
  553. enum led_brightness b)
  554. {
  555. struct netwinder_led *led = container_of(cdev,
  556. struct netwinder_led, cdev);
  557. unsigned long flags;
  558. u32 reg;
  559. raw_spin_lock_irqsave(&nw_gpio_lock, flags);
  560. reg = nw_gpio_read();
  561. if (b != LED_OFF)
  562. reg &= ~led->mask;
  563. else
  564. reg |= led->mask;
  565. nw_gpio_modify_op(led->mask, reg);
  566. raw_spin_unlock_irqrestore(&nw_gpio_lock, flags);
  567. }
  568. static enum led_brightness netwinder_led_get(struct led_classdev *cdev)
  569. {
  570. struct netwinder_led *led = container_of(cdev,
  571. struct netwinder_led, cdev);
  572. unsigned long flags;
  573. u32 reg;
  574. raw_spin_lock_irqsave(&nw_gpio_lock, flags);
  575. reg = nw_gpio_read();
  576. raw_spin_unlock_irqrestore(&nw_gpio_lock, flags);
  577. return (reg & led->mask) ? LED_OFF : LED_FULL;
  578. }
  579. static int __init netwinder_leds_init(void)
  580. {
  581. int i;
  582. if (!machine_is_netwinder())
  583. return -ENODEV;
  584. for (i = 0; i < ARRAY_SIZE(netwinder_leds); i++) {
  585. struct netwinder_led *led;
  586. led = kzalloc(sizeof(*led), GFP_KERNEL);
  587. if (!led)
  588. break;
  589. led->cdev.name = netwinder_leds[i].name;
  590. led->cdev.brightness_set = netwinder_led_set;
  591. led->cdev.brightness_get = netwinder_led_get;
  592. led->cdev.default_trigger = netwinder_leds[i].trigger;
  593. if (i == 0)
  594. led->mask = GPIO_GREEN_LED;
  595. else
  596. led->mask = GPIO_RED_LED;
  597. if (led_classdev_register(NULL, &led->cdev) < 0) {
  598. kfree(led);
  599. break;
  600. }
  601. }
  602. return 0;
  603. }
  604. /*
  605. * Since we may have triggers on any subsystem, defer registration
  606. * until after subsystem_init.
  607. */
  608. fs_initcall(netwinder_leds_init);
  609. #endif
  610. MACHINE_START(NETWINDER, "Rebel-NetWinder")
  611. /* Maintainer: Russell King/Rebel.com */
  612. .atag_offset = 0x100,
  613. .video_start = 0x000a0000,
  614. .video_end = 0x000bffff,
  615. .reserve_lp0 = 1,
  616. .reserve_lp2 = 1,
  617. .fixup = fixup_netwinder,
  618. .map_io = footbridge_map_io,
  619. .init_irq = footbridge_init_irq,
  620. .init_time = isa_timer_init,
  621. .restart = netwinder_restart,
  622. MACHINE_END