From: Wolfgang Denk Date: Thu, 17 Dec 2009 21:13:27 +0100 Subject: [U-Boot] [PATCH 7/9] SPEAr310 SoC support added In-Reply-To: <1260955110-5656-8-git-send-email-vipin.kumar@st.com> References: <1260955110-5656-1-git-send-email-vipin.kumar@st.com> <1260955110-5656-2-git-send-email-vipin.kumar@st.com> <1260955110-5656-3-git-send-email-vipin.kumar@st.com> <1260955110-5656-4-git-send-email-vipin.kumar@st.com> <1260955110-5656-5-git-send-email-vipin.kumar@st.com> <1260955110-5656-6-git-send-email-vipin.kumar@st.com> <1260955110-5656-7-git-send-email-vipin.kumar@st.com> <1260955110-5656-8-git-send-email-vipin.kumar@st.com> Message-ID: <20091217201327.3813ED43F21@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 Vipin KUMAR, In message <1260955110-5656-8-git-send-email-vipin.kumar@st.com> you wrote: > > Signed-off-by: Vipin > --- > MAKEALL | 1 + > Makefile | 3 + > board/spear/spear310/Makefile | 52 +++++ > board/spear/spear310/config.mk | 42 ++++ > board/spear/spear310/spr310_board.c | 58 ++++++ > include/configs/spear310.h | 353 +++++++++++++++++++++++++++++++++++ The commit message seems wrong. You just add a new board, not a new SoC. > diff --git a/board/spear/spear310/config.mk b/board/spear/spear310/config.mk > new file mode 100755 > index 0000000..8b7aa05 > --- /dev/null > +++ b/board/spear/spear310/config.mk ... > +ifeq ($(CONSOLE),USB) > +PLATFORM_RELFLAGS += -DCONFIG_SPEAR_USBTTY > +endif > + No trailing empty lines, please. > +int board_nand_init(struct nand_chip *nand) > +{ > + struct misc_regs *const misc_regs_p = > + (struct misc_regs *)CONFIG_SPEAR_MISCBASE; > + > + if (((readl(&misc_regs_p->auto_cfg_reg) & MISC_SOCCFGMSK) == > + MISC_SOCCFG30) || > + ((readl(&misc_regs_p->auto_cfg_reg) & MISC_SOCCFGMSK) == > + MISC_SOCCFG31)) { > + > + return spear_nand_init(nand); > + } else { > + return -1; > + } No else, unindent the "return -1;". > +/* > + * Ethernet MAC driver configuration > + */ > +/* #define CONFIG_SPEAR_SMII */ > +/* #define CONFIG_SPEARMAC */ > +/* #define CONFIG_ETHAUTONEG */ > +/* #define CONFIG_ETHDEBUG */ Don't add dead code (fix globally). > + > +#define CONFIG_SYS_SERIAL1 0xB2000000 > +#define CONFIG_SYS_SERIAL2 0xB2080000 > +#define CONFIG_SYS_SERIAL3 0xB2100000 > +#define CONFIG_SYS_SERIAL4 0xB2180000 > +#define CONFIG_SYS_SERIAL5 0xB2200000 > +#define CONFIG_PL01x_PORTS { (void *)CONFIG_SYS_SERIAL0, \ > + (void *)CONFIG_SYS_SERIAL1, \ > + (void *)CONFIG_SYS_SERIAL2, \ > + (void *)CONFIG_SYS_SERIAL3, \ > + (void *)CONFIG_SYS_SERIAL4, \ > + (void *)CONFIG_SYS_SERIAL5} Indentation / avertical alignment by TABs, please. [Globally.] > +#define CONFIG_BOOTARGS "console=ttyS0 mem=128M " \ ... > +#define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE + \ etc.: Lines too long. 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 The explanation requiring the fewest assumptions is the most likely to be correct. -- William of Occam