diff options
Diffstat (limited to 'arch/arm/mach-imx/mach-apf9328.c')
-rw-r--r-- | arch/arm/mach-imx/mach-apf9328.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/mach-apf9328.c b/arch/arm/mach-imx/mach-apf9328.c index a404c89485ca..f4a63ee9e217 100644 --- a/arch/arm/mach-imx/mach-apf9328.c +++ b/arch/arm/mach-imx/mach-apf9328.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/platform_device.h> | 18 | #include <linux/platform_device.h> |
19 | #include <linux/mtd/physmap.h> | 19 | #include <linux/mtd/physmap.h> |
20 | #include <linux/dm9000.h> | 20 | #include <linux/dm9000.h> |
21 | #include <linux/i2c.h> | ||
21 | 22 | ||
22 | #include <asm/mach-types.h> | 23 | #include <asm/mach-types.h> |
23 | #include <asm/mach/arch.h> | 24 | #include <asm/mach/arch.h> |
@@ -41,6 +42,9 @@ static const int apf9328_pins[] __initconst = { | |||
41 | PB29_PF_UART2_RTS, | 42 | PB29_PF_UART2_RTS, |
42 | PB30_PF_UART2_TXD, | 43 | PB30_PF_UART2_TXD, |
43 | PB31_PF_UART2_RXD, | 44 | PB31_PF_UART2_RXD, |
45 | /* I2C */ | ||
46 | PA15_PF_I2C_SDA, | ||
47 | PA16_PF_I2C_SCL, | ||
44 | }; | 48 | }; |
45 | 49 | ||
46 | /* | 50 | /* |
@@ -103,6 +107,10 @@ static const struct imxuart_platform_data uart1_pdata __initconst = { | |||
103 | .flags = IMXUART_HAVE_RTSCTS, | 107 | .flags = IMXUART_HAVE_RTSCTS, |
104 | }; | 108 | }; |
105 | 109 | ||
110 | static const struct imxi2c_platform_data apf9328_i2c_data __initconst = { | ||
111 | .bitrate = 100000, | ||
112 | }; | ||
113 | |||
106 | static struct platform_device *devices[] __initdata = { | 114 | static struct platform_device *devices[] __initdata = { |
107 | &apf9328_flash_device, | 115 | &apf9328_flash_device, |
108 | &dm9000x_device, | 116 | &dm9000x_device, |
@@ -119,6 +127,8 @@ static void __init apf9328_init(void) | |||
119 | imx1_add_imx_uart0(NULL); | 127 | imx1_add_imx_uart0(NULL); |
120 | imx1_add_imx_uart1(&uart1_pdata); | 128 | imx1_add_imx_uart1(&uart1_pdata); |
121 | 129 | ||
130 | imx1_add_imx_i2c(&apf9328_i2c_data); | ||
131 | |||
122 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 132 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
123 | } | 133 | } |
124 | 134 | ||
@@ -136,6 +146,8 @@ MACHINE_START(APF9328, "Armadeus APF9328") | |||
136 | .map_io = mx1_map_io, | 146 | .map_io = mx1_map_io, |
137 | .init_early = imx1_init_early, | 147 | .init_early = imx1_init_early, |
138 | .init_irq = mx1_init_irq, | 148 | .init_irq = mx1_init_irq, |
149 | .handle_irq = imx1_handle_irq, | ||
139 | .timer = &apf9328_timer, | 150 | .timer = &apf9328_timer, |
140 | .init_machine = apf9328_init, | 151 | .init_machine = apf9328_init, |
152 | .restart = mxc_restart, | ||
141 | MACHINE_END | 153 | MACHINE_END |