ok,
So i have these registers:
"GPDR0_16", 0x40E0000C, 16, 0x00000001, 'd', "GPIO 16 i/o direction
(1=output)" },
"GPSR0_16", 0x40E00018, 16, 0x00000001, 'd', "GPIO 16 set" },
"GPCR0_16", 0x40E00024, 16, 0x00000001, 'd', "GPIO 16 clear" },
on the PXA255 datasheet it says :
for the GPDR0 for GPSR0
for GPCR0
Physical Address 0x40E0_000C Physical Address 0x40E0_0018
Physical Address 0x40E0_0024
so i enter in U-boot (for the GPDR0): md 0x40E0000C
i get this:
40e0000c: c182b9f8 0012aa80 0001ffff 00000000 ................
40e0001c: 00000000 00000000 00000000 00000000 ................
40e0002c: 00000000 00000000 00000000 00000000 ................
40e0003c: 00000000 00000000 00000000 00000000 ................
40e0004c: 00000000 00000000 81011000 a5254010 .............@%.
40e0005c: 69908010 aaa5a8aa aaaaaaaa 00000000 ...i............
40e0006c: 00000000 00000000 00000000 00000000 ................
40e0007c: 00000000 3e7ccf3f 0feffff7 01dec000 ....?.|>........
40e0008c: c182b9f8 0012aa80 0001ffff 00000000 ................
40e0009c: 00000000 00000000 00000000 00000000 ................
40e000ac: 00000000 00000000 00000000 00000000 ................
40e000bc: 00000000 00000000 00000000 00000000 ................
40e000cc: 00000000 00000000 81011000 a5254010 .............@%.
40e000dc: 69908010 aaa5a8aa aaaaaaaa 00000000 ...i............
40e000ec: 00000000 00000000 00000000 00000000 ................
40e000fc: 00000000 3e7ccf3f 07effff7 01dec000 ....?.|>........
then i enter for GPSR and GPCR this: md 0x40E00000
and get this:
40e00000: 3e7ccf3f 07effff7 01dec000 c182b9f8 ?.|>............
40e00010: 0012aa80 0001ffff 00000000 00000000 ................
40e00020: 00000000 00000000 00000000 00000000 ................
40e00030: 00000000 00000000 00000000 00000000 ................
40e00040: 00000000 00000000 00000000 00000000 ................
40e00050: 00000000 81011000 a5254010 69908010 .........@...
40e00060: aaa5a8aa aaaaaaaa 00000000 00000000 ................
40e00070: 00000000 00000000 00000000 00000000 ................
40e00080: 3e7ccf3f 1feffff7 01dec000 c182b9f8 ?.|>............
40e00090: 0012aa80 0001ffff 00000000 00000000 ................
40e000a0: 00000000 00000000 00000000 00000000 ................
40e000b0: 00000000 00000000 00000000 00000000 ................
40e000c0: 00000000 00000000 00000000 00000000 ................
40e000d0: 00000000 81011000 a5254010 69908010 .........@...
40e000e0: aaa5a8aa aaaaaaaa 00000000 00000000 ................
40e000f0: 00000000 00000000 00000000 00000000 ................
on the tutorial it says that in order to enable the pin i need to enter
somethig like this " mw 40E0002C 100"
but here is that i get a bit off track
for my needs what should i enter ? and how do i find that out?
Demetris Z.
----- Original Message -----
From: "Dave Hylands" <dhylands@...>
To: "General mailing list for gumstix users."
<gumstix-users@...>
Sent: Saturday, June 24, 2006 9:24 PM
Subject: Re: [Gumstix-users] PXAREGS
> Hi Demetris,
>
> On 6/24/06, Demetris Zavorotnichenko <fgcity4652@...> wrote:
>> I read the part on WIKI about enabling pins on PXA but i have a bit o
>> difficulty of understanding it.
>>
>> I need to set GPCR0_16 to 1 , GPDR0_16 to 1 , and GPSR0_16 to 1.
>>
>> i understand this is done with the "mw" command in u-boot.
>>
>> But i still have dificulty of getting how to do it.
>>
>> Could someone explain it to me a bit more or help me out on doing it.?
>
> First of all, I'd take a look at this page:
> http://www.gumstix.org/tikiwiki/tiki-index.php?page=Robostix-uboot
>
> It describes doing exactly that for some of the GPIO lines that
> control the robostix.
>
> --
> Dave Hylands
> Vancouver, BC, Canada
> http://www.DaveHylands.com/
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> gumstix-users mailing list
> gumstix-users@...
> https://lists.sourceforge.net/lists/listinfo/gumstix-users
|