Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/rockchip/rk30xx_machdep.c
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | |||||
static platform_devmap_init_t rk30xx_devmap_init; | static platform_devmap_init_t rk30xx_devmap_init; | ||||
static platform_late_init_t rk30xx_late_init; | static platform_late_init_t rk30xx_late_init; | ||||
static platform_cpu_reset_t rk30xx_cpu_reset; | static platform_cpu_reset_t rk30xx_cpu_reset; | ||||
static void | static void | ||||
rk30xx_late_init(platform_t plat) | rk30xx_late_init(platform_t plat) | ||||
{ | { | ||||
/* XXX: Should this be run on all cpus? */ | |||||
if (curcpu != 0) | |||||
return; | |||||
/* Enable cache */ | /* Enable cache */ | ||||
cpufunc_control(CPU_CONTROL_DC_ENABLE|CPU_CONTROL_IC_ENABLE, | cpufunc_control(CPU_CONTROL_DC_ENABLE|CPU_CONTROL_IC_ENABLE, | ||||
CPU_CONTROL_DC_ENABLE|CPU_CONTROL_IC_ENABLE); | CPU_CONTROL_DC_ENABLE|CPU_CONTROL_IC_ENABLE); | ||||
} | } | ||||
/* | /* | ||||
* Set up static device mappings. | * Set up static device mappings. | ||||
*/ | */ | ||||
Show All 33 Lines |