Hi, I am trying to port the isp1362-hcd driver on a custom PXA-255 board, and am unable to make register read/write. ISP1362 is on CS2 ie DEX_USB_HOST_PHYS is defined as PXA_CS2_PHYS.
I am attaching the platform file .
thanks in advance,
Regards,
Vishal
static struct map_desc dex_io_desc[] __initdata = {
/* virtual physical length type */
{ DEX_ETH_BASE , DEX_ETH_PHYS , DEX_ETH_SIZE , MT_DEVICE },
{ DEX_FLASH_BASE , DEX_FLASH_PHYS , DEX_FLASH_SIZE , MT_DEVICE },
{ DEX_EXT_PORT_BASE , DEX_EXT_PORT_PHYS , DEX_EXT_PORT_SIZE , MT_DEVICE },
{ DEX_USB_HOST_BASE , DEX_USB_HOST_PHYS , DEX_USB_HOST_SIZE , MT_DEVICE }
};
/*********************** ISP1362 *****************************/
static void isp1362_delay(struct device *dev, unsigned int delay)
{
ndelay(delay * 2);
}
static struct isp1362_platform_data isp1362_hcd_data = {
.reset = NULL,
.delay = isp1362_delay,
.clock = NULL,
.potpg = 25,
.no_power_switching = 0,
.power_switching_mode = 1,
.remote_wakeup_connected = 1,
.int_edge_triggered = 1,
.int_act_high = 0,
.dreq_act_high = 0,
.dack_act_high = 0,
.oc_enable = 0,
.sel15Kres = 0,
};
static struct resource isp1362_hcd_resources[] = {
[0] = {
.name = "isp1362-hcd data reg",
.start = ((DEX_USB_HOST_PHYS)),
.end = ((DEX_USB_HOST_PHYS)+1),
.flags = IORESOURCE_MEM,
},
[1] = {
.name = "isp1362-hcd addr reg",
.start = ((DEX_USB_HOST_PHYS)+2),
.end = ((DEX_USB_HOST_PHYS)+3),
.flags = IORESOURCE_MEM,
},
[2] = {
.name = "isp1362-hcd irq",
.start = DEX_USB_HOST_IRQ1,
.flags = IORESOURCE_IRQ,
}
};
static struct platform_device isp1362_device = {
.name = "isp1362-hcd",
.id = 0,
.num_resources = ARRAY_SIZE(isp1362_hcd_resources),
.resource = isp1362_hcd_resources,
.dev = {
.platform_data = &isp1362_hcd_data,
}
};
/*********************** ISP1362 *****************************/
static void __init dex_init_irq(void)
{
pxa_init_irq();
set_irq_type(IRQ_GPIO(2), IRQT_RISING); /* Ethernet */
}
static int __init dex_init(void)
{
if (platform_device_register(&isp1362_device))
printk(KERN_ERR "ERROR: Couldn't register the ISP1362 platform
device.\r\n");
else
printk(KERN_INFO "Registered the ISP1362 platform device.\r\n");
return 0;
}
static void __init dex_map_io(void)
{
pxa_map_io();
iotable_init(dex_io_desc, ARRAY_SIZE(dex_io_desc));
}
MACHINE_START(PXA_DEX, "Reference Board")
BOOT_MEM(0xa0000000, 0x40000000, io_p2v(0x40000000))
BOOT_PARAMS(0xa0000100)
MAPIO(dex_map_io)
INITIRQ(dex_init_irq)
INIT_MACHINE(dex_init)
MACHINE_END
regards,
Vishal
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
