mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
[MIPS] SNI: register a02r clockevent; don't use PIT timer
Register A20R clockevent. Remove PIT timer setup because it doesn't work Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
f6a8cc31aa
commit
c9294022af
@ -1,6 +1,7 @@
|
|||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
#include <linux/interrupt.h>
|
#include <linux/interrupt.h>
|
||||||
#include <linux/time.h>
|
#include <linux/time.h>
|
||||||
|
#include <linux/clockchips.h>
|
||||||
|
|
||||||
#include <asm/i8253.h>
|
#include <asm/i8253.h>
|
||||||
#include <asm/sni.h>
|
#include <asm/sni.h>
|
||||||
@ -80,7 +81,7 @@ static void __init sni_a20r_timer_setup(void)
|
|||||||
unsigned int cpu = smp_processor_id();
|
unsigned int cpu = smp_processor_id();
|
||||||
|
|
||||||
cd->cpumask = cpumask_of_cpu(cpu);
|
cd->cpumask = cpumask_of_cpu(cpu);
|
||||||
|
clockevents_register_device(cd);
|
||||||
action->dev_id = cd;
|
action->dev_id = cd;
|
||||||
setup_irq(SNI_A20R_IRQ_TIMER, &a20r_irqaction);
|
setup_irq(SNI_A20R_IRQ_TIMER, &a20r_irqaction);
|
||||||
}
|
}
|
||||||
@ -169,8 +170,6 @@ void __init plat_time_init(void)
|
|||||||
|
|
||||||
mips_hpt_frequency = r4k_tick * HZ;
|
mips_hpt_frequency = r4k_tick * HZ;
|
||||||
|
|
||||||
setup_pit_timer();
|
|
||||||
|
|
||||||
switch (sni_brd_type) {
|
switch (sni_brd_type) {
|
||||||
case SNI_BRD_10:
|
case SNI_BRD_10:
|
||||||
case SNI_BRD_10NEW:
|
case SNI_BRD_10NEW:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user