Hello,
> Mmm, strange: the LEDs don't light up unless I set some values on the
> ASIC3 GPIO_A and GPIO_B banks. I still need to find out which exact
> bits need setting, but I'll find this out soon.
>
> According the specifications in
> http://handhelds.org/moin/moin.cgi/HpIpaqHx4700Hardware, the A and B
> banks are just used for CF buffering. Unless HX4700_ASIC3_PHYS is
> wrong (it's set to PXA_CS3_PHYS), or something is wrong in my code or
> in the generic asic3_base code, the specifications could be wrong.
Here are more details. Here are the initial settings (all LEDs off):
IPAQ_ASIC3_GPIO_A_OUT(adata->mapping)=0x0000;
IPAQ_ASIC3_GPIO_A_DIR(adata->mapping)=0x0000;
IPAQ_ASIC3_GPIO_B_OUT(adata->mapping)=0x0000;
IPAQ_ASIC3_GPIO_B_DIR(adata->mapping)=0x0000;
IPAQ_ASIC3_GPIO_C_OUT(adata->mapping)=0x0000;
IPAQ_ASIC3_GPIO_C_DIR(adata->mapping)=0x0000;
IPAQ_ASIC3_GPIO_D_OUT(adata->mapping)=0x0000;
IPAQ_ASIC3_GPIO_D_DIR(adata->mapping)=0x0000;
Now, I can light up the amber led:
IPAQ_ASIC3_GPIO_B_DIR(adata->mapping)=0x0001;
Similarly, 0x0002 and 0x0004 light up the green and blue LEDs.
What's strange is that the state of the LED doesn't depend on
IPAQ_ASIC3_GPIO_B_OUT as I would have expected. That's what's making me
suspect something wrong in address management...
I'll check that the addresses are correct, and that I have the same
behaviour at the same addresses in WinCE.
:-)
Michael.
-- Michael Opdenacker http://free-electrons.comReceived on Mon Jan 31 2005 - 09:58:37 EST
This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:21:03 EDT