aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mxs/devices-mx28.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-mx28.h
parentfaff3dc947738ce7c905a4a2936a089d3fa9ddda (diff)
downloadkernel_samsung_smdk4412-dc38ad4052a50b9e73fdcc970ecdd4f69ee9d97a.zip
kernel_samsung_smdk4412-dc38ad4052a50b9e73fdcc970ecdd4f69ee9d97a.tar.gz
kernel_samsung_smdk4412-dc38ad4052a50b9e73fdcc970ecdd4f69ee9d97a.tar.bz2
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-mx28.h')
-rw-r--r--arch/arm/mach-mxs/devices-mx28.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mach-mxs/devices-mx28.h b/arch/arm/mach-mxs/devices-mx28.h
new file mode 100644
index 0000000..47c2f04
--- /dev/null
+++ b/arch/arm/mach-mxs/devices-mx28.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/mx28.h>
+#include <mach/devices-common.h>
+
+extern const struct mxs_duart_data mx28_duart_data __initconst;
+#define mx28_add_duart() \
+ mxs_add_duart(&mx28_duart_data)