From 3b12308f3337c09b424a2b9cf73c2c06521abe7e Mon Sep 17 00:00:00 2001 From: Sergey Ryazanov Date: Wed, 29 Oct 2014 03:18:39 +0400 Subject: MIPS: ath25: add basic AR5312 SoC support Add basic support for Atheros AR5312/AR2312 SoCs: registers definition file and initial setup code. Signed-off-by: Sergey Ryazanov Cc: Linux MIPS Patchwork: https://patchwork.linux-mips.org/patch/8238/ Signed-off-by: Ralf Baechle --- arch/mips/ath25/board.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'arch/mips/ath25/board.c') diff --git a/arch/mips/ath25/board.c b/arch/mips/ath25/board.c index dd70327fd801..03baeceb3e35 100644 --- a/arch/mips/ath25/board.c +++ b/arch/mips/ath25/board.c @@ -16,6 +16,9 @@ #include #include +#include "devices.h" +#include "ar5312.h" + static void ath25_halt(void) { local_irq_disable(); @@ -27,6 +30,9 @@ void __init plat_mem_setup(void) _machine_halt = ath25_halt; pm_power_off = ath25_halt; + if (is_ar5312()) + ar5312_plat_mem_setup(); + /* Disable data watchpoints */ write_c0_watchlo0(0); } @@ -37,6 +43,8 @@ asmlinkage void plat_irq_dispatch(void) void __init plat_time_init(void) { + if (is_ar5312()) + ar5312_plat_time_init(); } unsigned int __cpuinit get_c0_compare_int(void) -- cgit