[U-Boot] [PATCH V3 1/5] i.mx: introduce the armv7/imx-common folder

Jason Hui jason.hui at linaro.org
Thu Dec 1 02:51:09 CET 2011


On Thu, Dec 1, 2011 at 8:04 AM, Fabio Estevam <festevam at gmail.com> wrote:
> On Fri, Nov 25, 2011 at 8:18 AM, Jason Liu <jason.hui at linaro.org> wrote:
>
>> +static char *get_reset_cause(void)
>> +{
>> +       u32 cause;
>> +       struct src *src_regs = (struct src *)SRC_BASE_ADDR;
>> +
>> +       cause = readl(&src_regs->srsr);
>> +       writel(cause, &src_regs->srsr);
>
> Isn´t this writel unneeded?

Some bits in this register is w1c, so clear it here.

>
> Regards,
>
> Fabio Estevam


More information about the U-Boot mailing list