On Mon, Mar 13, 2017 at 03:19:27PM -0400, Linux User wrote:
> HI Ralph,
> 
> I tried that but I am getting 0s all the time.

Your code looks fine, however, there is a small complication, in
the description of the register at 0xFFD05000:

    "During the boot process, the Boot ROM copies the STAT
    register value into memory before clearing it. After booting,
    you can read the value of the reset status register at
    memory address (r0 + 0x0038)."

So the BootROM is already reading and clearing the register,
which is likely why you are getting zero for all the bits.

Looking at u-boot lowlevel_init.S code, it seems that the value
from r0 + 0x0038 is copied into a variable called rst_mgr_status.
So you should be able to print out its value directly.

Cheers,
-Ralph

_______________________________________________
Rfi mailing list
Rfi@lists.rocketboards.org
http://lists.rocketboards.org/cgi-bin/mailman/listinfo/rfi

Reply via email to