From: Chin Liang See Date: Wed, 5 Mar 2014 11:35:42 -0600 Subject: [U-Boot] [U-Boot, v3] nand/denali: Adding Denali NAND driver support In-Reply-To: <20140304022441.GA28533@home.buserror.net> References: <1393520706-10312-1-git-send-email-clsee@altera.com> <20140304022441.GA28533@home.buserror.net> Message-ID: <1394040942.3307.8.camel@clsee-VirtualBox.altera.com> 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, 2014-03-03 at 20:24 -0600, Scott Wood wrote: > On Thu, Feb 27, 2014 at 11:05:06AM -0600, Chin Liang See wrote: > > To add the Denali NAND driver support into U-Boot. It required > > information such as register base address from configuration > > header file within include/configs folder. > > > > Signed-off-by: Chin Liang See > > Cc: Artem Bityutskiy > > Cc: David Woodhouse > > Cc: Brian Norris > > Cc: Scott Wood > > > > --- > > Changes for v3 > > - Fixed coding style > > Changes for v2 > > - Enable this driver support for SOCFPGA > > Sorry, didn't see this when I replied to v2. Some of those comments > still apply, though. Yup, fixed > > > +/* > > + * This macro divides two integers and rounds fractional values up > > + * to the nearest integer value. > > + */ > > +#define CEIL_DIV(X, Y) (((X)%(Y)) ? ((X)/(Y)+1) : ((X)/(Y))) > > How is this different from DIV_ROUND_UP(), other than being more > complicated? All change to use DIV_ROUND_UP as no need to duplicate Thanks Chin Liang > > -Scott >