[U-Boot] [PATCH] net: designware: Make driver independent from DM_GPIO again
Simon Glass
sjg at chromium.org
Wed Jun 29 05:28:04 CEST 2016
On 27 June 2016 at 03:17, Alexey Brodkin <Alexey.Brodkin at synopsys.com> wrote:
> Commit 90b7fc924adf "net: designware: support phy reset device-tree
> bindings" made DW GMAC driver dependent on DM_GPIO by unconditional
> usage of purely DM_GPIO stuff like:
> * dm_gpio_XXX()
> * gpio_request_by_name()
>
> But since that driver as of today might be easily used without
> DM_GPIO (that's the case for Synopsys AXS10x boards) we're
> shielding all DM_GPIO things by ifdefs.
>
> Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Beniamino Galvani <b.galvani at gmail.com>
> Cc: Joe Hershberger <joe.hershberger at ni.com>
> Cc: Sjoerd Simons <sjoerd.simons at collabora.co.uk>
> Cc: Sonic Zhang <sonic.zhang at analog.com>
> Cc: Bin Meng <bmeng.cn at gmail.com>
> Cc: Marek Vasut <marex at denx.de>
> ---
> drivers/net/designware.c | 10 ++++++++--
> drivers/net/designware.h | 7 ++++++-
> 2 files changed, 14 insertions(+), 3 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list