aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/sh03/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/boards/sh03/setup.c')
-rw-r--r--arch/sh/boards/sh03/setup.c26
1 files changed, 11 insertions, 15 deletions
diff --git a/arch/sh/boards/sh03/setup.c b/arch/sh/boards/sh03/setup.c
index 7d31d6aed8a5..6c310587ddfe 100644
--- a/arch/sh/boards/sh03/setup.c
+++ b/arch/sh/boards/sh03/setup.c
@@ -13,12 +13,7 @@
13#include <asm/sh03/sh03.h> 13#include <asm/sh03/sh03.h>
14#include <asm/addrspace.h> 14#include <asm/addrspace.h>
15 15
16const char *get_system_type(void) 16static void __init init_sh03_IRQ(void)
17{
18 return "Interface (CTP/PCI-SH03)";
19}
20
21static void init_sh03_IRQ(void)
22{ 17{
23 ctrl_outw(ctrl_inw(INTC_ICR) | INTC_ICR_IRLM, INTC_ICR); 18 ctrl_outw(ctrl_inw(INTC_ICR) | INTC_ICR_IRLM, INTC_ICR);
24 19
@@ -41,7 +36,17 @@ static void __iomem *sh03_ioport_map(unsigned long port, unsigned int size)
41 return (void __iomem *)(port + PCI_IO_BASE); 36 return (void __iomem *)(port + PCI_IO_BASE);
42} 37}
43 38
39/* arch/sh/boards/sh03/rtc.c */
40void sh03_time_init(void);
41
42static void __init sh03_setup(char **cmdline_p)
43{
44 board_time_init = sh03_time_init;
45}
46
44struct sh_machine_vector mv_sh03 __initmv = { 47struct sh_machine_vector mv_sh03 __initmv = {
48 .mv_name = "Interface (CTP/PCI-SH03)",
49 .mv_setup = sh03_setup,
45 .mv_nr_irqs = 48, 50 .mv_nr_irqs = 48,
46 .mv_ioport_map = sh03_ioport_map, 51 .mv_ioport_map = sh03_ioport_map,
47 .mv_init_irq = init_sh03_IRQ, 52 .mv_init_irq = init_sh03_IRQ,
@@ -51,12 +56,3 @@ struct sh_machine_vector mv_sh03 __initmv = {
51#endif 56#endif
52}; 57};
53ALIAS_MV(sh03) 58ALIAS_MV(sh03)
54
55/* arch/sh/boards/sh03/rtc.c */
56void sh03_time_init(void);
57
58int __init platform_setup(void)
59{
60 board_time_init = sh03_time_init;
61 return 0;
62}