Hi,

Philipp Schmid writes:
> 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);
> 
In this case you only need one ioremap and set up addr_reg as
'data_reg + 2'. This is what my code does automagically, when it finds
only one mem resource in the platform_device.

> 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
>
Byte swapping? Where do you need that?

> 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.
> 
I only added this explicit check to rule out hardware problems at the
earliest possible stage, so that I wouldn't try finding a software bug
when actually the hardware was misbehaving. All necessary power on
reset delays etc. should be done in the platform specific
hw_reset() function.


Lothar Wassmann


-------------------------------------------------------
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

Reply via email to