diff options
author | Stephan Gerhold <stephan@gerhold.net> | 2023-03-22 18:15:15 +0100 |
---|---|---|
committer | Manish V Badarkhe <manish.badarkhe@arm.com> | 2023-05-09 21:44:58 +0200 |
commit | 1781bf1c40594e3a3f36404da793d5c7a6bca533 (patch) | |
tree | 58ec0353f743382fac534cc927aed441b42ad819 | |
parent | d833af3ab50cd2cfecb8868c3d5340df1572f042 (diff) | |
download | arm-trusted-firmware-1781bf1c40594e3a3f36404da793d5c7a6bca533.tar.gz |
feat(msm8916): expose more timer frames
The memory-mapped generic timer on msm8916 has 7 timer frames, but
currently only one is exposed for usage in the non-secure world.
The platform port is currently only designed to be used as minimal PSCI
implementation, without secure world that could make use of the other
timer frames. Let's make all of them available to the normal world.
If needed this could still be changed later by reserving some timer
frames conditionally to a specific SPD being enabled in the build.
Change-Id: Ib59df16aa1fd3dbc875ab6369c133737830c98c6
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
-rw-r--r-- | plat/qti/msm8916/msm8916_bl31_setup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plat/qti/msm8916/msm8916_bl31_setup.c b/plat/qti/msm8916/msm8916_bl31_setup.c index d24fb349b..8cba5c521 100644 --- a/plat/qti/msm8916/msm8916_bl31_setup.c +++ b/plat/qti/msm8916/msm8916_bl31_setup.c @@ -119,8 +119,8 @@ static void msm8916_configure_timer(void) /* Set timer frequency */ mmio_write_32(APCS_QTMR + CNTCTLBASE_CNTFRQ, plat_get_syscnt_freq2()); - /* Make frame 0 available to non-secure world */ - mmio_write_32(APCS_QTMR + CNTNSAR, BIT_32(CNTNSAR_NS_SHIFT(0))); + /* Make all timer frames available to non-secure world */ + mmio_write_32(APCS_QTMR + CNTNSAR, GENMASK_32(7, 0)); } /* |