[Arm-netbook] CT-PC89E: set_lcd_power decode

Luke Kenneth Casson Leighton luke.leighton at googlemail.com
Fri Mar 19 15:47:16 GMT 2010


tell y'what - let's use etherpad:

http://piratepad.net/GC6zWvHm2O

On Fri, Mar 19, 2010 at 3:45 PM, Luke Kenneth Casson Leighton
<luke.leighton at googlemail.com> wrote:
> would anyone like to help decode this into its relevant GPIO function(s)?
>
> * BIC 0xNN is equivalent to x &= ~0xNN
> * ORR 0xNN is equivalent to x |= 0xNN
> * LDR R3, R1, #0xA8] is equivalent to R3 = (uint32*)((int)(R1+0xA8))
>
> and 0xA8, when you look at the header files, shows it to get
> S3C_GPIO.. er.... BANKF + 0x8 which makes that ... err... BANKF is
> 2-pin-jobbies so... iit's pullup! yes, pullup, he says.  and
> 0x30000000 is 0x3>>(14*2) so that bit from C01DAEBC to C01DAECC is
> definitely a BANK F pullup on pin 14, setting it to 0x2 (0x2>>(14*2))
>
> i've already put the constants S3C_VA_GPIO = 0xF4600000 and
> S3C_VA_TIMER = 0xF4300000 into the mix.
>
> the code you need to look at is really the 2.6.24.2 kernel,
> "arch/arm/plat-s3c24xx/gpio.c" and use ctags to get at the relevant
> constants.



More information about the Arm-netbook mailing list