summaryrefslogtreecommitdiffstats
path: root/sys/arm/mv/mv_machdep.c
diff options
context:
space:
mode:
authorgber <gber@FreeBSD.org>2013-05-06 13:52:49 +0000
committergber <gber@FreeBSD.org>2013-05-06 13:52:49 +0000
commit4f72fc8977b479d330af0b34a62e66150bb92fc4 (patch)
tree47f51440f4ab2fc8ee34d4809597b7902f45a306 /sys/arm/mv/mv_machdep.c
parent8ead7d44b772a918360b0b6856e5b1c8ae17e074 (diff)
downloadFreeBSD-src-4f72fc8977b479d330af0b34a62e66150bb92fc4.zip
FreeBSD-src-4f72fc8977b479d330af0b34a62e66150bb92fc4.tar.gz
Initialize L2 cache for Armada XP.
Obtained from: Semihalf
Diffstat (limited to 'sys/arm/mv/mv_machdep.c')
-rw-r--r--sys/arm/mv/mv_machdep.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/arm/mv/mv_machdep.c b/sys/arm/mv/mv_machdep.c
index df2ca74..a487e39 100644
--- a/sys/arm/mv/mv_machdep.c
+++ b/sys/arm/mv/mv_machdep.c
@@ -61,6 +61,9 @@ __FBSDID("$FreeBSD$");
#include <dev/fdt/fdt_common.h>
static int platform_mpp_init(void);
+#if defined(SOC_MV_ARMADAXP)
+void armadaxp_l2_init(void);
+#endif
#define MPP_PIN_MAX 68
#define MPP_PIN_CELLS 2
@@ -233,6 +236,9 @@ initarm_late_init(void)
/* Disable watchdog and timers */
write_cpu_ctrl(CPU_TIMERS_BASE + CPU_TIMER_CONTROL, 0);
#endif
+#if defined(SOC_MV_ARMADAXP)
+ armadaxp_l2_init();
+#endif
}
#define FDT_DEVMAP_MAX (MV_WIN_CPU_MAX + 2)
OpenPOWER on IntegriCloud