25 #include <linux/device.h>
28 #include <linux/kernel.h>
30 #include <linux/resource.h>
31 #include <linux/serial.h>
36 #ifdef CONFIG_I2C_PNX0105
38 #include <linux/i2c-pnx0105.h>
47 static struct resource pnx833x_uart_resources[] = {
100 .
name =
"pnx8xxx-uart",
103 .dma_mask = &uart_dmamask,
107 .num_resources =
ARRAY_SIZE(pnx833x_uart_resources),
108 .resource = pnx833x_uart_resources,
113 static struct resource pnx833x_usb_ehci_resources[] = {
127 .
name =
"pnx833x-ehci",
130 .dma_mask = &ehci_dmamask,
133 .num_resources =
ARRAY_SIZE(pnx833x_usb_ehci_resources),
134 .resource = pnx833x_usb_ehci_resources,
137 #ifdef CONFIG_I2C_PNX0105
138 static struct resource pnx833x_i2c0_resources[] = {
151 static struct resource pnx833x_i2c1_resources[] = {
164 static struct i2c_pnx0105_dev pnx833x_i2c_dev[] = {
181 .
name =
"i2c-pnx0105",
184 .platform_data = &pnx833x_i2c_dev[0],
186 .num_resources =
ARRAY_SIZE(pnx833x_i2c0_resources),
187 .resource = pnx833x_i2c0_resources,
191 .
name =
"i2c-pnx0105",
194 .platform_data = &pnx833x_i2c_dev[1],
196 .num_resources =
ARRAY_SIZE(pnx833x_i2c1_resources),
197 .resource = pnx833x_i2c1_resources,
203 static struct resource pnx833x_ethernet_resources[] = {
210 .start = PNX8335_PIC_ETHERNET_INT,
211 .end = PNX8335_PIC_ETHERNET_INT,
217 .
name =
"ip3902-eth",
220 .dma_mask = ðernet_dmamask,
223 .num_resources =
ARRAY_SIZE(pnx833x_ethernet_resources),
224 .resource = pnx833x_ethernet_resources,
227 static struct resource pnx833x_sata_resources[] = {
241 .
name =
"pnx833x-sata",
243 .num_resources =
ARRAY_SIZE(pnx833x_sata_resources),
244 .resource = pnx833x_sata_resources,
248 pnx833x_flash_nand_cmd_ctrl(
struct mtd_info *mtd,
int cmd,
unsigned int ctrl)
268 .cmd_ctrl = pnx833x_flash_nand_cmd_ctrl
276 static struct resource pnx833x_flash_nand_resource = {
286 .resource = &pnx833x_flash_nand_resource,
288 .platform_data = &pnx833x_flash_nand_data,
293 &pnx833x_uart_device,
294 &pnx833x_usb_ehci_device,
295 #ifdef CONFIG_I2C_PNX0105
296 &pnx833x_i2c0_device,
297 &pnx833x_i2c1_device,
299 &pnx833x_ethernet_device,
300 &pnx833x_sata_device,
304 static int __init pnx833x_platform_init(
void)