From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Thu, 13 Sep 2012 14:31:39 +0200 Subject: [U-Boot] [PATCH 4/4 v3] xilinx: Add new Zynq board In-Reply-To: <5051AD9D.8050305@monstr.eu> References: <1345098630-27902-1-git-send-email-monstr@monstr.eu> <201209131135.08970.marex@denx.de> <5051AD9D.8050305@monstr.eu> Message-ID: <201209131431.39332.marex@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 Michal Simek, > On 09/13/2012 11:35 AM, Marek Vasut wrote: > > Dear Michal Simek, > > > > [...] > > > >> +int board_init(void) > >> +{ > >> + icache_enable(); > > > > Uh oh ... isn't this on by default when CONFIG_ICACHE_OFF isn't present? > > Will check this one. > > >> + return 0; > >> +} > >> + > >> +int board_late_init(void) > >> +{ > >> + return 0; > > > > You don't need this. > > Will check it too. > > >> +} > >> + > >> +#ifdef CONFIG_CMD_NET > >> +int board_eth_init(bd_t *bis) > >> +{ > >> + int ret = 0; > >> + > >> +#if defined(CONFIG_ZYNQ_GEM) && defined(CONFIG_ZYNQ_GEM_BASEADDR0) > >> + ret |= zynq_gem_initialize(bis, CONFIG_ZYNQ_GEM_BASEADDR0); > > > > ret |= ? ;-) > > The reason is that I will wire axi_ethernet and ethernet lite drivers here > too. If this is the problem I can fix it but the next patch will return it > to this style. Logical OR on signed type is wrong. Besides, if one fails, you don't want to init the others. > >> +#endif > >> + > >> + return ret; > >> +} > >> +#endif > >> + > >> +int dram_init(void) > >> +{ > >> + gd->ram_size = CONFIG_SYS_SDRAM_SIZE; > >> + return 0; > >> +} > >> + > >> +void reset_cpu(ulong addr) > >> +{ > >> + while (1) > >> + ; > >> +} > > > > This is definitelly CPU specific. > > [...] > > Right, Moving to different folder make sense. Directory, no wind blows here :p > Thanks, > Michal Best regards, Marek Vasut