[PATCH v1] MIPS: allow override of get_tbclk()

Alex Nemirovsky Alex.Nemirovsky at cortina-access.com
Mon Dec 23 21:53:56 CET 2019


Allow SoC or board layers with reconfigurable cpu clocks
capabilties to do implementation specific lookups and service
get_tbclk() requests.

Signed-off-by: Alex Nemirovsky <alex.nemirovsky at cortina-access.com>
---

 arch/mips/cpu/time.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/cpu/time.c b/arch/mips/cpu/time.c
index af324f7..33c9e88 100644
--- a/arch/mips/cpu/time.c
+++ b/arch/mips/cpu/time.c
@@ -12,7 +12,7 @@ unsigned long notrace timer_read_counter(void)
 	return read_c0_count();
 }
 
-ulong notrace get_tbclk(void)
+ulong notrace __weak get_tbclk(void)
 {
 	return CONFIG_SYS_MIPS_TIMER_FREQ;
 }
-- 
2.7.4



More information about the U-Boot mailing list