blob: 5c05a21b33f58c481eec5ff285b150729ed99bc5 [file] [log] [blame]
Ralf Baechle23fbee92005-07-25 22:45:45 +00001/*
Ralf Baechle23fbee92005-07-25 22:45:45 +00002 * Setup pointers to hardware-dependent routines.
3 * Copyright (C) 2000-2001 Toshiba Corporation
4 *
5 * 2003-2005 (c) MontaVista Software, Inc. This file is licensed under the
6 * terms of the GNU General Public License version 2. This program is
7 * licensed "as is" without any warranty of any kind, whether express
8 * or implied.
9 *
10 * Support for TX4938 in 2.6 - Manish Lachwani (mlachwani@mvista.com)
11 */
Ralf Baechle23fbee92005-07-25 22:45:45 +000012#include <linux/init.h>
13#include <linux/types.h>
14#include <linux/ioport.h>
Ralf Baechle23fbee92005-07-25 22:45:45 +000015#include <linux/delay.h>
Atsushi Nemoto57e386c2007-05-01 00:27:58 +090016#include <linux/platform_device.h>
Atsushi Nemoto4cad1542008-04-05 00:56:09 +090017#include <linux/gpio.h>
Ralf Baechlefcdb27a2006-01-18 17:37:07 +000018
Ralf Baechle23fbee92005-07-25 22:45:45 +000019#include <asm/reboot.h>
Ralf Baechle23fbee92005-07-25 22:45:45 +000020#include <asm/io.h>
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090021#include <asm/txx9/generic.h>
22#include <asm/txx9/pci.h>
Atsushi Nemoto22b1d702008-07-11 00:31:36 +090023#include <asm/txx9/rbtx4938.h>
Atsushi Nemotof74cf6f2007-06-22 23:22:06 +090024#include <linux/spi/spi.h>
Atsushi Nemoto22b1d702008-07-11 00:31:36 +090025#include <asm/txx9/spi.h>
Atsushi Nemoto4cad1542008-04-05 00:56:09 +090026#include <asm/txx9pio.h>
Ralf Baechle23fbee92005-07-25 22:45:45 +000027
Atsushi Nemoto7b226092008-07-14 00:15:04 +090028static void rbtx4938_machine_restart(char *command)
Ralf Baechle23fbee92005-07-25 22:45:45 +000029{
30 local_irq_disable();
Atsushi Nemoto66140c82008-04-14 21:49:07 +090031 writeb(1, rbtx4938_softresetlock_addr);
32 writeb(1, rbtx4938_sfvol_addr);
33 writeb(1, rbtx4938_softreset_addr);
Atsushi Nemotoa49297e2008-07-24 00:25:17 +090034 /* fallback */
35 (*_machine_halt)();
Ralf Baechle23fbee92005-07-25 22:45:45 +000036}
37
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090038static void __init rbtx4938_pci_setup(void)
Ralf Baechle23fbee92005-07-25 22:45:45 +000039{
Ralf Baechle23fbee92005-07-25 22:45:45 +000040#ifdef CONFIG_PCI
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090041 int extarb = !(__raw_readq(&tx4938_ccfgptr->ccfg) & TX4938_CCFG_PCIARB);
42 struct pci_controller *c = &txx9_primary_pcic;
Ralf Baechle23fbee92005-07-25 22:45:45 +000043
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090044 register_pci_controller(c);
Ralf Baechle23fbee92005-07-25 22:45:45 +000045
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090046 if (__raw_readq(&tx4938_ccfgptr->ccfg) & TX4938_CCFG_PCI66)
47 txx9_pci_option =
48 (txx9_pci_option & ~TXX9_PCI_OPT_CLK_MASK) |
49 TXX9_PCI_OPT_CLK_66; /* already configured */
Ralf Baechle23fbee92005-07-25 22:45:45 +000050
51 /* Reset PCI Bus */
Atsushi Nemoto66140c82008-04-14 21:49:07 +090052 writeb(0, rbtx4938_pcireset_addr);
Ralf Baechle23fbee92005-07-25 22:45:45 +000053 /* Reset PCIC */
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090054 txx9_set64(&tx4938_ccfgptr->clkctr, TX4938_CLKCTR_PCIRST);
55 if ((txx9_pci_option & TXX9_PCI_OPT_CLK_MASK) ==
56 TXX9_PCI_OPT_CLK_66)
Ralf Baechle23fbee92005-07-25 22:45:45 +000057 tx4938_pciclk66_setup();
58 mdelay(10);
59 /* clear PCIC reset */
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090060 txx9_clear64(&tx4938_ccfgptr->clkctr, TX4938_CLKCTR_PCIRST);
Atsushi Nemoto66140c82008-04-14 21:49:07 +090061 writeb(1, rbtx4938_pcireset_addr);
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090062 iob();
Ralf Baechle23fbee92005-07-25 22:45:45 +000063
64 tx4938_report_pciclk();
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090065 tx4927_pcic_setup(tx4938_pcicptr, c, extarb);
66 if ((txx9_pci_option & TXX9_PCI_OPT_CLK_MASK) ==
67 TXX9_PCI_OPT_CLK_AUTO &&
68 txx9_pci66_check(c, 0, 0)) {
Ralf Baechle23fbee92005-07-25 22:45:45 +000069 /* Reset PCI Bus */
Atsushi Nemoto66140c82008-04-14 21:49:07 +090070 writeb(0, rbtx4938_pcireset_addr);
Ralf Baechle23fbee92005-07-25 22:45:45 +000071 /* Reset PCIC */
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090072 txx9_set64(&tx4938_ccfgptr->clkctr, TX4938_CLKCTR_PCIRST);
Ralf Baechle23fbee92005-07-25 22:45:45 +000073 tx4938_pciclk66_setup();
74 mdelay(10);
75 /* clear PCIC reset */
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090076 txx9_clear64(&tx4938_ccfgptr->clkctr, TX4938_CLKCTR_PCIRST);
Atsushi Nemoto66140c82008-04-14 21:49:07 +090077 writeb(1, rbtx4938_pcireset_addr);
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090078 iob();
Ralf Baechle23fbee92005-07-25 22:45:45 +000079 /* Reinitialize PCIC */
80 tx4938_report_pciclk();
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090081 tx4927_pcic_setup(tx4938_pcicptr, c, extarb);
Ralf Baechle23fbee92005-07-25 22:45:45 +000082 }
83
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090084 if (__raw_readq(&tx4938_ccfgptr->pcfg) &
85 (TX4938_PCFG_ETH0_SEL|TX4938_PCFG_ETH1_SEL)) {
86 /* Reset PCIC1 */
87 txx9_set64(&tx4938_ccfgptr->clkctr, TX4938_CLKCTR_PCIC1RST);
88 /* PCI1DMD==0 => PCI1CLK==GBUSCLK/2 => PCI66 */
89 if (!(__raw_readq(&tx4938_ccfgptr->ccfg)
90 & TX4938_CCFG_PCI1DMD))
91 tx4938_ccfg_set(TX4938_CCFG_PCI1_66);
92 mdelay(10);
93 /* clear PCIC1 reset */
94 txx9_clear64(&tx4938_ccfgptr->clkctr, TX4938_CLKCTR_PCIC1RST);
95 tx4938_report_pci1clk();
Ralf Baechle23fbee92005-07-25 22:45:45 +000096
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090097 /* mem:64K(max), io:64K(max) (enough for ETH0,ETH1) */
98 c = txx9_alloc_pci_controller(NULL, 0, 0x10000, 0, 0x10000);
99 register_pci_controller(c);
100 tx4927_pcic_setup(tx4938_pcic1ptr, c, 0);
101 }
Atsushi Nemoto455cc252008-07-25 23:01:35 +0900102 tx4938_setup_pcierr_irq();
Ralf Baechle23fbee92005-07-25 22:45:45 +0000103#endif /* CONFIG_PCI */
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +0900104}
Ralf Baechle23fbee92005-07-25 22:45:45 +0000105
106/* SPI support */
107
108/* chip select for SPI devices */
109#define SEEPROM1_CS 7 /* PIO7 */
110#define SEEPROM2_CS 0 /* IOC */
111#define SEEPROM3_CS 1 /* IOC */
112#define SRTC_CS 2 /* IOC */
113
Atsushi Nemotof74cf6f2007-06-22 23:22:06 +0900114static int __init rbtx4938_ethaddr_init(void)
Ralf Baechle23fbee92005-07-25 22:45:45 +0000115{
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +0900116#ifdef CONFIG_PCI
Atsushi Nemoto2db30152007-07-02 22:43:06 +0900117 unsigned char dat[17];
Atsushi Nemotof74cf6f2007-06-22 23:22:06 +0900118 unsigned char sum;
119 int i;
120
121 /* 0-3: "MAC\0", 4-9:eth0, 10-15:eth1, 16:sum */
Atsushi Nemoto2db30152007-07-02 22:43:06 +0900122 if (spi_eeprom_read(SEEPROM1_CS, 0, dat, sizeof(dat))) {
Atsushi Nemotof74cf6f2007-06-22 23:22:06 +0900123 printk(KERN_ERR "seeprom: read error.\n");
Atsushi Nemoto2db30152007-07-02 22:43:06 +0900124 return -ENODEV;
125 } else {
Atsushi Nemotof74cf6f2007-06-22 23:22:06 +0900126 if (strcmp(dat, "MAC") != 0)
127 printk(KERN_WARNING "seeprom: bad signature.\n");
128 for (i = 0, sum = 0; i < sizeof(dat); i++)
129 sum += dat[i];
130 if (sum)
131 printk(KERN_WARNING "seeprom: bad checksum.\n");
Ralf Baechle23fbee92005-07-25 22:45:45 +0000132 }
Atsushi Nemotoc49f91f2008-07-24 00:25:20 +0900133 tx4938_ethaddr_init(&dat[4], &dat[4 + 6]);
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +0900134#endif /* CONFIG_PCI */
Ralf Baechle23fbee92005-07-25 22:45:45 +0000135 return 0;
136}
Ralf Baechle23fbee92005-07-25 22:45:45 +0000137
Ralf Baechle23fbee92005-07-25 22:45:45 +0000138static void __init rbtx4938_spi_setup(void)
139{
140 /* set SPI_SEL */
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +0900141 txx9_set64(&tx4938_ccfgptr->pcfg, TX4938_PCFG_SPI_SEL);
Ralf Baechle23fbee92005-07-25 22:45:45 +0000142}
143
144static struct resource rbtx4938_fpga_resource;
Ralf Baechle23fbee92005-07-25 22:45:45 +0000145
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +0900146static void __init rbtx4938_time_init(void)
Ralf Baechle23fbee92005-07-25 22:45:45 +0000147{
Atsushi Nemoto94a4c322008-07-19 01:51:47 +0900148 tx4938_time_init(0);
Ralf Baechle23fbee92005-07-25 22:45:45 +0000149}
150
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +0900151static void __init rbtx4938_mem_setup(void)
Ralf Baechle23fbee92005-07-25 22:45:45 +0000152{
153 unsigned long long pcfg;
154 char *argptr;
155
Ralf Baechle23fbee92005-07-25 22:45:45 +0000156 if (txx9_master_clock == 0)
157 txx9_master_clock = 25000000; /* 25MHz */
Atsushi Nemoto94a4c322008-07-19 01:51:47 +0900158
159 tx4938_setup();
160
161#ifdef CONFIG_PCI
162 txx9_alloc_pci_controller(&txx9_primary_pcic, 0, 0, 0, 0);
Atsushi Nemoto07517522008-07-24 00:25:15 +0900163 txx9_board_pcibios_setup = tx4927_pcibios_setup;
Atsushi Nemoto94a4c322008-07-19 01:51:47 +0900164#else
Ralf Baechle23fbee92005-07-25 22:45:45 +0000165 set_io_port_base(RBTX4938_ETHER_BASE);
166#endif
167
Atsushi Nemoto94a4c322008-07-19 01:51:47 +0900168 tx4938_setup_serial();
Ralf Baechle23fbee92005-07-25 22:45:45 +0000169#ifdef CONFIG_SERIAL_TXX9_CONSOLE
Atsushi Nemotobb72f1f2008-07-24 00:25:21 +0900170 argptr = prom_getcmdline();
171 if (!strstr(argptr, "console="))
172 strcat(argptr, " console=ttyS0,38400");
Ralf Baechle23fbee92005-07-25 22:45:45 +0000173#endif
Ralf Baechle23fbee92005-07-25 22:45:45 +0000174
175#ifdef CONFIG_TOSHIBA_RBTX4938_MPLEX_PIO58_61
Atsushi Nemotobb72f1f2008-07-24 00:25:21 +0900176 printk(KERN_INFO "PIOSEL: disabling both ata and nand selection\n");
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +0900177 txx9_clear64(&tx4938_ccfgptr->pcfg,
178 TX4938_PCFG_NDF_SEL | TX4938_PCFG_ATA_SEL);
Ralf Baechle23fbee92005-07-25 22:45:45 +0000179#endif
180
181#ifdef CONFIG_TOSHIBA_RBTX4938_MPLEX_NAND
Atsushi Nemotobb72f1f2008-07-24 00:25:21 +0900182 printk(KERN_INFO "PIOSEL: enabling nand selection\n");
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +0900183 txx9_set64(&tx4938_ccfgptr->pcfg, TX4938_PCFG_NDF_SEL);
184 txx9_clear64(&tx4938_ccfgptr->pcfg, TX4938_PCFG_ATA_SEL);
Ralf Baechle23fbee92005-07-25 22:45:45 +0000185#endif
186
187#ifdef CONFIG_TOSHIBA_RBTX4938_MPLEX_ATA
Atsushi Nemotobb72f1f2008-07-24 00:25:21 +0900188 printk(KERN_INFO "PIOSEL: enabling ata selection\n");
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +0900189 txx9_set64(&tx4938_ccfgptr->pcfg, TX4938_PCFG_ATA_SEL);
190 txx9_clear64(&tx4938_ccfgptr->pcfg, TX4938_PCFG_NDF_SEL);
Ralf Baechle23fbee92005-07-25 22:45:45 +0000191#endif
192
Ralf Baechle23fbee92005-07-25 22:45:45 +0000193 rbtx4938_spi_setup();
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +0900194 pcfg = ____raw_readq(&tx4938_ccfgptr->pcfg); /* updated */
Ralf Baechle23fbee92005-07-25 22:45:45 +0000195 /* fixup piosel */
196 if ((pcfg & (TX4938_PCFG_ATA_SEL | TX4938_PCFG_NDF_SEL)) ==
Atsushi Nemoto66140c82008-04-14 21:49:07 +0900197 TX4938_PCFG_ATA_SEL)
198 writeb((readb(rbtx4938_piosel_addr) & 0x03) | 0x04,
199 rbtx4938_piosel_addr);
Ralf Baechle23fbee92005-07-25 22:45:45 +0000200 else if ((pcfg & (TX4938_PCFG_ATA_SEL | TX4938_PCFG_NDF_SEL)) ==
Atsushi Nemoto66140c82008-04-14 21:49:07 +0900201 TX4938_PCFG_NDF_SEL)
202 writeb((readb(rbtx4938_piosel_addr) & 0x03) | 0x08,
203 rbtx4938_piosel_addr);
204 else
205 writeb(readb(rbtx4938_piosel_addr) & ~(0x08 | 0x04),
206 rbtx4938_piosel_addr);
Ralf Baechle23fbee92005-07-25 22:45:45 +0000207
208 rbtx4938_fpga_resource.name = "FPGA Registers";
209 rbtx4938_fpga_resource.start = CPHYSADDR(RBTX4938_FPGA_REG_ADDR);
210 rbtx4938_fpga_resource.end = CPHYSADDR(RBTX4938_FPGA_REG_ADDR) + 0xffff;
211 rbtx4938_fpga_resource.flags = IORESOURCE_MEM | IORESOURCE_BUSY;
Atsushi Nemoto8d795f22008-07-18 00:43:48 +0900212 if (request_resource(&txx9_ce_res[2], &rbtx4938_fpga_resource))
Atsushi Nemotobb72f1f2008-07-24 00:25:21 +0900213 printk(KERN_ERR "request resource for fpga failed\n");
Ralf Baechle23fbee92005-07-25 22:45:45 +0000214
Ralf Baechle23fbee92005-07-25 22:45:45 +0000215 _machine_restart = rbtx4938_machine_restart;
Ralf Baechle23fbee92005-07-25 22:45:45 +0000216
Atsushi Nemoto66140c82008-04-14 21:49:07 +0900217 writeb(0xff, rbtx4938_led_addr);
218 printk(KERN_INFO "RBTX4938 --- FPGA(Rev %02x) DIPSW:%02x,%02x\n",
219 readb(rbtx4938_fpga_rev_addr),
220 readb(rbtx4938_dipsw_addr), readb(rbtx4938_bdipsw_addr));
Ralf Baechle23fbee92005-07-25 22:45:45 +0000221}
222
Atsushi Nemotobb72f1f2008-07-24 00:25:21 +0900223static void __init rbtx4938_ne_init(void)
Atsushi Nemoto57e386c2007-05-01 00:27:58 +0900224{
225 struct resource res[] = {
226 {
227 .start = RBTX4938_RTL_8019_BASE,
228 .end = RBTX4938_RTL_8019_BASE + 0x20 - 1,
229 .flags = IORESOURCE_IO,
230 }, {
231 .start = RBTX4938_RTL_8019_IRQ,
232 .flags = IORESOURCE_IRQ,
233 }
234 };
Atsushi Nemotobb72f1f2008-07-24 00:25:21 +0900235 platform_device_register_simple("ne", -1, res, ARRAY_SIZE(res));
Atsushi Nemoto57e386c2007-05-01 00:27:58 +0900236}
Atsushi Nemoto3896b052007-06-22 23:21:55 +0900237
Atsushi Nemoto3896b052007-06-22 23:21:55 +0900238static DEFINE_SPINLOCK(rbtx4938_spi_gpio_lock);
239
Atsushi Nemoto4cad1542008-04-05 00:56:09 +0900240static void rbtx4938_spi_gpio_set(struct gpio_chip *chip, unsigned int offset,
241 int value)
Atsushi Nemoto3896b052007-06-22 23:21:55 +0900242{
243 u8 val;
244 unsigned long flags;
Atsushi Nemoto3896b052007-06-22 23:21:55 +0900245 spin_lock_irqsave(&rbtx4938_spi_gpio_lock, flags);
Atsushi Nemoto66140c82008-04-14 21:49:07 +0900246 val = readb(rbtx4938_spics_addr);
Atsushi Nemoto3896b052007-06-22 23:21:55 +0900247 if (value)
Atsushi Nemoto4cad1542008-04-05 00:56:09 +0900248 val |= 1 << offset;
Atsushi Nemoto3896b052007-06-22 23:21:55 +0900249 else
Atsushi Nemoto4cad1542008-04-05 00:56:09 +0900250 val &= ~(1 << offset);
Atsushi Nemoto66140c82008-04-14 21:49:07 +0900251 writeb(val, rbtx4938_spics_addr);
Atsushi Nemoto3896b052007-06-22 23:21:55 +0900252 mmiowb();
253 spin_unlock_irqrestore(&rbtx4938_spi_gpio_lock, flags);
254}
255
Atsushi Nemoto4cad1542008-04-05 00:56:09 +0900256static int rbtx4938_spi_gpio_dir_out(struct gpio_chip *chip,
257 unsigned int offset, int value)
Atsushi Nemoto3896b052007-06-22 23:21:55 +0900258{
Atsushi Nemoto4cad1542008-04-05 00:56:09 +0900259 rbtx4938_spi_gpio_set(chip, offset, value);
Atsushi Nemoto3896b052007-06-22 23:21:55 +0900260 return 0;
261}
262
Atsushi Nemoto4cad1542008-04-05 00:56:09 +0900263static struct gpio_chip rbtx4938_spi_gpio_chip = {
264 .set = rbtx4938_spi_gpio_set,
265 .direction_output = rbtx4938_spi_gpio_dir_out,
266 .label = "RBTX4938-SPICS",
267 .base = 16,
268 .ngpio = 3,
269};
Atsushi Nemotof74cf6f2007-06-22 23:22:06 +0900270
Atsushi Nemotof74cf6f2007-06-22 23:22:06 +0900271static int __init rbtx4938_spi_init(void)
272{
273 struct spi_board_info srtc_info = {
Atsushi Nemoto9f90a032007-08-19 22:32:10 +0900274 .modalias = "rtc-rs5c348",
Atsushi Nemotof74cf6f2007-06-22 23:22:06 +0900275 .max_speed_hz = 1000000, /* 1.0Mbps @ Vdd 2.0V */
276 .bus_num = 0,
277 .chip_select = 16 + SRTC_CS,
278 /* Mode 1 (High-Active, Shift-Then-Sample), High Avtive CS */
279 .mode = SPI_MODE_1 | SPI_CS_HIGH,
280 };
281 spi_register_board_info(&srtc_info, 1);
282 spi_eeprom_register(SEEPROM1_CS);
283 spi_eeprom_register(16 + SEEPROM2_CS);
284 spi_eeprom_register(16 + SEEPROM3_CS);
Atsushi Nemoto4cad1542008-04-05 00:56:09 +0900285 gpio_request(16 + SRTC_CS, "rtc-rs5c348");
286 gpio_direction_output(16 + SRTC_CS, 0);
287 gpio_request(SEEPROM1_CS, "seeprom1");
288 gpio_direction_output(SEEPROM1_CS, 1);
289 gpio_request(16 + SEEPROM2_CS, "seeprom2");
290 gpio_direction_output(16 + SEEPROM2_CS, 1);
291 gpio_request(16 + SEEPROM3_CS, "seeprom3");
292 gpio_direction_output(16 + SEEPROM3_CS, 1);
Atsushi Nemotoc49f91f2008-07-24 00:25:20 +0900293 tx4938_spi_init(0);
Atsushi Nemotof74cf6f2007-06-22 23:22:06 +0900294 return 0;
295}
Atsushi Nemoto4cad1542008-04-05 00:56:09 +0900296
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +0900297static void __init rbtx4938_arch_init(void)
Atsushi Nemoto4cad1542008-04-05 00:56:09 +0900298{
Atsushi Nemoto4cad1542008-04-05 00:56:09 +0900299 gpiochip_add(&rbtx4938_spi_gpio_chip);
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +0900300 rbtx4938_pci_setup();
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +0900301 rbtx4938_spi_init();
Atsushi Nemoto4cad1542008-04-05 00:56:09 +0900302}
Atsushi Nemotof74cf6f2007-06-22 23:22:06 +0900303
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +0900304static void __init rbtx4938_device_init(void)
Atsushi Nemotof74cf6f2007-06-22 23:22:06 +0900305{
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +0900306 rbtx4938_ethaddr_init();
307 rbtx4938_ne_init();
Atsushi Nemoto68314722008-07-24 00:25:18 +0900308 tx4938_wdt_init();
Atsushi Nemotof74cf6f2007-06-22 23:22:06 +0900309}
Atsushi Nemotof74cf6f2007-06-22 23:22:06 +0900310
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +0900311struct txx9_board_vec rbtx4938_vec __initdata = {
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +0900312 .system = "Toshiba RBTX4938",
313 .prom_init = rbtx4938_prom_init,
314 .mem_setup = rbtx4938_mem_setup,
315 .irq_setup = rbtx4938_irq_setup,
316 .time_init = rbtx4938_time_init,
317 .device_init = rbtx4938_device_init,
318 .arch_init = rbtx4938_arch_init,
319#ifdef CONFIG_PCI
320 .pci_map_irq = rbtx4938_pci_map_irq,
321#endif
322};