From: Tom Rini Date: Mon, 12 Mar 2012 08:47:39 -0700 Subject: [U-Boot] [PATCH V3 18/19] OMAP3+: reset: Create a common reset layer. In-Reply-To: <1331555612-28977-1-git-send-email-r.sricharan@ti.com> References: <1331555152-28911-1-git-send-email-r.sricharan@ti.com> <1331555612-28977-1-git-send-email-r.sricharan@ti.com> Message-ID: <20120312154739.GA2357@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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 and then just: static void __weak omap_reset_cpu(unsigned long ignored) -- Tom