From: Scott Wood Date: Fri, 16 Aug 2013 14:19:15 -0500 Subject: [U-Boot] about CONFIG_SYS_GENERIC_BOARD In-Reply-To: References: <1376574434-48664-1-git-send-email-fenghua@phytium.com.cn> Message-ID: <1376680755.31636.278.camel@snotra.buserror.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, 2013-08-16 at 13:02 +0800, FengHua wrote: > hi Simon, > I have worked on generic board for a few days, but something confuse me. > Why it is needed? > Each processor architecture has different features, this will > affect processor specific and board specific code. Putting board_init_* > code of each platform into one file with many macro switch make things > messy, the board_f.c and board_r.c become very complicated and less > readable. Is it really needed? Most of the stuff in arch/arm/lib/board.c is not processor specific (and certainly not board specific). It's poorly named and should have been called something like "init.c". -Scott