Re: [U-Boot] [PATCH] sunxi: Fix gmac not working due to cpu_eth_init no longer being called

2016-03-19 Thread Hans de Goede
Hi, On 17-03-16 14:21, Ian Campbell wrote: On Thu, 2016-03-17 at 14:02 +0100, Hans de Goede wrote: cpu_eth_init is no longer called for dm enabled eth drivers, this was causing the sunxi gmac eth controller to no longer work in u- boot. This commit fixes this by moving the gpio setup to gpio_i

Re: [U-Boot] [PATCH] sunxi: Fix gmac not working due to cpu_eth_init no longer being called

2016-03-19 Thread Ian Campbell
On Thu, 2016-03-17 at 15:38 +0100, Hans de Goede wrote: > Hi, > > On 17-03-16 14:21, Ian Campbell wrote: > > > > On Thu, 2016-03-17 at 14:02 +0100, Hans de Goede wrote: > > > > > > cpu_eth_init is no longer called for dm enabled eth drivers, this > > > was causing the sunxi gmac eth controller t

[U-Boot] [PATCH] sunxi: Fix gmac not working due to cpu_eth_init no longer being called

2016-03-19 Thread Hans de Goede
cpu_eth_init is no longer called for dm enabled eth drivers, this was causing the sunxi gmac eth controller to no longer work in u-boot. This commit fixes this by moving the gpio setup to gpio_init() and by calling the clock, reset and pinmux setup function from s_init(). Note that the mdelay is

Re: [U-Boot] [PATCH] sunxi: Fix gmac not working due to cpu_eth_init no longer being called

2016-03-19 Thread Ian Campbell
On Thu, 2016-03-17 at 14:02 +0100, Hans de Goede wrote: > cpu_eth_init is no longer called for dm enabled eth drivers, this > was causing the sunxi gmac eth controller to no longer work in u- > boot. > > This commit fixes this by moving the gpio setup to gpio_init() and by > calling the clock, res