summaryrefslogtreecommitdiff
path: root/arch/arm/plat-mxs/device.c
diff options
context:
space:
mode:
authorFred Fan <r01011@freescale.com>2010-01-27 22:06:37 +0800
committerAlejandro Gonzalez <alex.gonzalez@digi.com>2010-05-25 11:13:33 +0200
commit2b7126955b39b263f22b4dac504915b212e23f1a (patch)
tree96622cbc3a36155c66331bfd69f33805bbd22172 /arch/arm/plat-mxs/device.c
parentd8b4d74f0f1ed65a9c076c1266e4a6a60837a333 (diff)
ENGR00117732-2 i.MX28 LRADC support
Add platform data resource support Signed-off-by: Fred.fan <r01011@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
Diffstat (limited to 'arch/arm/plat-mxs/device.c')
-rw-r--r--arch/arm/plat-mxs/device.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/plat-mxs/device.c b/arch/arm/plat-mxs/device.c
index 7eb37b0f0471..f3fcad718c39 100644
--- a/arch/arm/plat-mxs/device.c
+++ b/arch/arm/plat-mxs/device.c
@@ -206,6 +206,16 @@ static struct platform_device mxs_rtc = {
};
#endif
+#ifdef CONFIG_MXS_LRADC
+static struct platform_device mxs_lradc = {
+ .name = "mxs-lradc",
+ .id = 0,
+ .dev = {
+ .release = mxs_nop_release,
+ },
+};
+#endif
+
static struct mxs_dev_lookup dev_lookup[] = {
#if defined(CONFIG_SERIAL_MXS_DUART) || \
defined(CONFIG_SERIAL_MXS_DUART_MODULE)
@@ -273,6 +283,14 @@ static struct mxs_dev_lookup dev_lookup[] = {
.pdev = mxs_fec,
},
#endif
+
+#ifdef CONFIG_MXS_LRADC
+ {
+ .name = "mxs-lradc",
+ .size = 1,
+ .pdev = &mxs_lradc,
+ },
+#endif
};
struct platform_device *mxs_get_device(char *name, int id)