netwinder-hw.c 14 KB

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