mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-24 19:40:21 +09:00
dts: aarch32: modify timer for aarch32 [1/1]
PD#SWPL-663 Problem: 32bit_kernel VtsKernelLinuxKselftest module 1 fail can't find __vdso_gettimeofday Solution: modify timer for aarch32 Verify: p212 boot normal Change-Id: Id7a6f656eabf5230dcd60f6c25f39419577bba64 Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
This commit is contained in:
@@ -101,7 +101,7 @@
|
||||
};
|
||||
|
||||
timer {
|
||||
compatible = "arm,armv8-timer";
|
||||
compatible = "arm,armv7-timer";
|
||||
interrupts = <GIC_PPI 13 0xff08>,
|
||||
<GIC_PPI 14 0xff08>,
|
||||
<GIC_PPI 11 0xff08>,
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
};
|
||||
|
||||
timer {
|
||||
compatible = "arm,armv8-timer";
|
||||
compatible = "arm,armv7-timer";
|
||||
interrupts = <GIC_PPI 13 0xff08>,
|
||||
<GIC_PPI 14 0xff08>,
|
||||
<GIC_PPI 11 0xff08>,
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
};
|
||||
|
||||
timer {
|
||||
compatible = "arm,armv8-timer";
|
||||
compatible = "arm,armv7-timer";
|
||||
interrupts = <GIC_PPI 13 0xff08>,
|
||||
<GIC_PPI 14 0xff08>,
|
||||
<GIC_PPI 11 0xff08>,
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
};
|
||||
|
||||
timer {
|
||||
compatible = "arm,armv8-timer";
|
||||
compatible = "arm,armv7-timer";
|
||||
interrupts = <GIC_PPI 13 0xff01>,
|
||||
<GIC_PPI 14 0xff01>,
|
||||
<GIC_PPI 11 0xff01>,
|
||||
|
||||
@@ -454,6 +454,11 @@ static void arch_counter_set_user_access(void)
|
||||
else
|
||||
cntkctl &= ~ARCH_TIMER_USR_VCT_ACCESS_EN;
|
||||
|
||||
#ifdef CONFIG_AMLOGIC_MODIFY
|
||||
/* Enable user access to the phyical counter for __vdso_gettimeofday */
|
||||
cntkctl |= ARCH_TIMER_USR_PCT_ACCESS_EN;
|
||||
#endif
|
||||
|
||||
arch_timer_set_cntkctl(cntkctl);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user