blob: 65b72247d320f01115965ee6969978c93d1a0182 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * Toshiba rbtx4927 specific setup
3 *
4 * Author: MontaVista Software, Inc.
5 * source@mvista.com
6 *
7 * Copyright 2001-2002 MontaVista Software Inc.
8 *
9 * Copyright (C) 1996, 97, 2001, 04 Ralf Baechle (ralf@linux-mips.org)
10 * Copyright (C) 2000 RidgeRun, Inc.
11 * Author: RidgeRun, Inc.
12 * glonnon@ridgerun.com, skranz@ridgerun.com, stevej@ridgerun.com
13 *
14 * Copyright 2001 MontaVista Software Inc.
15 * Author: jsun@mvista.com or jsun@junsun.net
16 *
17 * Copyright 2002 MontaVista Software Inc.
18 * Author: Michael Pruznick, michael_pruznick@mvista.com
19 *
20 * Copyright (C) 2000-2001 Toshiba Corporation
21 *
22 * Copyright (C) 2004 MontaVista Software Inc.
23 * Author: Manish Lachwani, mlachwani@mvista.com
24 *
25 * This program is free software; you can redistribute it and/or modify it
26 * under the terms of the GNU General Public License as published by the
27 * Free Software Foundation; either version 2 of the License, or (at your
28 * option) any later version.
29 *
30 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
31 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
32 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
33 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
34 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
35 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
36 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
37 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
38 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
39 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40 *
41 * You should have received a copy of the GNU General Public License along
42 * with this program; if not, write to the Free Software Foundation, Inc.,
43 * 675 Mass Ave, Cambridge, MA 02139, USA.
44 */
Linus Torvalds1da177e2005-04-16 15:20:36 -070045#include <linux/init.h>
46#include <linux/kernel.h>
47#include <linux/types.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070048#include <linux/ioport.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070049#include <linux/interrupt.h>
Ralf Baechlefcdb27a2006-01-18 17:37:07 +000050#include <linux/pm.h>
Atsushi Nemotoa0574e02007-03-01 00:40:21 +090051#include <linux/platform_device.h>
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090052#include <linux/delay.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070053#include <asm/io.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070054#include <asm/processor.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070055#include <asm/reboot.h>
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090056#include <asm/txx9/generic.h>
57#include <asm/txx9/pci.h>
Atsushi Nemoto22b1d702008-07-11 00:31:36 +090058#include <asm/txx9/rbtx4927.h>
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090059#include <asm/txx9/tx4938.h> /* for TX4937 */
Linus Torvalds1da177e2005-04-16 15:20:36 -070060
Linus Torvalds1da177e2005-04-16 15:20:36 -070061#ifdef CONFIG_PCI
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090062static void __init tx4927_pci_setup(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -070063{
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090064 int extarb = !(__raw_readq(&tx4927_ccfgptr->ccfg) & TX4927_CCFG_PCIARB);
65 struct pci_controller *c = &txx9_primary_pcic;
Linus Torvalds1da177e2005-04-16 15:20:36 -070066
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090067 register_pci_controller(c);
Linus Torvalds1da177e2005-04-16 15:20:36 -070068
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090069 if (__raw_readq(&tx4927_ccfgptr->ccfg) & TX4927_CCFG_PCI66)
70 txx9_pci_option =
71 (txx9_pci_option & ~TXX9_PCI_OPT_CLK_MASK) |
72 TXX9_PCI_OPT_CLK_66; /* already configured */
Linus Torvalds1da177e2005-04-16 15:20:36 -070073
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090074 /* Reset PCI Bus */
75 writeb(1, rbtx4927_pcireset_addr);
76 /* Reset PCIC */
77 txx9_set64(&tx4927_ccfgptr->clkctr, TX4927_CLKCTR_PCIRST);
78 if ((txx9_pci_option & TXX9_PCI_OPT_CLK_MASK) ==
79 TXX9_PCI_OPT_CLK_66)
80 tx4927_pciclk66_setup();
81 mdelay(10);
82 /* clear PCIC reset */
83 txx9_clear64(&tx4927_ccfgptr->clkctr, TX4927_CLKCTR_PCIRST);
84 writeb(0, rbtx4927_pcireset_addr);
85 iob();
Linus Torvalds1da177e2005-04-16 15:20:36 -070086
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +090087 tx4927_report_pciclk();
88 tx4927_pcic_setup(tx4927_pcicptr, c, extarb);
89 if ((txx9_pci_option & TXX9_PCI_OPT_CLK_MASK) ==
90 TXX9_PCI_OPT_CLK_AUTO &&
91 txx9_pci66_check(c, 0, 0)) {
92 /* Reset PCI Bus */
93 writeb(1, rbtx4927_pcireset_addr);
94 /* Reset PCIC */
95 txx9_set64(&tx4927_ccfgptr->clkctr, TX4927_CLKCTR_PCIRST);
96 tx4927_pciclk66_setup();
97 mdelay(10);
98 /* clear PCIC reset */
99 txx9_clear64(&tx4927_ccfgptr->clkctr, TX4927_CLKCTR_PCIRST);
100 writeb(0, rbtx4927_pcireset_addr);
101 iob();
102 /* Reinitialize PCIC */
103 tx4927_report_pciclk();
104 tx4927_pcic_setup(tx4927_pcicptr, c, extarb);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700105 }
Atsushi Nemoto455cc252008-07-25 23:01:35 +0900106 tx4927_setup_pcierr_irq();
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +0900107}
Linus Torvalds1da177e2005-04-16 15:20:36 -0700108
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +0900109static void __init tx4937_pci_setup(void)
110{
111 int extarb = !(__raw_readq(&tx4938_ccfgptr->ccfg) & TX4938_CCFG_PCIARB);
112 struct pci_controller *c = &txx9_primary_pcic;
113
114 register_pci_controller(c);
115
116 if (__raw_readq(&tx4938_ccfgptr->ccfg) & TX4938_CCFG_PCI66)
117 txx9_pci_option =
118 (txx9_pci_option & ~TXX9_PCI_OPT_CLK_MASK) |
119 TXX9_PCI_OPT_CLK_66; /* already configured */
120
121 /* Reset PCI Bus */
122 writeb(1, rbtx4927_pcireset_addr);
123 /* Reset PCIC */
124 txx9_set64(&tx4938_ccfgptr->clkctr, TX4938_CLKCTR_PCIRST);
125 if ((txx9_pci_option & TXX9_PCI_OPT_CLK_MASK) ==
126 TXX9_PCI_OPT_CLK_66)
127 tx4938_pciclk66_setup();
128 mdelay(10);
129 /* clear PCIC reset */
130 txx9_clear64(&tx4938_ccfgptr->clkctr, TX4938_CLKCTR_PCIRST);
131 writeb(0, rbtx4927_pcireset_addr);
132 iob();
133
134 tx4938_report_pciclk();
135 tx4927_pcic_setup(tx4938_pcicptr, c, extarb);
136 if ((txx9_pci_option & TXX9_PCI_OPT_CLK_MASK) ==
137 TXX9_PCI_OPT_CLK_AUTO &&
138 txx9_pci66_check(c, 0, 0)) {
139 /* Reset PCI Bus */
140 writeb(1, rbtx4927_pcireset_addr);
141 /* Reset PCIC */
142 txx9_set64(&tx4938_ccfgptr->clkctr, TX4938_CLKCTR_PCIRST);
143 tx4938_pciclk66_setup();
144 mdelay(10);
145 /* clear PCIC reset */
146 txx9_clear64(&tx4938_ccfgptr->clkctr, TX4938_CLKCTR_PCIRST);
147 writeb(0, rbtx4927_pcireset_addr);
148 iob();
149 /* Reinitialize PCIC */
150 tx4938_report_pciclk();
151 tx4927_pcic_setup(tx4938_pcicptr, c, extarb);
152 }
Atsushi Nemoto455cc252008-07-25 23:01:35 +0900153 tx4938_setup_pcierr_irq();
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +0900154}
155
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +0900156static void __init rbtx4927_arch_init(void)
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +0900157{
Yoichi Yuasaa38c4752008-07-13 20:01:04 +0900158 tx4927_pci_setup();
159}
160
161static void __init rbtx4937_arch_init(void)
162{
163 tx4937_pci_setup();
Linus Torvalds1da177e2005-04-16 15:20:36 -0700164}
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +0900165#else
166#define rbtx4927_arch_init NULL
Yoichi Yuasaa38c4752008-07-13 20:01:04 +0900167#define rbtx4937_arch_init NULL
Linus Torvalds1da177e2005-04-16 15:20:36 -0700168#endif /* CONFIG_PCI */
169
Atsushi Nemotoa02eb8d2007-08-28 00:28:09 +0900170static void __noreturn wait_forever(void)
171{
172 while (1)
173 if (cpu_wait)
174 (*cpu_wait)();
175}
176
Atsushi Nemoto7b226092008-07-14 00:15:04 +0900177static void toshiba_rbtx4927_restart(char *command)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700178{
179 printk(KERN_NOTICE "System Rebooting...\n");
180
181 /* enable the s/w reset register */
Atsushi Nemoto94a4c322008-07-19 01:51:47 +0900182 writeb(1, rbtx4927_softresetlock_addr);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700183
184 /* wait for enable to be seen */
Atsushi Nemoto94a4c322008-07-19 01:51:47 +0900185 while (!(readb(rbtx4927_softresetlock_addr) & 1))
186 ;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700187
188 /* do a s/w reset */
Atsushi Nemoto94a4c322008-07-19 01:51:47 +0900189 writeb(1, rbtx4927_softreset_addr);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700190
191 /* do something passive while waiting for reset */
192 local_irq_disable();
Atsushi Nemotoa02eb8d2007-08-28 00:28:09 +0900193 wait_forever();
Linus Torvalds1da177e2005-04-16 15:20:36 -0700194 /* no return */
195}
196
Atsushi Nemoto7b226092008-07-14 00:15:04 +0900197static void toshiba_rbtx4927_halt(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700198{
199 printk(KERN_NOTICE "System Halted\n");
200 local_irq_disable();
Atsushi Nemotoa02eb8d2007-08-28 00:28:09 +0900201 wait_forever();
Linus Torvalds1da177e2005-04-16 15:20:36 -0700202 /* no return */
203}
204
Atsushi Nemoto7b226092008-07-14 00:15:04 +0900205static void toshiba_rbtx4927_power_off(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700206{
207 toshiba_rbtx4927_halt();
208 /* no return */
209}
210
Atsushi Nemoto94a4c322008-07-19 01:51:47 +0900211static void __init rbtx4927_clock_init(void);
212static void __init rbtx4937_clock_init(void);
213
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +0900214static void __init rbtx4927_mem_setup(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700215{
Atsushi Nemotoa02eb8d2007-08-28 00:28:09 +0900216 u32 cp0_config;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700217 char *argptr;
218
Linus Torvalds1da177e2005-04-16 15:20:36 -0700219 /* f/w leaves this on at startup */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700220 clear_c0_status(ST0_ERL);
221
222 /* enable caches -- HCP5 does this, pmon does not */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700223 cp0_config = read_c0_config();
224 cp0_config = cp0_config & ~(TX49_CONF_IC | TX49_CONF_DC);
225 write_c0_config(cp0_config);
226
Atsushi Nemoto94a4c322008-07-19 01:51:47 +0900227 if (TX4927_REV_PCODE() == 0x4927) {
228 rbtx4927_clock_init();
229 tx4927_setup();
230 } else {
231 rbtx4937_clock_init();
232 tx4938_setup();
233 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700234
Linus Torvalds1da177e2005-04-16 15:20:36 -0700235 _machine_restart = toshiba_rbtx4927_restart;
236 _machine_halt = toshiba_rbtx4927_halt;
Ralf Baechlefcdb27a2006-01-18 17:37:07 +0000237 pm_power_off = toshiba_rbtx4927_power_off;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700238
239#ifdef CONFIG_PCI
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +0900240 txx9_alloc_pci_controller(&txx9_primary_pcic,
241 RBTX4927_PCIMEM, RBTX4927_PCIMEM_SIZE,
242 RBTX4927_PCIIO, RBTX4927_PCIIO_SIZE);
Atsushi Nemoto07517522008-07-24 00:25:15 +0900243 txx9_board_pcibios_setup = tx4927_pcibios_setup;
Atsushi Nemoto89d63fe2008-07-11 00:33:08 +0900244#else
245 set_io_port_base(KSEG1 + RBTX4927_ISA_IO_OFFSET);
246#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700247
Atsushi Nemoto94a4c322008-07-19 01:51:47 +0900248 tx4927_setup_serial();
Linus Torvalds1da177e2005-04-16 15:20:36 -0700249#ifdef CONFIG_SERIAL_TXX9_CONSOLE
250 argptr = prom_getcmdline();
251 if (strstr(argptr, "console=") == NULL) {
252 strcat(argptr, " console=ttyS0,38400");
253 }
254#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700255
256#ifdef CONFIG_ROOT_NFS
257 argptr = prom_getcmdline();
258 if (strstr(argptr, "root=") == NULL) {
259 strcat(argptr, " root=/dev/nfs rw");
260 }
261#endif
262
Linus Torvalds1da177e2005-04-16 15:20:36 -0700263#ifdef CONFIG_IP_PNP
264 argptr = prom_getcmdline();
265 if (strstr(argptr, "ip=") == NULL) {
266 strcat(argptr, " ip=any");
267 }
268#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700269}
270
Atsushi Nemoto94a4c322008-07-19 01:51:47 +0900271static void __init rbtx4927_clock_init(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700272{
Yoichi Yuasaa00fb662008-07-13 19:54:08 +0900273 /*
274 * ASSUMPTION: PCIDIVMODE is configured for PCI 33MHz or 66MHz.
275 *
276 * For TX4927:
277 * PCIDIVMODE[12:11]'s initial value is given by S9[4:3] (ON:0, OFF:1).
278 * CPU 166MHz: PCI 66MHz : PCIDIVMODE: 00 (1/2.5)
279 * CPU 200MHz: PCI 66MHz : PCIDIVMODE: 01 (1/3)
280 * CPU 166MHz: PCI 33MHz : PCIDIVMODE: 10 (1/5)
281 * CPU 200MHz: PCI 33MHz : PCIDIVMODE: 11 (1/6)
282 * i.e. S9[3]: ON (83MHz), OFF (100MHz)
Yoichi Yuasab6c40532008-07-13 20:02:13 +0900283 */
284 switch ((unsigned long)__raw_readq(&tx4927_ccfgptr->ccfg) &
285 TX4927_CCFG_PCIDIVMODE_MASK) {
286 case TX4927_CCFG_PCIDIVMODE_2_5:
287 case TX4927_CCFG_PCIDIVMODE_5:
288 txx9_cpu_clock = 166666666; /* 166MHz */
289 break;
290 default:
291 txx9_cpu_clock = 200000000; /* 200MHz */
292 }
Yoichi Yuasab6c40532008-07-13 20:02:13 +0900293}
294
Atsushi Nemoto94a4c322008-07-19 01:51:47 +0900295static void __init rbtx4937_clock_init(void)
Yoichi Yuasab6c40532008-07-13 20:02:13 +0900296{
297 /*
298 * ASSUMPTION: PCIDIVMODE is configured for PCI 33MHz or 66MHz.
Yoichi Yuasaa00fb662008-07-13 19:54:08 +0900299 *
300 * For TX4937:
301 * PCIDIVMODE[12:11]'s initial value is given by S1[5:4] (ON:0, OFF:1)
302 * PCIDIVMODE[10] is 0.
303 * CPU 266MHz: PCI 33MHz : PCIDIVMODE: 000 (1/8)
304 * CPU 266MHz: PCI 66MHz : PCIDIVMODE: 001 (1/4)
305 * CPU 300MHz: PCI 33MHz : PCIDIVMODE: 010 (1/9)
306 * CPU 300MHz: PCI 66MHz : PCIDIVMODE: 011 (1/4.5)
307 * CPU 333MHz: PCI 33MHz : PCIDIVMODE: 100 (1/10)
308 * CPU 333MHz: PCI 66MHz : PCIDIVMODE: 101 (1/5)
309 */
Yoichi Yuasab6c40532008-07-13 20:02:13 +0900310 switch ((unsigned long)__raw_readq(&tx4938_ccfgptr->ccfg) &
311 TX4938_CCFG_PCIDIVMODE_MASK) {
312 case TX4938_CCFG_PCIDIVMODE_8:
313 case TX4938_CCFG_PCIDIVMODE_4:
314 txx9_cpu_clock = 266666666; /* 266MHz */
315 break;
316 case TX4938_CCFG_PCIDIVMODE_9:
317 case TX4938_CCFG_PCIDIVMODE_4_5:
318 txx9_cpu_clock = 300000000; /* 300MHz */
319 break;
320 default:
321 txx9_cpu_clock = 333333333; /* 333MHz */
322 }
Atsushi Nemoto94a4c322008-07-19 01:51:47 +0900323}
Yoichi Yuasaa00fb662008-07-13 19:54:08 +0900324
Atsushi Nemoto94a4c322008-07-19 01:51:47 +0900325static void __init rbtx4927_time_init(void)
326{
327 tx4927_time_init(0);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700328}
329
Atsushi Nemotoa0574e02007-03-01 00:40:21 +0900330static int __init toshiba_rbtx4927_rtc_init(void)
331{
Atsushi Nemoto94a4c322008-07-19 01:51:47 +0900332 struct resource res = {
333 .start = RBTX4927_BRAMRTC_BASE - IO_BASE,
334 .end = RBTX4927_BRAMRTC_BASE - IO_BASE + 0x800 - 1,
Atsushi Nemotoa0574e02007-03-01 00:40:21 +0900335 .flags = IORESOURCE_MEM,
336 };
337 struct platform_device *dev =
Atsushi Nemotoa95e23a2007-10-16 01:28:18 -0700338 platform_device_register_simple("rtc-ds1742", -1, &res, 1);
Atsushi Nemotoa0574e02007-03-01 00:40:21 +0900339 return IS_ERR(dev) ? PTR_ERR(dev) : 0;
340}
Atsushi Nemoto57e386c2007-05-01 00:27:58 +0900341
342static int __init rbtx4927_ne_init(void)
343{
Atsushi Nemoto94a4c322008-07-19 01:51:47 +0900344 struct resource res[] = {
Atsushi Nemoto57e386c2007-05-01 00:27:58 +0900345 {
346 .start = RBTX4927_RTL_8019_BASE,
347 .end = RBTX4927_RTL_8019_BASE + 0x20 - 1,
348 .flags = IORESOURCE_IO,
349 }, {
350 .start = RBTX4927_RTL_8019_IRQ,
351 .flags = IORESOURCE_IRQ,
352 }
353 };
354 struct platform_device *dev =
355 platform_device_register_simple("ne", -1,
356 res, ARRAY_SIZE(res));
357 return IS_ERR(dev) ? PTR_ERR(dev) : 0;
358}
Atsushi Nemoto2064ba22007-11-24 01:20:27 +0900359
360/* Watchdog support */
361
362static int __init txx9_wdt_init(unsigned long base)
363{
364 struct resource res = {
365 .start = base,
366 .end = base + 0x100 - 1,
367 .flags = IORESOURCE_MEM,
368 };
369 struct platform_device *dev =
370 platform_device_register_simple("txx9wdt", -1, &res, 1);
371 return IS_ERR(dev) ? PTR_ERR(dev) : 0;
372}
373
374static int __init rbtx4927_wdt_init(void)
375{
376 return txx9_wdt_init(TX4927_TMR_REG(2) & 0xfffffffffULL);
377}
Atsushi Nemoto2064ba22007-11-24 01:20:27 +0900378
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +0900379static void __init rbtx4927_device_init(void)
Atsushi Nemoto2064ba22007-11-24 01:20:27 +0900380{
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +0900381 toshiba_rbtx4927_rtc_init();
382 rbtx4927_ne_init();
383 rbtx4927_wdt_init();
Atsushi Nemoto2064ba22007-11-24 01:20:27 +0900384}
Atsushi Nemoto2064ba22007-11-24 01:20:27 +0900385
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +0900386struct txx9_board_vec rbtx4927_vec __initdata = {
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +0900387 .system = "Toshiba RBTX4927",
388 .prom_init = rbtx4927_prom_init,
389 .mem_setup = rbtx4927_mem_setup,
390 .irq_setup = rbtx4927_irq_setup,
391 .time_init = rbtx4927_time_init,
392 .device_init = rbtx4927_device_init,
393 .arch_init = rbtx4927_arch_init,
394#ifdef CONFIG_PCI
395 .pci_map_irq = rbtx4927_pci_map_irq,
396#endif
397};
398struct txx9_board_vec rbtx4937_vec __initdata = {
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +0900399 .system = "Toshiba RBTX4937",
400 .prom_init = rbtx4927_prom_init,
401 .mem_setup = rbtx4927_mem_setup,
402 .irq_setup = rbtx4927_irq_setup,
Atsushi Nemoto94a4c322008-07-19 01:51:47 +0900403 .time_init = rbtx4927_time_init,
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +0900404 .device_init = rbtx4927_device_init,
Yoichi Yuasaa38c4752008-07-13 20:01:04 +0900405 .arch_init = rbtx4937_arch_init,
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +0900406#ifdef CONFIG_PCI
407 .pci_map_irq = rbtx4927_pci_map_irq,
408#endif
409};