diff options
Diffstat (limited to 'arch/mips/pnx833x/common/platform.c')
-rw-r--r-- | arch/mips/pnx833x/common/platform.c | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/arch/mips/pnx833x/common/platform.c b/arch/mips/pnx833x/common/platform.c index 2b7e837dc2e2..b4b774bc3178 100644 --- a/arch/mips/pnx833x/common/platform.c +++ b/arch/mips/pnx833x/common/platform.c | |||
@@ -33,11 +33,6 @@ | |||
33 | #include <linux/mtd/nand.h> | 33 | #include <linux/mtd/nand.h> |
34 | #include <linux/mtd/partitions.h> | 34 | #include <linux/mtd/partitions.h> |
35 | 35 | ||
36 | #ifdef CONFIG_I2C_PNX0105 | ||
37 | /* Until i2c driver available in kernel.*/ | ||
38 | #include <linux/i2c-pnx0105.h> | ||
39 | #endif | ||
40 | |||
41 | #include <irq.h> | 36 | #include <irq.h> |
42 | #include <irq-mapping.h> | 37 | #include <irq-mapping.h> |
43 | #include <pnx833x.h> | 38 | #include <pnx833x.h> |
@@ -134,70 +129,6 @@ static struct platform_device pnx833x_usb_ehci_device = { | |||
134 | .resource = pnx833x_usb_ehci_resources, | 129 | .resource = pnx833x_usb_ehci_resources, |
135 | }; | 130 | }; |
136 | 131 | ||
137 | #ifdef CONFIG_I2C_PNX0105 | ||
138 | static struct resource pnx833x_i2c0_resources[] = { | ||
139 | { | ||
140 | .start = PNX833X_I2C0_PORTS_START, | ||
141 | .end = PNX833X_I2C0_PORTS_END, | ||
142 | .flags = IORESOURCE_MEM, | ||
143 | }, | ||
144 | { | ||
145 | .start = PNX833X_PIC_I2C0_INT, | ||
146 | .end = PNX833X_PIC_I2C0_INT, | ||
147 | .flags = IORESOURCE_IRQ, | ||
148 | }, | ||
149 | }; | ||
150 | |||
151 | static struct resource pnx833x_i2c1_resources[] = { | ||
152 | { | ||
153 | .start = PNX833X_I2C1_PORTS_START, | ||
154 | .end = PNX833X_I2C1_PORTS_END, | ||
155 | .flags = IORESOURCE_MEM, | ||
156 | }, | ||
157 | { | ||
158 | .start = PNX833X_PIC_I2C1_INT, | ||
159 | .end = PNX833X_PIC_I2C1_INT, | ||
160 | .flags = IORESOURCE_IRQ, | ||
161 | }, | ||
162 | }; | ||
163 | |||
164 | static struct i2c_pnx0105_dev pnx833x_i2c_dev[] = { | ||
165 | { | ||
166 | .base = PNX833X_I2C0_PORTS_START, | ||
167 | .irq = -1, /* should be PNX833X_PIC_I2C0_INT but polling is faster */ | ||
168 | .clock = 6, /* 0 == 400 kHz, 4 == 100 kHz(Maximum HDMI), 6 = 50kHz(Preferred HDCP) */ | ||
169 | .bus_addr = 0, /* no slave support */ | ||
170 | }, | ||
171 | { | ||
172 | .base = PNX833X_I2C1_PORTS_START, | ||
173 | .irq = -1, /* on high freq, polling is faster */ | ||
174 | /*.irq = PNX833X_PIC_I2C1_INT,*/ | ||
175 | .clock = 4, /* 0 == 400 kHz, 4 == 100 kHz. 100 kHz seems a safe default for now */ | ||
176 | .bus_addr = 0, /* no slave support */ | ||
177 | }, | ||
178 | }; | ||
179 | |||
180 | static struct platform_device pnx833x_i2c0_device = { | ||
181 | .name = "i2c-pnx0105", | ||
182 | .id = 0, | ||
183 | .dev = { | ||
184 | .platform_data = &pnx833x_i2c_dev[0], | ||
185 | }, | ||
186 | .num_resources = ARRAY_SIZE(pnx833x_i2c0_resources), | ||
187 | .resource = pnx833x_i2c0_resources, | ||
188 | }; | ||
189 | |||
190 | static struct platform_device pnx833x_i2c1_device = { | ||
191 | .name = "i2c-pnx0105", | ||
192 | .id = 1, | ||
193 | .dev = { | ||
194 | .platform_data = &pnx833x_i2c_dev[1], | ||
195 | }, | ||
196 | .num_resources = ARRAY_SIZE(pnx833x_i2c1_resources), | ||
197 | .resource = pnx833x_i2c1_resources, | ||
198 | }; | ||
199 | #endif | ||
200 | |||
201 | static u64 ethernet_dmamask = DMA_BIT_MASK(32); | 132 | static u64 ethernet_dmamask = DMA_BIT_MASK(32); |
202 | 133 | ||
203 | static struct resource pnx833x_ethernet_resources[] = { | 134 | static struct resource pnx833x_ethernet_resources[] = { |
@@ -294,10 +225,6 @@ static struct platform_device pnx833x_flash_nand = { | |||
294 | static struct platform_device *pnx833x_platform_devices[] __initdata = { | 225 | static struct platform_device *pnx833x_platform_devices[] __initdata = { |
295 | &pnx833x_uart_device, | 226 | &pnx833x_uart_device, |
296 | &pnx833x_usb_ehci_device, | 227 | &pnx833x_usb_ehci_device, |
297 | #ifdef CONFIG_I2C_PNX0105 | ||
298 | &pnx833x_i2c0_device, | ||
299 | &pnx833x_i2c1_device, | ||
300 | #endif | ||
301 | &pnx833x_ethernet_device, | 228 | &pnx833x_ethernet_device, |
302 | &pnx833x_sata_device, | 229 | &pnx833x_sata_device, |
303 | &pnx833x_flash_nand, | 230 | &pnx833x_flash_nand, |