[U-Boot] [PATCH 09/12] sunxi: H5: add COUNTER_FREQUENCY

Andre Przywara andre.przywara at arm.com
Fri Jan 13 02:30:01 CET 2017


For the arch timer to work properly, we need to setup the CNTFRQ
register, which is only possible in EL3.
Define the arch timer frequency in sun8i.h as well, so that ARMv8's
start.S can program the register correctly.

Signed-off-by: Andre Przywara <andre.przywara at arm.com>
---
 include/configs/sun8i.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/configs/sun8i.h b/include/configs/sun8i.h
index a4c3fb6..cbb7239 100644
--- a/include/configs/sun8i.h
+++ b/include/configs/sun8i.h
@@ -13,6 +13,8 @@
  * A23 specific configuration
  */
 
+#define COUNTER_FREQUENCY		CONFIG_TIMER_CLK_FREQ
+
 #ifdef CONFIG_USB_EHCI
 #define CONFIG_USB_EHCI_SUNXI
 #endif
-- 
2.8.2



More information about the U-Boot mailing list