summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mxs/devices-mx23.h
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@freescale.com>2010-12-09 23:12:46 +0800
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-12-20 17:30:24 +0100
commitdc38ad4052a50b9e73fdcc970ecdd4f69ee9d97a (patch)
treeec28c5e9afacaca46ee2ab96cbef939eefe254bc /arch/arm/mach-mxs/devices-mx23.h
parentfaff3dc947738ce7c905a4a2936a089d3fa9ddda (diff)
ARM: mxs: Dynamically allocate duart devices
Dynamically allocate duart devices for MX23 and MX28. Signed-off-by: Shawn Guo <shawn.guo@freescale.com> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mxs/devices-mx23.h')
-rw-r--r--arch/arm/mach-mxs/devices-mx23.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mach-mxs/devices-mx23.h b/arch/arm/mach-mxs/devices-mx23.h
new file mode 100644
index 00000000000..d0f49fc0abb
--- /dev/null
+++ b/arch/arm/mach-mxs/devices-mx23.h
@@ -0,0 +1,16 @@
+/*
+ * Copyright (C) 2010 Pengutronix
+ * Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
+ *
+ * Copyright 2010 Freescale Semiconductor, Inc. All Rights Reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License version 2 as published by the
+ * Free Software Foundation.
+ */
+#include <mach/mx23.h>
+#include <mach/devices-common.h>
+
+extern const struct mxs_duart_data mx23_duart_data __initconst;
+#define mx23_add_duart() \
+ mxs_add_duart(&mx23_duart_data)