[U-Boot] [PATCH V3 18/19] OMAP3+: reset: Create a common reset layer.

Tom Rini trini at ti.com
Mon Mar 12 16:47:39 CET 2012


On Mon, Mar 12, 2012 at 06:03:32PM +0530, R Sricharan wrote:

> The reset.S has the function to do a warm reset on OMAP
> based socs. Moving this to a reset.c file so that this
> acts a common layer to add any reset related functionality
> for the future.
> 
> Signed-off-by: R Sricharan <r.sricharan at ti.com>

One more change:

> +++ b/arch/arm/cpu/armv7/omap-common/reset.c
[snip]
> +static void omap_reset_cpu(unsigned long ignored)
> +{
> +	writel(PRM_RSTCTRL_RESET, PRM_RSTCTRL);
> +}
> +void reset_cpu(unsigned long ignored)
> +	__attribute__((weak, alias("omap_reset_cpu")));

Add <linux/compiler.h> and then just:
static void __weak omap_reset_cpu(unsigned long ignored)

-- 
Tom


More information about the U-Boot mailing list