[rpi3][bcm28xx][timer] Fix BCM2837 timer runing too fast.
RPi3/BCM2837 timer was previously running too fast due to an improper multiplier in arm_generic_timer_init(...). Fixed by setting the multiplier to 0 and allowing the ARM generic timer code to determine the frequency and compute the appropriate multiplier.
This commit is contained in:
@@ -128,9 +128,9 @@ void platform_early_init(void)
|
||||
|
||||
intc_init();
|
||||
|
||||
arm_generic_timer_init(INTERRUPT_ARM_LOCAL_CNTPNSIRQ, 1000000);
|
||||
|
||||
#if BCM2837
|
||||
arm_generic_timer_init(INTERRUPT_ARM_LOCAL_CNTPNSIRQ, 0);
|
||||
|
||||
/* look for a flattened device tree just before the kernel */
|
||||
const void *fdt = (void *)KERNEL_BASE;
|
||||
int err = fdt_check_header(fdt);
|
||||
@@ -173,6 +173,10 @@ void platform_early_init(void)
|
||||
}
|
||||
}
|
||||
|
||||
#elif BCM2836
|
||||
arm_generic_timer_init(INTERRUPT_ARM_LOCAL_CNTPNSIRQ, 1000000);
|
||||
#else
|
||||
#error Unknown BCM28XX Variant
|
||||
#endif
|
||||
|
||||
/* add the main memory arena */
|
||||
|
||||
Reference in New Issue
Block a user