diff options
Diffstat (limited to 'arch/arm/mach-mxs/devices-mx28.h')
-rw-r--r-- | arch/arm/mach-mxs/devices-mx28.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/arm/mach-mxs/devices-mx28.h b/arch/arm/mach-mxs/devices-mx28.h index 9dbeae130842..84b2960df117 100644 --- a/arch/arm/mach-mxs/devices-mx28.h +++ b/arch/arm/mach-mxs/devices-mx28.h | |||
@@ -11,10 +11,16 @@ | |||
11 | #include <mach/mx28.h> | 11 | #include <mach/mx28.h> |
12 | #include <mach/devices-common.h> | 12 | #include <mach/devices-common.h> |
13 | #include <mach/mxsfb.h> | 13 | #include <mach/mxsfb.h> |
14 | #include <linux/amba/bus.h> | ||
14 | 15 | ||
15 | extern const struct amba_device mx28_duart_device __initconst; | 16 | static inline int mx28_add_duart(void) |
16 | #define mx28_add_duart() \ | 17 | { |
17 | mxs_add_duart(&mx28_duart_device) | 18 | struct amba_device *d; |
19 | |||
20 | d = amba_ahb_device_add(NULL, "duart", MX28_DUART_BASE_ADDR, SZ_8K, | ||
21 | MX28_INT_DUART, 0, 0, 0); | ||
22 | return IS_ERR(d) ? PTR_ERR(d) : 0; | ||
23 | } | ||
18 | 24 | ||
19 | extern const struct mxs_auart_data mx28_auart_data[] __initconst; | 25 | extern const struct mxs_auart_data mx28_auart_data[] __initconst; |
20 | #define mx28_add_auart(id) mxs_add_auart(&mx28_auart_data[id]) | 26 | #define mx28_add_auart(id) mxs_add_auart(&mx28_auart_data[id]) |