mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-02-28 02:01:50 +00:00
platform: generic: mips eyeq7h: synchronize timers across clusters
Use eyeq7 specific method to synchronously restart architectural mtimer and eyeq7h specific high-resolution timer with common hardware trigger. This ensures all timers are precisely in sync Signed-off-by: Vladimir Kondratiev <vladimir.kondratiev@mobileye.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260223-for-upstream-eyeq7h-v3-18-621d004d1a21@mobileye.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
committed by
Anup Patel
parent
a3aeef7c14
commit
2ca2e0caf0
@@ -147,6 +147,11 @@ extern const struct p8700_cm_info *p8700_cm_info;
|
||||
|
||||
/* CPC Block offsets */
|
||||
#define CPC_PWRUP_CTL 0x0030
|
||||
#define CPC_TIMECTL 0x0058
|
||||
#define TIMECTL_HARMED BIT(3)
|
||||
#define TIMECTL_HSTOP BIT(2)
|
||||
#define TIMECTL_MARMED BIT(1)
|
||||
#define TIMECTL_MSTOP BIT(0)
|
||||
#define CPC_HRTIME 0x0090
|
||||
#define CPC_CM_STAT_CONF 0x1008
|
||||
|
||||
|
||||
Reference in New Issue
Block a user