summaryrefslogtreecommitdiff
path: root/arch/arm/plat-mxs/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-mxs/device.c')
-rw-r--r--arch/arm/plat-mxs/device.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm/plat-mxs/device.c b/arch/arm/plat-mxs/device.c
index ae42a711057f..9a31b0a609cd 100644
--- a/arch/arm/plat-mxs/device.c
+++ b/arch/arm/plat-mxs/device.c
@@ -318,6 +318,26 @@ static struct platform_device mxs_led = {
};
#endif
+#if defined(CONFIG_CAN_FLEXCAN) || \
+ defined(CONFIG_CAN_FLEXCAN_MODULE)
+static struct platform_device mxs_flexcan[] = {
+ {
+ .name = "FlexCAN",
+ .id = 0,
+ .dev = {
+ .release = mxs_nop_release,
+ },
+ },
+ {
+ .name = "FlexCAN",
+ .id = 1,
+ .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)
@@ -431,6 +451,15 @@ static struct mxs_dev_lookup dev_lookup[] = {
.pdev = &mxs_led,
},
#endif
+
+#if defined(CONFIG_CAN_FLEXCAN) || \
+ defined(CONFIG_CAN_FLEXCAN_MODULE)
+ {
+ .name = "FlexCAN",
+ .size = ARRAY_SIZE(mxs_flexcan),
+ .pdev = mxs_flexcan,
+ },
+#endif
};
struct platform_device *mxs_get_device(char *name, int id)