diff options
44 files changed, 114 insertions, 209 deletions
diff --git a/arch/mips/au1000/common/setup.c b/arch/mips/au1000/common/setup.c index a95b37773196..b212c0726125 100644 --- a/arch/mips/au1000/common/setup.c +++ b/arch/mips/au1000/common/setup.c | |||
| @@ -50,7 +50,6 @@ extern void au1000_halt(void); | |||
| 50 | extern void au1000_power_off(void); | 50 | extern void au1000_power_off(void); |
| 51 | extern void au1x_time_init(void); | 51 | extern void au1x_time_init(void); |
| 52 | extern void au1x_timer_setup(struct irqaction *irq); | 52 | extern void au1x_timer_setup(struct irqaction *irq); |
| 53 | extern void au1xxx_time_init(void); | ||
| 54 | extern void set_cpuspec(void); | 53 | extern void set_cpuspec(void); |
| 55 | 54 | ||
| 56 | void __init plat_mem_setup(void) | 55 | void __init plat_mem_setup(void) |
| @@ -112,7 +111,6 @@ void __init plat_mem_setup(void) | |||
| 112 | _machine_restart = au1000_restart; | 111 | _machine_restart = au1000_restart; |
| 113 | _machine_halt = au1000_halt; | 112 | _machine_halt = au1000_halt; |
| 114 | pm_power_off = au1000_power_off; | 113 | pm_power_off = au1000_power_off; |
| 115 | board_time_init = au1xxx_time_init; | ||
| 116 | 114 | ||
| 117 | /* IO/MEM resources. */ | 115 | /* IO/MEM resources. */ |
| 118 | set_io_port_base(0); | 116 | set_io_port_base(0); |
diff --git a/arch/mips/au1000/common/time.c b/arch/mips/au1000/common/time.c index 8fc29982d700..fb1fd50f19a6 100644 --- a/arch/mips/au1000/common/time.c +++ b/arch/mips/au1000/common/time.c | |||
| @@ -329,7 +329,3 @@ void __init plat_timer_setup(struct irqaction *irq) | |||
| 329 | 329 | ||
| 330 | #endif | 330 | #endif |
| 331 | } | 331 | } |
| 332 | |||
| 333 | void __init au1xxx_time_init(void) | ||
| 334 | { | ||
| 335 | } | ||
diff --git a/arch/mips/basler/excite/excite_setup.c b/arch/mips/basler/excite/excite_setup.c index 56003188f17c..68be19d1802e 100644 --- a/arch/mips/basler/excite/excite_setup.c +++ b/arch/mips/basler/excite/excite_setup.c | |||
| @@ -68,7 +68,7 @@ DEFINE_SPINLOCK(titan_lock); | |||
| 68 | int titan_irqflags; | 68 | int titan_irqflags; |
| 69 | 69 | ||
| 70 | 70 | ||
| 71 | static void excite_timer_init(void) | 71 | void __init plat_time_init(void) |
| 72 | { | 72 | { |
| 73 | const u32 modebit5 = ocd_readl(0x00e4); | 73 | const u32 modebit5 = ocd_readl(0x00e4); |
| 74 | unsigned int | 74 | unsigned int |
| @@ -261,9 +261,6 @@ void __init plat_mem_setup(void) | |||
| 261 | /* Announce RAM to system */ | 261 | /* Announce RAM to system */ |
| 262 | add_memory_region(0x00000000, memsize, BOOT_MEM_RAM); | 262 | add_memory_region(0x00000000, memsize, BOOT_MEM_RAM); |
| 263 | 263 | ||
| 264 | /* Set up timer initialization hooks */ | ||
| 265 | board_time_init = excite_timer_init; | ||
| 266 | |||
| 267 | /* Set up the peripheral address map */ | 264 | /* Set up the peripheral address map */ |
| 268 | *(boot_ocd_base + (LKB9 / sizeof (u32))) = 0; | 265 | *(boot_ocd_base + (LKB9 / sizeof (u32))) = 0; |
| 269 | *(boot_ocd_base + (LKB10 / sizeof (u32))) = 0; | 266 | *(boot_ocd_base + (LKB10 / sizeof (u32))) = 0; |
diff --git a/arch/mips/bcm47xx/setup.c b/arch/mips/bcm47xx/setup.c index f48aa5aa9bf0..1b6b0fa5028f 100644 --- a/arch/mips/bcm47xx/setup.c +++ b/arch/mips/bcm47xx/setup.c | |||
| @@ -119,6 +119,5 @@ void __init plat_mem_setup(void) | |||
| 119 | _machine_restart = bcm47xx_machine_restart; | 119 | _machine_restart = bcm47xx_machine_restart; |
| 120 | _machine_halt = bcm47xx_machine_halt; | 120 | _machine_halt = bcm47xx_machine_halt; |
| 121 | pm_power_off = bcm47xx_machine_halt; | 121 | pm_power_off = bcm47xx_machine_halt; |
| 122 | board_time_init = bcm47xx_time_init; | ||
| 123 | } | 122 | } |
| 124 | 123 | ||
diff --git a/arch/mips/bcm47xx/time.c b/arch/mips/bcm47xx/time.c index b27d07f29059..0ab4676c8bd3 100644 --- a/arch/mips/bcm47xx/time.c +++ b/arch/mips/bcm47xx/time.c | |||
| @@ -28,8 +28,7 @@ | |||
| 28 | #include <asm/time.h> | 28 | #include <asm/time.h> |
| 29 | #include <bcm47xx.h> | 29 | #include <bcm47xx.h> |
| 30 | 30 | ||
| 31 | void __init | 31 | void __init plat_time_init(void) |
| 32 | bcm47xx_time_init(void) | ||
| 33 | { | 32 | { |
| 34 | unsigned long hz; | 33 | unsigned long hz; |
| 35 | 34 | ||
diff --git a/arch/mips/dec/setup.c b/arch/mips/dec/setup.c index 3e634f2f5443..bd5431e1f408 100644 --- a/arch/mips/dec/setup.c +++ b/arch/mips/dec/setup.c | |||
| @@ -145,13 +145,9 @@ static void __init dec_be_init(void) | |||
| 145 | } | 145 | } |
| 146 | } | 146 | } |
| 147 | 147 | ||
| 148 | |||
| 149 | extern void dec_time_init(void); | ||
| 150 | |||
| 151 | void __init plat_mem_setup(void) | 148 | void __init plat_mem_setup(void) |
| 152 | { | 149 | { |
| 153 | board_be_init = dec_be_init; | 150 | board_be_init = dec_be_init; |
| 154 | board_time_init = dec_time_init; | ||
| 155 | 151 | ||
| 156 | wbflush_setup(); | 152 | wbflush_setup(); |
| 157 | 153 | ||
diff --git a/arch/mips/dec/time.c b/arch/mips/dec/time.c index e2973a432b92..820e5331205f 100644 --- a/arch/mips/dec/time.c +++ b/arch/mips/dec/time.c | |||
| @@ -35,7 +35,7 @@ | |||
| 35 | #include <asm/dec/ioasic_addrs.h> | 35 | #include <asm/dec/ioasic_addrs.h> |
| 36 | #include <asm/dec/machtype.h> | 36 | #include <asm/dec/machtype.h> |
| 37 | 37 | ||
| 38 | static unsigned long dec_rtc_get_time(void) | 38 | unsigned long read_persistent_clock(void) |
| 39 | { | 39 | { |
| 40 | unsigned int year, mon, day, hour, min, sec, real_year; | 40 | unsigned int year, mon, day, hour, min, sec, real_year; |
| 41 | unsigned long flags; | 41 | unsigned long flags; |
| @@ -74,13 +74,13 @@ static unsigned long dec_rtc_get_time(void) | |||
| 74 | } | 74 | } |
| 75 | 75 | ||
| 76 | /* | 76 | /* |
| 77 | * In order to set the CMOS clock precisely, dec_rtc_set_mmss has to | 77 | * In order to set the CMOS clock precisely, rtc_mips_set_mmss has to |
| 78 | * be called 500 ms after the second nowtime has started, because when | 78 | * be called 500 ms after the second nowtime has started, because when |
| 79 | * nowtime is written into the registers of the CMOS clock, it will | 79 | * nowtime is written into the registers of the CMOS clock, it will |
| 80 | * jump to the next second precisely 500 ms later. Check the Dallas | 80 | * jump to the next second precisely 500 ms later. Check the Dallas |
| 81 | * DS1287 data sheet for details. | 81 | * DS1287 data sheet for details. |
| 82 | */ | ||
