On Tue 2015-12-01 19:51:39, Marek Vasut wrote: > On Tuesday, December 01, 2015 at 05:48:32 PM, dingu...@opensource.altera.com > wrote: > > From: Dinh Nguyen <dingu...@opensource.altera.com> > > > > Add the defines for the reset manager and some basic reset functionality. > > > > Signed-off-by: Dinh Nguyen <dingu...@opensource.altera.com> > > --- > > v2: integrate into a5/c5 reset manager > > [...] > > Hi! > > > diff --git a/arch/arm/mach-socfpga/reset_manager.c > > b/arch/arm/mach-socfpga/reset_manager.c index b6beaa2..b955d39 100644 > > --- a/arch/arm/mach-socfpga/reset_manager.c > > +++ b/arch/arm/mach-socfpga/reset_manager.c > > @@ -18,7 +18,51 @@ static const struct socfpga_reset_manager > > *reset_manager_base = static struct socfpga_system_manager *sysmgr_regs = > > (struct socfpga_system_manager *)SOCFPGA_SYSMGR_ADDRESS; > > > > -/* Assert or de-assert SoCFPGA reset manager reset. */ > > +/* > > + * Assert or de-assert SoCFPGA reset manager reset. > > + */ > > +#if defined(CONFIG_TARGET_SOCFPGA_ARRIA10) > > +void socfpga_per_reset(u32 reset, int set) > > +{ > > + const void *reg; > > OK, Dinh, come on. I know you _can_ do better than this crap.
Umm. Take a look. We already have that code in tree :-). Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot