Re: A first sign of life from LEDs

From: Michael Opdenacker <michael_at_free-electrons.com>
Date: Wed, 02 Feb 2005 17:54:34 +0100

Hi Aric,

>I don't really know, but it is possible that they hooked the address
>lines up differently in the hx4700. If they shift the address left one
>bit at ASIC3 then a 0x100 is really 0x200.
>
>
Thank you for suggesting this!

So, if I understand you right, this would imply the following:

    * ASIC3 GPIOC would be at 0x200 on h4000, its dir register at 0x204,
      its out register at 0x208 and so on...
    * ASIC3 GPIOC would be at 0x100 on hx4700, its dir register at
      0x102, its out register at 0x104 and so on. After all, only 16
      bits are needed, and this would explain why I could change the
      status of leds by writing to 0x104. If this is true, I was really
      writing to the "out" register while I thought it was the "dir"
      register! This would make sense. I've just checked that we have
      the same offsets in
      http://free-electrons.com/pub/pda/hx4700/misc/discovery_asic3.h.txt
      (Zaurus SL-A300).

If this is true, we should take device specific stuff out of
asic3_base.h and create 2 different offset files (such as asic3_base16.h
and asic3_base32.h). Code for each device could include one or the other.

Does this make sense? I'm glad you found an explanation which is
consistent with what we know so far...

    Thanks a lot!

    :-)

    Michael.

-- 
Michael Opdenacker
http://free-electrons.com
Received on Wed Feb 02 2005 - 11:56:18 EST

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:21:03 EDT