setup.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. /*
  2. * Toshiba RBTX4939 setup routines.
  3. * Based on linux/arch/mips/txx9/rbtx4938/setup.c,
  4. * and RBTX49xx patch from CELF patch archive.
  5. *
  6. * Copyright (C) 2000-2001,2005-2007 Toshiba Corporation
  7. * 2003-2005 (c) MontaVista Software, Inc. This file is licensed under the
  8. * terms of the GNU General Public License version 2. This program is
  9. * licensed "as is" without any warranty of any kind, whether express
  10. * or implied.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/kernel.h>
  14. #include <linux/types.h>
  15. #include <linux/slab.h>
  16. #include <linux/export.h>
  17. #include <linux/platform_device.h>
  18. #include <linux/leds.h>
  19. #include <linux/interrupt.h>
  20. #include <linux/smc91x.h>
  21. #include <linux/mtd/mtd.h>
  22. #include <linux/mtd/partitions.h>
  23. #include <linux/mtd/map.h>
  24. #include <asm/reboot.h>
  25. #include <asm/txx9/generic.h>
  26. #include <asm/txx9/pci.h>
  27. #include <asm/txx9/rbtx4939.h>
  28. static void rbtx4939_machine_restart(char *command)
  29. {
  30. local_irq_disable();
  31. writeb(1, rbtx4939_reseten_addr);
  32. writeb(1, rbtx4939_softreset_addr);
  33. while (1)
  34. ;
  35. }
  36. static void __init rbtx4939_time_init(void)
  37. {
  38. tx4939_time_init(0);
  39. }
  40. #if defined(__BIG_ENDIAN) && IS_ENABLED(CONFIG_SMC91X)
  41. #define HAVE_RBTX4939_IOSWAB
  42. #define IS_CE1_ADDR(addr) \
  43. ((((unsigned long)(addr) - IO_BASE) & 0xfff00000) == TXX9_CE(1))
  44. static u16 rbtx4939_ioswabw(volatile u16 *a, u16 x)
  45. {
  46. return IS_CE1_ADDR(a) ? x : le16_to_cpu(x);
  47. }
  48. static u16 rbtx4939_mem_ioswabw(volatile u16 *a, u16 x)
  49. {
  50. return !IS_CE1_ADDR(a) ? x : le16_to_cpu(x);
  51. }
  52. #endif /* __BIG_ENDIAN && CONFIG_SMC91X */
  53. static void __init rbtx4939_pci_setup(void)
  54. {
  55. #ifdef CONFIG_PCI
  56. int extarb = !(__raw_readq(&tx4939_ccfgptr->ccfg) & TX4939_CCFG_PCIARB);
  57. struct pci_controller *c = &txx9_primary_pcic;
  58. register_pci_controller(c);
  59. tx4939_report_pciclk();
  60. tx4927_pcic_setup(tx4939_pcicptr, c, extarb);
  61. if (!(__raw_readq(&tx4939_ccfgptr->pcfg) & TX4939_PCFG_ATA1MODE) &&
  62. (__raw_readq(&tx4939_ccfgptr->pcfg) &
  63. (TX4939_PCFG_ET0MODE | TX4939_PCFG_ET1MODE))) {
  64. tx4939_report_pci1clk();
  65. /* mem:64K(max), io:64K(max) (enough for ETH0,ETH1) */
  66. c = txx9_alloc_pci_controller(NULL, 0, 0x10000, 0, 0x10000);
  67. register_pci_controller(c);
  68. tx4927_pcic_setup(tx4939_pcic1ptr, c, 0);
  69. }
  70. tx4939_setup_pcierr_irq();
  71. #endif /* CONFIG_PCI */
  72. }
  73. static unsigned long long default_ebccr[] __initdata = {
  74. 0x01c0000000007608ULL, /* 64M ROM */
  75. 0x017f000000007049ULL, /* 1M IOC */
  76. 0x0180000000408608ULL, /* ISA */
  77. 0,
  78. };
  79. static void __init rbtx4939_ebusc_setup(void)
  80. {
  81. int i;
  82. unsigned int sp;
  83. /* use user-configured speed */
  84. sp = TX4939_EBUSC_CR(0) & 0x30;
  85. default_ebccr[0] |= sp;
  86. default_ebccr[1] |= sp;
  87. default_ebccr[2] |= sp;
  88. /* initialise by myself */
  89. for (i = 0; i < ARRAY_SIZE(default_ebccr); i++) {
  90. if (default_ebccr[i])
  91. ____raw_writeq(default_ebccr[i],
  92. &tx4939_ebuscptr->cr[i]);
  93. else
  94. ____raw_writeq(____raw_readq(&tx4939_ebuscptr->cr[i])
  95. & ~8,
  96. &tx4939_ebuscptr->cr[i]);
  97. }
  98. }
  99. static void __init rbtx4939_update_ioc_pen(void)
  100. {
  101. __u64 pcfg = ____raw_readq(&tx4939_ccfgptr->pcfg);
  102. __u64 ccfg = ____raw_readq(&tx4939_ccfgptr->ccfg);
  103. __u8 pe1 = readb(rbtx4939_pe1_addr);
  104. __u8 pe2 = readb(rbtx4939_pe2_addr);
  105. __u8 pe3 = readb(rbtx4939_pe3_addr);
  106. if (pcfg & TX4939_PCFG_ATA0MODE)
  107. pe1 |= RBTX4939_PE1_ATA(0);
  108. else
  109. pe1 &= ~RBTX4939_PE1_ATA(0);
  110. if (pcfg & TX4939_PCFG_ATA1MODE) {
  111. pe1 |= RBTX4939_PE1_ATA(1);
  112. pe1 &= ~(RBTX4939_PE1_RMII(0) | RBTX4939_PE1_RMII(1));
  113. } else {
  114. pe1 &= ~RBTX4939_PE1_ATA(1);
  115. if (pcfg & TX4939_PCFG_ET0MODE)
  116. pe1 |= RBTX4939_PE1_RMII(0);
  117. else
  118. pe1 &= ~RBTX4939_PE1_RMII(0);
  119. if (pcfg & TX4939_PCFG_ET1MODE)
  120. pe1 |= RBTX4939_PE1_RMII(1);
  121. else
  122. pe1 &= ~RBTX4939_PE1_RMII(1);
  123. }
  124. if (ccfg & TX4939_CCFG_PTSEL)
  125. pe3 &= ~(RBTX4939_PE3_VP | RBTX4939_PE3_VP_P |
  126. RBTX4939_PE3_VP_S);
  127. else {
  128. __u64 vmode = pcfg &
  129. (TX4939_PCFG_VSSMODE | TX4939_PCFG_VPSMODE);
  130. if (vmode == 0)
  131. pe3 &= ~(RBTX4939_PE3_VP | RBTX4939_PE3_VP_P |
  132. RBTX4939_PE3_VP_S);
  133. else if (vmode == TX4939_PCFG_VPSMODE) {
  134. pe3 |= RBTX4939_PE3_VP_P;
  135. pe3 &= ~(RBTX4939_PE3_VP | RBTX4939_PE3_VP_S);
  136. } else if (vmode == TX4939_PCFG_VSSMODE) {
  137. pe3 |= RBTX4939_PE3_VP | RBTX4939_PE3_VP_S;
  138. pe3 &= ~RBTX4939_PE3_VP_P;
  139. } else {
  140. pe3 |= RBTX4939_PE3_VP | RBTX4939_PE3_VP_P;
  141. pe3 &= ~RBTX4939_PE3_VP_S;
  142. }
  143. }
  144. if (pcfg & TX4939_PCFG_SPIMODE) {
  145. if (pcfg & TX4939_PCFG_SIO2MODE_GPIO)
  146. pe2 &= ~(RBTX4939_PE2_SIO2 | RBTX4939_PE2_SIO0);
  147. else {
  148. if (pcfg & TX4939_PCFG_SIO2MODE_SIO2) {
  149. pe2 |= RBTX4939_PE2_SIO2;
  150. pe2 &= ~RBTX4939_PE2_SIO0;
  151. } else {
  152. pe2 |= RBTX4939_PE2_SIO0;
  153. pe2 &= ~RBTX4939_PE2_SIO2;
  154. }
  155. }
  156. if (pcfg & TX4939_PCFG_SIO3MODE)
  157. pe2 |= RBTX4939_PE2_SIO3;
  158. else
  159. pe2 &= ~RBTX4939_PE2_SIO3;
  160. pe2 &= ~RBTX4939_PE2_SPI;
  161. } else {
  162. pe2 |= RBTX4939_PE2_SPI;
  163. pe2 &= ~(RBTX4939_PE2_SIO3 | RBTX4939_PE2_SIO2 |
  164. RBTX4939_PE2_SIO0);
  165. }
  166. if ((pcfg & TX4939_PCFG_I2SMODE_MASK) == TX4939_PCFG_I2SMODE_GPIO)
  167. pe2 |= RBTX4939_PE2_GPIO;
  168. else
  169. pe2 &= ~RBTX4939_PE2_GPIO;
  170. writeb(pe1, rbtx4939_pe1_addr);
  171. writeb(pe2, rbtx4939_pe2_addr);
  172. writeb(pe3, rbtx4939_pe3_addr);
  173. }
  174. #define RBTX4939_MAX_7SEGLEDS 8
  175. #if IS_BUILTIN(CONFIG_LEDS_CLASS)
  176. static u8 led_val[RBTX4939_MAX_7SEGLEDS];
  177. struct rbtx4939_led_data {
  178. struct led_classdev cdev;
  179. char name[32];
  180. unsigned int num;
  181. };
  182. /* Use "dot" in 7seg LEDs */
  183. static void rbtx4939_led_brightness_set(struct led_classdev *led_cdev,
  184. enum led_brightness value)
  185. {
  186. struct rbtx4939_led_data *led_dat =
  187. container_of(led_cdev, struct rbtx4939_led_data, cdev);
  188. unsigned int num = led_dat->num;
  189. unsigned long flags;
  190. local_irq_save(flags);
  191. led_val[num] = (led_val[num] & 0x7f) | (value ? 0x80 : 0);
  192. writeb(led_val[num], rbtx4939_7seg_addr(num / 4, num % 4));
  193. local_irq_restore(flags);
  194. }
  195. static int __init rbtx4939_led_probe(struct platform_device *pdev)
  196. {
  197. struct rbtx4939_led_data *leds_data;
  198. int i;
  199. static char *default_triggers[] __initdata = {
  200. "heartbeat",
  201. "disk-activity",
  202. "nand-disk",
  203. };
  204. leds_data = kzalloc(sizeof(*leds_data) * RBTX4939_MAX_7SEGLEDS,
  205. GFP_KERNEL);
  206. if (!leds_data)
  207. return -ENOMEM;
  208. for (i = 0; i < RBTX4939_MAX_7SEGLEDS; i++) {
  209. int rc;
  210. struct rbtx4939_led_data *led_dat = &leds_data[i];
  211. led_dat->num = i;
  212. led_dat->cdev.brightness_set = rbtx4939_led_brightness_set;
  213. sprintf(led_dat->name, "rbtx4939:amber:%u", i);
  214. led_dat->cdev.name = led_dat->name;
  215. if (i < ARRAY_SIZE(default_triggers))
  216. led_dat->cdev.default_trigger = default_triggers[i];
  217. rc = led_classdev_register(&pdev->dev, &led_dat->cdev);
  218. if (rc < 0)
  219. return rc;
  220. led_dat->cdev.brightness_set(&led_dat->cdev, 0);
  221. }
  222. return 0;
  223. }
  224. static struct platform_driver rbtx4939_led_driver = {
  225. .driver = {
  226. .name = "rbtx4939-led",
  227. },
  228. };
  229. static void __init rbtx4939_led_setup(void)
  230. {
  231. platform_device_register_simple("rbtx4939-led", -1, NULL, 0);
  232. platform_driver_probe(&rbtx4939_led_driver, rbtx4939_led_probe);
  233. }
  234. #else
  235. static inline void rbtx4939_led_setup(void)
  236. {
  237. }
  238. #endif
  239. static void __rbtx4939_7segled_putc(unsigned int pos, unsigned char val)
  240. {
  241. #if IS_BUILTIN(CONFIG_LEDS_CLASS)
  242. unsigned long flags;
  243. local_irq_save(flags);
  244. /* bit7: reserved for LED class */
  245. led_val[pos] = (led_val[pos] & 0x80) | (val & 0x7f);
  246. val = led_val[pos];
  247. local_irq_restore(flags);
  248. #endif
  249. writeb(val, rbtx4939_7seg_addr(pos / 4, pos % 4));
  250. }
  251. static void rbtx4939_7segled_putc(unsigned int pos, unsigned char val)
  252. {
  253. /* convert from map_to_seg7() notation */
  254. val = (val & 0x88) |
  255. ((val & 0x40) >> 6) |
  256. ((val & 0x20) >> 4) |
  257. ((val & 0x10) >> 2) |
  258. ((val & 0x04) << 2) |
  259. ((val & 0x02) << 4) |
  260. ((val & 0x01) << 6);
  261. __rbtx4939_7segled_putc(pos, val);
  262. }
  263. #if IS_ENABLED(CONFIG_MTD_RBTX4939)
  264. /* special mapping for boot rom */
  265. static unsigned long rbtx4939_flash_fixup_ofs(unsigned long ofs)
  266. {
  267. u8 bdipsw = readb(rbtx4939_bdipsw_addr) & 0x0f;
  268. unsigned char shift;
  269. if (bdipsw & 8) {
  270. /* BOOT Mode: USER ROM1 / USER ROM2 */
  271. shift = bdipsw & 3;
  272. /* rotate A[23:22] */
  273. return (ofs & ~0xc00000) | ((((ofs >> 22) + shift) & 3) << 22);
  274. }
  275. #ifdef __BIG_ENDIAN
  276. if (bdipsw == 0)
  277. /* BOOT Mode: Monitor ROM */
  278. ofs ^= 0x400000; /* swap A[22] */
  279. #endif
  280. return ofs;
  281. }
  282. static map_word rbtx4939_flash_read16(struct map_info *map, unsigned long ofs)
  283. {
  284. map_word r;
  285. ofs = rbtx4939_flash_fixup_ofs(ofs);
  286. r.x[0] = __raw_readw(map->virt + ofs);
  287. return r;
  288. }
  289. static void rbtx4939_flash_write16(struct map_info *map, const map_word datum,
  290. unsigned long ofs)
  291. {
  292. ofs = rbtx4939_flash_fixup_ofs(ofs);
  293. __raw_writew(datum.x[0], map->virt + ofs);
  294. mb(); /* see inline_map_write() in mtd/map.h */
  295. }
  296. static void rbtx4939_flash_copy_from(struct map_info *map, void *to,
  297. unsigned long from, ssize_t len)
  298. {
  299. u8 bdipsw = readb(rbtx4939_bdipsw_addr) & 0x0f;
  300. unsigned char shift;
  301. ssize_t curlen;
  302. from += (unsigned long)map->virt;
  303. if (bdipsw & 8) {
  304. /* BOOT Mode: USER ROM1 / USER ROM2 */
  305. shift = bdipsw & 3;
  306. while (len) {
  307. curlen = min_t(unsigned long, len,
  308. 0x400000 - (from & (0x400000 - 1)));
  309. memcpy(to,
  310. (void *)((from & ~0xc00000) |
  311. ((((from >> 22) + shift) & 3) << 22)),
  312. curlen);
  313. len -= curlen;
  314. from += curlen;
  315. to += curlen;
  316. }
  317. return;
  318. }
  319. #ifdef __BIG_ENDIAN
  320. if (bdipsw == 0) {
  321. /* BOOT Mode: Monitor ROM */
  322. while (len) {
  323. curlen = min_t(unsigned long, len,
  324. 0x400000 - (from & (0x400000 - 1)));
  325. memcpy(to, (void *)(from ^ 0x400000), curlen);
  326. len -= curlen;
  327. from += curlen;
  328. to += curlen;
  329. }
  330. return;
  331. }
  332. #endif
  333. memcpy(to, (void *)from, len);
  334. }
  335. static void rbtx4939_flash_map_init(struct map_info *map)
  336. {
  337. map->read = rbtx4939_flash_read16;
  338. map->write = rbtx4939_flash_write16;
  339. map->copy_from = rbtx4939_flash_copy_from;
  340. }
  341. static void __init rbtx4939_mtd_init(void)
  342. {
  343. static struct {
  344. struct platform_device dev;
  345. struct resource res;
  346. struct rbtx4939_flash_data data;
  347. } pdevs[4];
  348. int i;
  349. static char names[4][8];
  350. static struct mtd_partition parts[4];
  351. struct rbtx4939_flash_data *boot_pdata = &pdevs[0].data;
  352. u8 bdipsw = readb(rbtx4939_bdipsw_addr) & 0x0f;
  353. if (bdipsw & 8) {
  354. /* BOOT Mode: USER ROM1 / USER ROM2 */
  355. boot_pdata->nr_parts = 4;
  356. for (i = 0; i < boot_pdata->nr_parts; i++) {
  357. sprintf(names[i], "img%d", 4 - i);
  358. parts[i].name = names[i];
  359. parts[i].size = 0x400000;
  360. parts[i].offset = MTDPART_OFS_NXTBLK;
  361. }
  362. } else if (bdipsw == 0) {
  363. /* BOOT Mode: Monitor ROM */
  364. boot_pdata->nr_parts = 2;
  365. strcpy(names[0], "big");
  366. strcpy(names[1], "little");
  367. for (i = 0; i < boot_pdata->nr_parts; i++) {
  368. parts[i].name = names[i];
  369. parts[i].size = 0x400000;
  370. parts[i].offset = MTDPART_OFS_NXTBLK;
  371. }
  372. } else {
  373. /* BOOT Mode: ROM Emulator */
  374. boot_pdata->nr_parts = 2;
  375. parts[0].name = "boot";
  376. parts[0].offset = 0xc00000;
  377. parts[0].size = 0x400000;
  378. parts[1].name = "user";
  379. parts[1].offset = 0;
  380. parts[1].size = 0xc00000;
  381. }
  382. boot_pdata->parts = parts;
  383. boot_pdata->map_init = rbtx4939_flash_map_init;
  384. for (i = 0; i < ARRAY_SIZE(pdevs); i++) {
  385. struct resource *r = &pdevs[i].res;
  386. struct platform_device *dev = &pdevs[i].dev;
  387. r->start = 0x1f000000 - i * 0x1000000;
  388. r->end = r->start + 0x1000000 - 1;
  389. r->flags = IORESOURCE_MEM;
  390. pdevs[i].data.width = 2;
  391. dev->num_resources = 1;
  392. dev->resource = r;
  393. dev->id = i;
  394. dev->name = "rbtx4939-flash";
  395. dev->dev.platform_data = &pdevs[i].data;
  396. platform_device_register(dev);
  397. }
  398. }
  399. #else
  400. static void __init rbtx4939_mtd_init(void)
  401. {
  402. }
  403. #endif
  404. static void __init rbtx4939_arch_init(void)
  405. {
  406. rbtx4939_pci_setup();
  407. }
  408. static void __init rbtx4939_device_init(void)
  409. {
  410. unsigned long smc_addr = RBTX4939_ETHER_ADDR - IO_BASE;
  411. struct resource smc_res[] = {
  412. {
  413. .start = smc_addr,
  414. .end = smc_addr + 0x10 - 1,
  415. .flags = IORESOURCE_MEM,
  416. }, {
  417. .start = RBTX4939_IRQ_ETHER,
  418. /* override default irq flag defined in smc91x.h */
  419. .flags = IORESOURCE_IRQ | IRQF_TRIGGER_LOW,
  420. },
  421. };
  422. struct smc91x_platdata smc_pdata = {
  423. .flags = SMC91X_USE_16BIT,
  424. };
  425. struct platform_device *pdev;
  426. #if IS_ENABLED(CONFIG_TC35815)
  427. int i, j;
  428. unsigned char ethaddr[2][6];
  429. u8 bdipsw = readb(rbtx4939_bdipsw_addr) & 0x0f;
  430. for (i = 0; i < 2; i++) {
  431. unsigned long area = CKSEG1 + 0x1fff0000 + (i * 0x10);
  432. if (bdipsw == 0)
  433. memcpy(ethaddr[i], (void *)area, 6);
  434. else {
  435. u16 buf[3];
  436. if (bdipsw & 8)
  437. area -= 0x03000000;
  438. else
  439. area -= 0x01000000;
  440. for (j = 0; j < 3; j++)
  441. buf[j] = le16_to_cpup((u16 *)(area + j * 2));
  442. memcpy(ethaddr[i], buf, 6);
  443. }
  444. }
  445. tx4939_ethaddr_init(ethaddr[0], ethaddr[1]);
  446. #endif
  447. pdev = platform_device_alloc("smc91x", -1);
  448. if (!pdev ||
  449. platform_device_add_resources(pdev, smc_res, ARRAY_SIZE(smc_res)) ||
  450. platform_device_add_data(pdev, &smc_pdata, sizeof(smc_pdata)) ||
  451. platform_device_add(pdev))
  452. platform_device_put(pdev);
  453. rbtx4939_mtd_init();
  454. /* TC58DVM82A1FT: tDH=10ns, tWP=tRP=tREADID=35ns */
  455. tx4939_ndfmc_init(10, 35,
  456. (1 << 1) | (1 << 2),
  457. (1 << 2)); /* ch1:8bit, ch2:16bit */
  458. rbtx4939_led_setup();
  459. tx4939_wdt_init();
  460. tx4939_ata_init();
  461. tx4939_rtc_init();
  462. tx4939_dmac_init(0, 2);
  463. tx4939_aclc_init();
  464. platform_device_register_simple("txx9aclc-generic", -1, NULL, 0);
  465. tx4939_sramc_init();
  466. tx4939_rng_init();
  467. }
  468. static void __init rbtx4939_setup(void)
  469. {
  470. int i;
  471. rbtx4939_ebusc_setup();
  472. /* always enable ATA0 */
  473. txx9_set64(&tx4939_ccfgptr->pcfg, TX4939_PCFG_ATA0MODE);
  474. if (txx9_master_clock == 0)
  475. txx9_master_clock = 20000000;
  476. tx4939_setup();
  477. rbtx4939_update_ioc_pen();
  478. #ifdef HAVE_RBTX4939_IOSWAB
  479. ioswabw = rbtx4939_ioswabw;
  480. __mem_ioswabw = rbtx4939_mem_ioswabw;
  481. #endif
  482. _machine_restart = rbtx4939_machine_restart;
  483. txx9_7segled_init(RBTX4939_MAX_7SEGLEDS, rbtx4939_7segled_putc);
  484. for (i = 0; i < RBTX4939_MAX_7SEGLEDS; i++)
  485. txx9_7segled_putc(i, '-');
  486. pr_info("RBTX4939 (Rev %02x) --- FPGA(Rev %02x) DIPSW:%02x,%02x\n",
  487. readb(rbtx4939_board_rev_addr), readb(rbtx4939_ioc_rev_addr),
  488. readb(rbtx4939_udipsw_addr), readb(rbtx4939_bdipsw_addr));
  489. #ifdef CONFIG_PCI
  490. txx9_alloc_pci_controller(&txx9_primary_pcic, 0, 0, 0, 0);
  491. txx9_board_pcibios_setup = tx4927_pcibios_setup;
  492. #else
  493. set_io_port_base(RBTX4939_ETHER_BASE);
  494. #endif
  495. tx4939_sio_init(TX4939_SCLK0(txx9_master_clock), 0);
  496. }
  497. struct txx9_board_vec rbtx4939_vec __initdata = {
  498. .system = "Toshiba RBTX4939",
  499. .prom_init = rbtx4939_prom_init,
  500. .mem_setup = rbtx4939_setup,
  501. .irq_setup = rbtx4939_irq_setup,
  502. .time_init = rbtx4939_time_init,
  503. .device_init = rbtx4939_device_init,
  504. .arch_init = rbtx4939_arch_init,
  505. #ifdef CONFIG_PCI
  506. .pci_map_irq = tx4939_pci_map_irq,
  507. #endif
  508. };