Changeset View
Changeset View
Standalone View
Standalone View
head/sys/arm/mv/armadaxp/armadaxp.c
Show First 20 Lines • Show All 130 Lines • ▼ Show 20 Lines | get_tclk(void) | ||||
cputype &= CPU_ID_CPU_MASK; | cputype &= CPU_ID_CPU_MASK; | ||||
if (cputype == CPU_ID_MV88SV584X_V7) | if (cputype == CPU_ID_MV88SV584X_V7) | ||||
return (TCLK_250MHZ); | return (TCLK_250MHZ); | ||||
else | else | ||||
return (TCLK_200MHZ); | return (TCLK_200MHZ); | ||||
} | } | ||||
uint32_t | |||||
get_cpu_freq(void) | |||||
{ | |||||
return (0); | |||||
} | |||||
static uint32_t | static uint32_t | ||||
count_l2clk(void) | count_l2clk(void) | ||||
{ | { | ||||
uint64_t sar_reg; | uint64_t sar_reg; | ||||
uint32_t freq_vco, freq_l2clk; | uint32_t freq_vco, freq_l2clk; | ||||
uint8_t sar_cpu_freq, sar_fab_freq, array_size; | uint8_t sar_cpu_freq, sar_fab_freq, array_size; | ||||
/* Get value of the SAR register and process it */ | /* Get value of the SAR register and process it */ | ||||
▲ Show 20 Lines • Show All 153 Lines • Show Last 20 Lines |