diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2007-10-24 10:16:56 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-01-29 05:14:55 -0500 |
commit | 8b6c2324bf2b023e26d53052bbcddcbf2f2c97ee (patch) | |
tree | bcf2ffec2908d61e40efe902508236aa73fad872 /arch/mips/tx4927/toshiba_rbtx4927 | |
parent | 619b6e18fce20e4b2d0082cde989f37e1be7b3e1 (diff) |
[MIPS] cleanup tx39/tx49 setup code
Remove some unnecessary codes, includes and files.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/tx4927/toshiba_rbtx4927')
-rw-r--r-- | arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_setup.c | 41 |
1 files changed, 4 insertions, 37 deletions
diff --git a/arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_setup.c b/arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_setup.c index 0299595ce1c4..c29a5283237b 100644 --- a/arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_setup.c +++ b/arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_setup.c | |||
@@ -45,27 +45,18 @@ | |||
45 | #include <linux/init.h> | 45 | #include <linux/init.h> |
46 | #include <linux/kernel.h> | 46 | #include <linux/kernel.h> |
47 | #include <linux/types.h> | 47 | #include <linux/types.h> |
48 | #include <linux/mm.h> | ||
49 | #include <linux/swap.h> | ||
50 | #include <linux/ioport.h> | 48 | #include <linux/ioport.h> |
51 | #include <linux/sched.h> | ||
52 | #include <linux/interrupt.h> | 49 | #include <linux/interrupt.h> |
53 | #include <linux/pci.h> | 50 | #include <linux/pci.h> |
54 | #include <linux/timex.h> | ||
55 | #include <linux/pm.h> | 51 | #include <linux/pm.h> |
56 | #include <linux/platform_device.h> | 52 | #include <linux/platform_device.h> |
57 | 53 | ||
58 | #include <asm/bootinfo.h> | 54 | #include <asm/bootinfo.h> |
59 | #include <asm/page.h> | ||
60 | #include <asm/io.h> | 55 | #include <asm/io.h> |
61 | #include <asm/irq.h> | ||
62 | #include <asm/irq_regs.h> | ||
63 | #include <asm/processor.h> | 56 | #include <asm/processor.h> |
64 | #include <asm/reboot.h> | 57 | #include <asm/reboot.h> |
65 | #include <asm/time.h> | 58 | #include <asm/time.h> |
66 | #include <asm/txx9tmr.h> | 59 | #include <asm/txx9tmr.h> |
67 | #include <linux/bootmem.h> | ||
68 | #include <linux/blkdev.h> | ||
69 | #ifdef CONFIG_TOSHIBA_FPCIB0 | 60 | #ifdef CONFIG_TOSHIBA_FPCIB0 |
70 | #include <asm/tx4927/smsc_fdc37m81x.h> | 61 | #include <asm/tx4927/smsc_fdc37m81x.h> |
71 | #endif | 62 | #endif |
@@ -73,42 +64,26 @@ | |||
73 | #ifdef CONFIG_PCI | 64 | #ifdef CONFIG_PCI |
74 | #include <asm/tx4927/tx4927_pci.h> | 65 | #include <asm/tx4927/tx4927_pci.h> |
75 | #endif | 66 | #endif |
76 | #ifdef CONFIG_BLK_DEV_IDEPCI | ||
77 | #include <linux/hdreg.h> | ||
78 | #include <linux/ide.h> | ||
79 | #endif | ||
80 | #ifdef CONFIG_SERIAL_TXX9 | 67 | #ifdef CONFIG_SERIAL_TXX9 |
81 | #include <linux/tty.h> | ||
82 | #include <linux/serial.h> | ||
83 | #include <linux/serial_core.h> | 68 | #include <linux/serial_core.h> |
84 | #endif | 69 | #endif |
85 | 70 | ||
86 | #undef TOSHIBA_RBTX4927_SETUP_DEBUG | 71 | #undef TOSHIBA_RBTX4927_SETUP_DEBUG |
87 | 72 | ||
88 | #ifdef TOSHIBA_RBTX4927_SETUP_DEBUG | 73 | #ifdef TOSHIBA_RBTX4927_SETUP_DEBUG |
89 | #define TOSHIBA_RBTX4927_SETUP_NONE 0x00000000 | ||
90 | |||
91 | #define TOSHIBA_RBTX4927_SETUP_INFO ( 1 << 0 ) | ||
92 | #define TOSHIBA_RBTX4927_SETUP_WARN ( 1 << 1 ) | ||
93 | #define TOSHIBA_RBTX4927_SETUP_EROR ( 1 << 2 ) | ||
94 | |||
95 | #define TOSHIBA_RBTX4927_SETUP_EFWFU ( 1 << 3 ) | ||
96 | #define TOSHIBA_RBTX4927_SETUP_SETUP ( 1 << 4 ) | 74 | #define TOSHIBA_RBTX4927_SETUP_SETUP ( 1 << 4 ) |
97 | #define TOSHIBA_RBTX4927_SETUP_PCIBIOS ( 1 << 7 ) | 75 | #define TOSHIBA_RBTX4927_SETUP_PCIBIOS ( 1 << 7 ) |
98 | #define TOSHIBA_RBTX4927_SETUP_PCI1 ( 1 << 8 ) | 76 | #define TOSHIBA_RBTX4927_SETUP_PCI1 ( 1 << 8 ) |
99 | #define TOSHIBA_RBTX4927_SETUP_PCI2 ( 1 << 9 ) | 77 | #define TOSHIBA_RBTX4927_SETUP_PCI2 ( 1 << 9 ) |
100 | #define TOSHIBA_RBTX4927_SETUP_PCI66 ( 1 << 10 ) | ||
101 | 78 | ||
102 | #define TOSHIBA_RBTX4927_SETUP_ALL 0xffffffff | 79 | #define TOSHIBA_RBTX4927_SETUP_ALL 0xffffffff |
103 | #endif | 80 | #endif |
104 | 81 | ||
105 | #ifdef TOSHIBA_RBTX4927_SETUP_DEBUG | 82 | #ifdef TOSHIBA_RBTX4927_SETUP_DEBUG |
106 | static const u32 toshiba_rbtx4927_setup_debug_flag = | 83 | static const u32 toshiba_rbtx4927_setup_debug_flag = |
107 | (TOSHIBA_RBTX4927_SETUP_NONE | TOSHIBA_RBTX4927_SETUP_INFO | | 84 | (TOSHIBA_RBTX4927_SETUP_SETUP | |
108 | TOSHIBA_RBTX4927_SETUP_WARN | TOSHIBA_RBTX4927_SETUP_EROR | | ||
109 | TOSHIBA_RBTX4927_SETUP_EFWFU | TOSHIBA_RBTX4927_SETUP_SETUP | | ||
110 | | TOSHIBA_RBTX4927_SETUP_PCIBIOS | TOSHIBA_RBTX4927_SETUP_PCI1 | | 85 | | TOSHIBA_RBTX4927_SETUP_PCIBIOS | TOSHIBA_RBTX4927_SETUP_PCI1 | |
111 | TOSHIBA_RBTX4927_SETUP_PCI2 | TOSHIBA_RBTX4927_SETUP_PCI66); | 86 | TOSHIBA_RBTX4927_SETUP_PCI2); |
112 | #endif | 87 | #endif |
113 | 88 | ||
114 | #ifdef TOSHIBA_RBTX4927_SETUP_DEBUG | 89 | #ifdef TOSHIBA_RBTX4927_SETUP_DEBUG |
@@ -718,7 +693,7 @@ void toshiba_rbtx4927_power_off(void) | |||
718 | /* no return */ | 693 | /* no return */ |
719 | } | 694 | } |
720 | 695 | ||
721 | void __init toshiba_rbtx4927_setup(void) | 696 | void __init plat_mem_setup(void) |
722 | { | 697 | { |
723 | int i; | 698 | int i; |
724 | u32 cp0_config; | 699 | u32 cp0_config; |
@@ -741,13 +716,6 @@ void __init toshiba_rbtx4927_setup(void) | |||
741 | cp0_config = cp0_config & ~(TX49_CONF_IC | TX49_CONF_DC); | 716 | cp0_config = cp0_config & ~(TX49_CONF_IC | TX49_CONF_DC); |
742 | write_c0_config(cp0_config); | 717 | write_c0_config(cp0_config); |
743 | 718 | ||
744 | #ifdef TOSHIBA_RBTX4927_SETUP_DEBUG | ||
745 | { | ||
746 | extern void dump_cp0(char *); | ||
747 | dump_cp0("toshiba_rbtx4927_early_fw_fixup"); | ||
748 | } | ||
749 | #endif | ||
750 | |||
751 | set_io_port_base(KSEG1 + TBTX4927_ISA_IO_OFFSET); | 719 | set_io_port_base(KSEG1 + TBTX4927_ISA_IO_OFFSET); |
752 | TOSHIBA_RBTX4927_SETUP_DPRINTK(TOSHIBA_RBTX4927_SETUP_SETUP, | 720 | TOSHIBA_RBTX4927_SETUP_DPRINTK(TOSHIBA_RBTX4927_SETUP_SETUP, |
753 | ":mips_io_port_base=0x%08lx\n", | 721 | ":mips_io_port_base=0x%08lx\n", |
@@ -936,8 +904,7 @@ void __init toshiba_rbtx4927_setup(void) | |||
936 | "+\n"); | 904 | "+\n"); |
937 | } | 905 | } |
938 | 906 | ||
939 | void __init | 907 | void __init plat_time_init(void) |
940 | toshiba_rbtx4927_time_init(void) | ||
941 | { | 908 | { |
942 | mips_hpt_frequency = tx4927_cpu_clock / 2; | 909 | mips_hpt_frequency = tx4927_cpu_clock / 2; |
943 | if (tx4927_ccfgptr->ccfg & TX4927_CCFG_TINTDIS) | 910 | if (tx4927_ccfgptr->ccfg & TX4927_CCFG_TINTDIS) |