How to Know the reset reason in uboot instead of Primary Bootloader
Hi,
I have an STM32MP157C-DK2 reference board and it is booting with yocto linux.From the bootlog I came to know that reset reason is checked in the Primary Bootloader by reading a register from the file tf-a-stm32mp/plat/st/stm32mp1/bl2_plat_setup.c
uint32_t rstsr = mmio_read_32(stm32mp_rcc_base() + RCC_MP_RSTSCLRR);
Now I want to know the reason in the uboot level before lauching the kenel image to add an extra environmental variable in uboot.I tried to read the register using readl(),_raw_readl() API's but I was throwing data abort error while booting and the board gets reboot.So I need help w.r.t the way to read register or any other way to get the reset reason information.
Regards
Srikanth.
