Changeset View
Changeset View
Standalone View
Standalone View
head/sys/arm/mv/mv_machdep.c
Show First 20 Lines • Show All 279 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
void | void | ||||
platform_late_init(void) | platform_late_init(void) | ||||
{ | { | ||||
/* | /* | ||||
* Re-initialise decode windows | * Re-initialise decode windows | ||||
*/ | */ | ||||
if (mv_check_soc_family() == MV_SOC_UNSUPPORTED) | |||||
panic("Unsupported SoC family\n"); | |||||
if (soc_decode_win() != 0) | if (soc_decode_win() != 0) | ||||
printf("WARNING: could not re-initialise decode windows! " | printf("WARNING: could not re-initialise decode windows! " | ||||
"Running with existing settings...\n"); | "Running with existing settings...\n"); | ||||
#if defined(SOC_MV_ARMADAXP) | #if defined(SOC_MV_ARMADAXP) | ||||
#if !defined(SMP) | #if !defined(SMP) | ||||
/* For SMP case it should be initialized after APs are booted */ | /* For SMP case it should be initialized after APs are booted */ | ||||
armadaxp_init_coher_fabric(); | armadaxp_init_coher_fabric(); | ||||
#endif | #endif | ||||
Show All 22 Lines | if (armada38x_scu_enable() != 0) | ||||
printf("WARNING: could not enable SCU\n"); | printf("WARNING: could not enable SCU\n"); | ||||
#ifdef SMP | #ifdef SMP | ||||
/* Open window to bootROM memory - needed for SMP */ | /* Open window to bootROM memory - needed for SMP */ | ||||
if (armada38x_open_bootrom_win() != 0) | if (armada38x_open_bootrom_win() != 0) | ||||
printf("WARNING: could not open window to bootROM\n"); | printf("WARNING: could not open window to bootROM\n"); | ||||
#endif | #endif | ||||
#endif | #endif | ||||
} | } | ||||
#if defined(SOC_MV_ARMADAXP) || defined(SOC_MV_ARMADA38X) | |||||
#define FDT_DEVMAP_MAX (MV_WIN_CPU_MAX_ARMV7 + 2) | |||||
#else | |||||
#define FDT_DEVMAP_MAX (MV_WIN_CPU_MAX + 2) | #define FDT_DEVMAP_MAX (MV_WIN_CPU_MAX + 2) | ||||
#endif | |||||
static struct devmap_entry fdt_devmap[FDT_DEVMAP_MAX] = { | static struct devmap_entry fdt_devmap[FDT_DEVMAP_MAX] = { | ||||
{ 0, 0, 0, } | { 0, 0, 0, } | ||||
}; | }; | ||||
static int | static int | ||||
platform_sram_devmap(struct devmap_entry *map) | platform_sram_devmap(struct devmap_entry *map) | ||||
{ | { | ||||
#if !defined(SOC_MV_ARMADAXP) && !defined(SOC_MV_ARMADA38X) | #if !defined(SOC_MV_ARMADAXP) && !defined(SOC_MV_ARMADA38X) | ||||
▲ Show 20 Lines • Show All 220 Lines • Show Last 20 Lines |