[PATCH] gpio: mxc_gpio: Improve to use ofdata_to_platdata

sbabic at denx.de sbabic at denx.de
Thu Jul 16 19:49:03 CEST 2020


> Current mxc_gpio DM driver allocates the platdata in bind function to
> handle both OF_CONTROL enabled case and disabled case. This implementation
> puts the devfdt_get_addr in bind, which introduces much overhead especially
> in board_f phase.
> Change the driver to a common way for handling the cases by using
> ofdata_to_platdata and using DM framework to allocate platdata.
> Signed-off-by: Ye Li <ye.li at nxp.com>
> Reviewed-by: Peng Fan <peng.fan at nxp.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the U-Boot mailing list