summaryrefslogtreecommitdiffstats
path: root/arch/mips/ath25/board.c
diff options
context:
space:
mode:
authorSergey Ryazanov <ryazanov.s.a@gmail.com>2014-10-29 00:18:39 +0100
committerRalf Baechle <ralf@linux-mips.org>2014-11-24 07:45:26 +0100
commit3b12308f3337c09b424a2b9cf73c2c06521abe7e (patch)
tree05c5ac8b34e1036d1d340a7817f92452a5dd3da9 /arch/mips/ath25/board.c
parentMIPS: ath25: add common parts (diff)
downloadlinux-3b12308f3337c09b424a2b9cf73c2c06521abe7e.tar.xz
linux-3b12308f3337c09b424a2b9cf73c2c06521abe7e.zip
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 <ryazanov.s.a@gmail.com> Cc: Linux MIPS <linux-mips@linux-mips.org> Patchwork: https://patchwork.linux-mips.org/patch/8238/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/ath25/board.c')
-rw-r--r--arch/mips/ath25/board.c8
1 files changed, 8 insertions, 0 deletions
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 <asm/bootinfo.h>
#include <asm/time.h>
+#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)