Add two new CPU specific definitions - the watchdog clock frequency and
the UART clock frequency. The AR933x and AR934x have separate PLL settings for these.
This commit is contained in:
parent
a36b76a787
commit
766c980a8b
@ -121,10 +121,14 @@ extern uint32_t u_ar71xx_refclk;
|
||||
extern uint32_t u_ar71xx_cpu_freq;
|
||||
extern uint32_t u_ar71xx_ahb_freq;
|
||||
extern uint32_t u_ar71xx_ddr_freq;
|
||||
extern uint32_t u_ar71xx_uart_freq;
|
||||
extern uint32_t u_ar71xx_wdt_freq;
|
||||
|
||||
static inline uint64_t ar71xx_refclk(void) { return u_ar71xx_refclk; }
|
||||
static inline uint64_t ar71xx_cpu_freq(void) { return u_ar71xx_cpu_freq; }
|
||||
static inline uint64_t ar71xx_ahb_freq(void) { return u_ar71xx_ahb_freq; }
|
||||
static inline uint64_t ar71xx_ddr_freq(void) { return u_ar71xx_ddr_freq; }
|
||||
|
||||
static inline uint64_t ar71xx_uart_freq(void) { return u_ar71xx_uart_freq; }
|
||||
static inline uint64_t ar71xx_wdt_freq(void) { return u_ar71xx_wdt_freq; }
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user