Establishing HPI communication with Cold fire processor MCF5270 | Cypress Semiconductor
Establishing HPI communication with Cold fire processor MCF5270
I am in deep trouble.Please help.
We are using CY7C67300 USB chip and using the source code provided which got installed in the path C:\Cypress\USB\OTG-Host\Source\coprocessor\linux\drivers\usb\cy7c67300.(2.4.18)
CY7C67300 is configured in HPI mode by pulling GPIO[31:30} to low.I have copied the cy7c67300 folder to my ../drivers/usb folder and built statically with my 2.4.27 kernel.
Before compiling i modified USB Base address and irq number in the cy7c67200_300_hcd.c file.
In the hci_hcd_init function i have commented all other things to first check whether HPI communication is working or not. i wrote small code snippet as shown below.
__raw_writew(0xc004, HPI_ADDR_ADDR + cy_private_data->cy_addr);// cy_private_data->cy_addr=0xFFF00000
value =__raw_readw(HPI_DATA_ADDR + cy_private_data->cy_addr);
Here im trying to read H/W revision register which has to return 0x0101.But im getting some junk value.
Similarly i tried writing to registers like CPU speed control and interrupt routing register with some value and try reading it back.Still im getting junk value.
Please help me out.