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

Allow SoC or board layers with reconfigurable cpu clocks capabilties to do implementation specific lookups and service get_tbclk() requests.
Alex Nemirovsky (1): MIPS: allow override of get_tbclk()
arch/mips/cpu/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

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

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.
participants (2)
-
Alex Nemirovsky
-
Daniel Schwierzeck