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:
Hanjie Lin
2018-10-17 16:51:28 +08:00
parent c8439cdca0
commit 850405f42d
5 changed files with 9 additions and 4 deletions

View File

@@ -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>,

View File

@@ -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>,

View File

@@ -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>,

View File

@@ -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>,

View File

@@ -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);
}