summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mxc91231/magx-zn5.c
diff options
context:
space:
mode:
authorDmitriy Taychenachev <dimichxp@gmail.com>2009-07-31 20:29:22 +0900
committerSascha Hauer <s.hauer@pengutronix.de>2009-08-14 12:40:46 +0200
commitfd6ac7bb9d671d36fd7536c68fde977d197756ab (patch)
tree4c1993ee4079a55c6d621b46dba4826b92e3c028 /arch/arm/mach-mxc91231/magx-zn5.c
parent8e5be212cba6675dc363a224ce4a98bb07039b4b (diff)
downloadblackbird-obmc-linux-fd6ac7bb9d671d36fd7536c68fde977d197756ab.tar.gz
blackbird-obmc-linux-fd6ac7bb9d671d36fd7536c68fde977d197756ab.zip
MXC: add basic MXC91231 support
Signed-off-by: Dmitriy Taychenachev <dimichxp@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mxc91231/magx-zn5.c')
-rw-r--r--arch/arm/mach-mxc91231/magx-zn5.c59
1 files changed, 59 insertions, 0 deletions
diff --git a/arch/arm/mach-mxc91231/magx-zn5.c b/arch/arm/mach-mxc91231/magx-zn5.c
new file mode 100644
index 000000000000..8757573b0a8a
--- /dev/null
+++ b/arch/arm/mach-mxc91231/magx-zn5.c
@@ -0,0 +1,59 @@
+/*
+ * Copyright 2009 Dmitriy Taychenachev <dimichxp@gmail.com>
+ *
+ * This file is released under the GPLv2 or later.
+ */
+
+#include <linux/irq.h>
+#include <linux/init.h>
+#include <linux/device.h>
+
+#include <asm/mach-types.h>
+#include <asm/mach/time.h>
+#include <asm/mach/arch.h>
+
+#include <mach/common.h>
+#include <mach/hardware.h>
+#include <mach/mmc.h>
+#include <mach/imx-uart.h>
+
+#include "devices.h"
+
+static struct imxuart_platform_data uart_pdata = {
+};
+
+static struct imxmmc_platform_data sdhc_pdata = {
+};
+
+static void __init zn5_init(void)
+{
+ pm_power_off = mxc91231_power_off;
+
+ mxc_register_device(&mxc_uart_device1, &uart_pdata);
+ mxc_register_device(&mxc_uart_device0, &uart_pdata);
+
+ mxc_register_device(&mxc_sdhc_device0, &sdhc_pdata);
+
+ mxc_register_device(&mxc_wdog_device0, NULL);
+
+ return;
+}
+
+static void __init zn5_timer_init(void)
+{
+ mxc91231_clocks_init(26000000); /* 26mhz ckih */
+}
+
+struct sys_timer zn5_timer = {
+ .init = zn5_timer_init,
+};
+
+MACHINE_START(MAGX_ZN5, "Motorola Zn5")
+ .phys_io = MXC91231_AIPS1_BASE_ADDR,
+ .io_pg_offst = ((MXC91231_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
+ .boot_params = PHYS_OFFSET + 0x100,
+ .map_io = mxc91231_map_io,
+ .init_irq = mxc91231_init_irq,
+ .timer = &zn5_timer,
+ .init_machine = zn5_init,
+MACHINE_END
OpenPOWER on IntegriCloud