Re: [U-Boot] [PATCH v2] MX51: mx51evk: Use struct to access SRSR register instead of offset

2011-04-13 Thread Detlev Zundel
Hi Fabio, Use struct to access SRSR register instead of offset. While at it mask the 7 bits of SRSR for correctness. Signed-off-by: Fabio Estevam fabio.este...@freescale.com The SRSR is a MX51 register and thus not board specific. Can we please move this reset cause detection into common

[U-Boot] [PATCH v2] MX51: mx51evk: Use struct to access SRSR register instead of offset

2011-04-12 Thread Fabio Estevam
Use struct to access SRSR register instead of offset. While at it mask the 7 bits of SRSR for correctness. Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- Changes since v1: - Use readl to read the srsr register - Mask the lower 7 bits of the SRSR register for getting the correct