From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Sun, 13 Jul 2014 15:30:56 +0200 Subject: [U-Boot] [PATCHv2] socfpga: initialize designware ethernet In-Reply-To: <20140713080650.GA19607@amd.pavel.ucw.cz> References: <20140711094556.GB4385@amd.pavel.ucw.cz> <20140713080650.GA19607@amd.pavel.ucw.cz> Message-ID: <201407131530.56496.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 On Sunday, July 13, 2014 at 10:06:50 AM, Pavel Machek wrote: [...] > @@ -14,3 +16,19 @@ int dram_init(void) > gd->ram_size = get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE); > return 0; > } > + > + > +/* > + * DesignWare Ethernet initialization > + */ > +/* We know all the init functions have been run now */ > +int board_eth_init(bd_t *bis) This would be cpu_eth_init() > +{ > +#if !defined(CONFIG_SOCFPGA_VIRTUAL_TARGET) && !defined(CONFIG_SPL_BUILD) > + /* initialize and register the emac */ > + return designware_initialize(CONFIG_EMAC_BASE, > + CONFIG_PHY_INTERFACE_MODE); > +#else > + return 0; > +#endif > +} [...] Best regards, Marek Vasut