[U-Boot] [PATCHv2] socfpga: initialize designware ethernet

Marek Vasut marex at denx.de
Sun Jul 13 15:30:56 CEST 2014


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


More information about the U-Boot mailing list