[U-Boot] [PATCH 4/4] mx23_olinuxino: Add ethernet support

Fabio Estevam festevam at gmail.com
Mon Jan 28 20:48:51 CET 2013


On Mon, Jan 28, 2013 at 5:14 PM, Otavio Salvador
<otavio at ossystems.com.br> wrote:

> +#ifdef CONFIG_CMD_NET
> +int board_eth_init(bd_t *bis)
> +{
> +       /* Power-on Ethernet */
> +       gpio_direction_output(MX23_PAD_GPMI_ALE__GPIO_0_17, 1);
> +}
> +#endif

This function expects to return an integer, and there is no return value here.

Also, maybe you could set the GPIO inside board_early_init_f() like we
do on mx28.


More information about the U-Boot mailing list