setup.c 14 KB

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