diff options
-rw-r--r-- | arch/arm/mach-mx3/devices.c | 15 | ||||
-rw-r--r-- | arch/arm/mach-mx3/devices.h | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/devices.c b/arch/arm/mach-mx3/devices.c index a6bdcc07f3c9..12b3e3c00460 100644 --- a/arch/arm/mach-mx3/devices.c +++ b/arch/arm/mach-mx3/devices.c | |||
@@ -145,3 +145,18 @@ int __init mxc_register_gpios(void) | |||
145 | { | 145 | { |
146 | return mxc_gpio_init(imx_gpio_ports, ARRAY_SIZE(imx_gpio_ports)); | 146 | return mxc_gpio_init(imx_gpio_ports, ARRAY_SIZE(imx_gpio_ports)); |
147 | } | 147 | } |
148 | |||
149 | static struct resource mxc_w1_master_resources[] = { | ||
150 | { | ||
151 | .start = OWIRE_BASE_ADDR, | ||
152 | .end = OWIRE_BASE_ADDR + SZ_4K - 1, | ||
153 | .flags = IORESOURCE_MEM, | ||
154 | }, | ||
155 | }; | ||
156 | |||
157 | struct platform_device mxc_w1_master_device = { | ||
158 | .name = "mxc_w1", | ||
159 | .id = 0, | ||
160 | .num_resources = ARRAY_SIZE(mxc_w1_master_resources), | ||
161 | .resource = mxc_w1_master_resources, | ||
162 | }; | ||
diff --git a/arch/arm/mach-mx3/devices.h b/arch/arm/mach-mx3/devices.h index 4dc03f9e6001..cb1459c7c960 100644 --- a/arch/arm/mach-mx3/devices.h +++ b/arch/arm/mach-mx3/devices.h | |||
@@ -4,3 +4,4 @@ extern struct platform_device mxc_uart_device1; | |||
4 | extern struct platform_device mxc_uart_device2; | 4 | extern struct platform_device mxc_uart_device2; |
5 | extern struct platform_device mxc_uart_device3; | 5 | extern struct platform_device mxc_uart_device3; |
6 | extern struct platform_device mxc_uart_device4; | 6 | extern struct platform_device mxc_uart_device4; |
7 | extern struct platform_device mxc_w1_master_device; | ||