Skip to contentSkip to conversation

MIPS: allow override of get_tbclk()

PATCH New Alex Nemirovsky 2 participants 3 messages Dec 23, 2019 – Jan 8, 2020 MIPS

lore
Share & tools
lore
#0 lore raw

cover 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(-)
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/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.

---

 arch/mips/cpu/time.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/cpu/time.c +1 -1
index af324f7..33c9e88 100644
@@ -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;
 }
Signature · 1 line
2.7.4
#2 lore raw

PATCH 1/1 MIPS: allow override of get_tbclk()

Am 23.12.19 um 21:53 schrieb Alex Nemirovsky:

Quoted 10 lines

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

---

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

applied to u-boot-mips, thanks.

Signature · 1 line
- Daniel