diff mbox series

[v1] MIPS: allow override of get_tbclk()

Message ID 1577134421-9202-2-git-send-email-alex.nemirovsky@cortina-access.com
State Accepted
Commit 47a1933aa738851ffde5770316ab0f8b47db753a
Delegated to: Daniel Schwierzeck
Headers show
Series [v1] MIPS: allow override of get_tbclk() | expand

Commit Message

Alex Nemirovsky Dec. 23, 2019, 8:53 p.m. UTC
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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Daniel Schwierzeck Jan. 8, 2020, 2:09 p.m. UTC | #1
Am 23.12.19 um 21:53 schrieb Alex Nemirovsky:
> 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 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

applied to u-boot-mips, thanks.
diff mbox series

Patch

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;
 }