I don't know about your particular system, but in my case, the system
controller memory maps the address and data register, so I simply hacked out
any of the platform_get_resource code for my system and replaced it with
ioremaps:
dev->data_reg = ioremap(0xf4100000, 0x2);
dev->addr_reg = ioremap(0xf4100002, 0x2);
With this change I can read and write all my registers successfully
(however, I did have to play with some byte swapping before it finally
worked). However, at some point, I may want to see if there is a cleaner
way to implement this using the platform resource functions, as this is
quite specific to my system.
On another note about the isp1362 driver, I have been successfull in probing
the chip, however, if the board does not come out of a power-up reset, the
ClkReady interrupt check fails in hc_isp1362_chip_probe(). In my system I
don't have control over a hardreset of the ISP chip and the soft reset (reg
0xA9) doesn't behave quite the same way. So the isp1362_set_hw_reset and
isp1362_clr_hw_reset functions have no effect for me. I am assuming this
interrupt bit is latched on power-up and stays set, but will be cleared the
second time around that I load the driver. I'm just wondering, if there is
an easy way to force ClkReady to be asserted again, or will skipping this
check have any consequences? The data sheet is not very specific on this
issue.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Michael
Moedt
Sent: Monday, October 18, 2004 7:40 PM
To: Lothar Wassmann
Cc: [EMAIL PROTECTED]
Subject: [linux-usb-devel] ohci-isp1362 :: addr/data offsets
Hello yet again.
I have a question about the ohci-isp1362 driver.
Do you know where the dev->addr_reg and dev->data_reg are set?
They look like virtual addresses, but what addresses are they
ioremapped to? (Which file and where-abouts can I find this? I'm
having trouble finding it)
For me, when reading data, it seem to use offset 0x00 for address
(AKA command), and 0xFE (or 0xFFE) for data. I'm pretty sure this is
not right.
Thanks,
Mike
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel