From: Wolfgang Denk Date: Fri, 05 Sep 2014 10:23:47 +0200 Subject: [U-Boot] [PATCH v6 01/17] arm: ls102xa: Add Freescale LS102xA SoC support In-Reply-To: <1409895853-17736-2-git-send-email-alison.wang@freescale.com> References: <1409895853-17736-1-git-send-email-alison.wang@freescale.com> <1409895853-17736-2-git-send-email-alison.wang@freescale.com> Message-ID: <20140905082347.10D4B380E22@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Alison Wang, In message <1409895853-17736-2-git-send-email-alison.wang@freescale.com> you wrote: > > + unsigned long sysclk = CONFIG_SYS_CLK_FREQ; > + > + sys_info->freq_systembus = sysclk; > +#ifdef CONFIG_DDR_CLK_FREQ > + sys_info->freq_ddrbus = CONFIG_DDR_CLK_FREQ; > +#else > + sys_info->freq_ddrbus = sysclk; > +#endif I think this should be simplified into a #ifndef CONFIG_DDR_CLK_FREQ #define CONFIG_DDR_CLK_FREQ CONFIG_SYS_CLK_FREQ #endif somewhere in a header file, and getting rid of the #ifdef here? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Drun'? 'm not drun'! You woudn' dare call m' drun' if I was sober! - Terry Pratchett, _Men at Arms_