Dear Mathieu,

In message <4ff49f2c.1030...@linaro.org> you wrote:
>
> >> +  *((volatile unsigned int *)(0xA0412900)) = 0xFF;
> >> +  *((volatile unsigned int *)(0xA0412904)) = 0xFF;
> > 
> > NAK.  Please use proper I/O accessors, and declare a C struct to
> > access these registers.
> 
> Ok, to make sure I do this properly please point me to an example in the
> code base where I can find I/O accessors.
> 
> Also, could you be more specific about the C struct you're like to see
> implemented - again and example in the code would be welcomed.

See arch/arm/include/asm/io.h for the respective I/O accessors.

As I have no idea which registers might be hidden by these magig
numbers 0xA0412900 or 0xA0412904 it's hard for me to find any good
example.  See for example accesses like the

        writel(val, &ccm->cgr0);

in arch/arm/cpu/arm926ejs/mx25/generic.c, etc. etc.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
Remember, there's a big difference between kneeling down and  bending
over.                                                   - Frank Zappa
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to