]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(intel): fix sp_timer0 is not disabled in firewall on Agilex
authorJit Loon Lim <jit.loon.lim@intel.com>
Tue, 20 Sep 2022 02:41:37 +0000 (10:41 +0800)
committerSieu Mun Tang <sieu.mun.tang@intel.com>
Tue, 22 Nov 2022 15:55:02 +0000 (23:55 +0800)
sp_timer0 is not disabled in firewall on Agilex causing Zephyr is facing
issue to access the timer.

Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.com>
Change-Id: I0099e200d6c9ca435f46393c6ed9cbe387870af0

plat/intel/soc/common/soc/socfpga_firewall.c

index 515784bc98cdd237747c94fcbc88a5ab333d3c45..fc3889c78fda7348028406478a149142c2aa9193 100644 (file)
@@ -60,6 +60,7 @@ void enable_ns_peripheral_access(void)
        mmio_write_32(SOCFPGA_L4_PER_SCR(I2C3), DISABLE_L4_FIREWALL);
        mmio_write_32(SOCFPGA_L4_PER_SCR(I2C4), DISABLE_L4_FIREWALL);
 
+       mmio_write_32(SOCFPGA_L4_PER_SCR(SP_TIMER0), DISABLE_L4_FIREWALL);
        mmio_write_32(SOCFPGA_L4_PER_SCR(SP_TIMER1), DISABLE_L4_FIREWALL);
 
        mmio_write_32(SOCFPGA_L4_PER_SCR(UART0), DISABLE_L4_FIREWALL);