]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
MIPS: allow override of get_tbclk()
authorAlex Nemirovsky <Alex.Nemirovsky@cortina-access.com>
Mon, 23 Dec 2019 20:53:56 +0000 (20:53 +0000)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Thu, 9 Apr 2020 16:55:59 +0000 (18:55 +0200)
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@cortina-access.com>
arch/mips/cpu/time.c

index a1508e3b8867d3cc9119386166779aa5ee662755..e0c1868b8c2a29df4777a3e9508da2bc19a54236 100644 (file)
@@ -13,7 +13,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;
 }