[U-Boot] [PATCH 2/2] arm: mx6: cm_fx6: use gpio request

Simon Glass sjg at chromium.org
Thu Oct 23 05:06:55 CEST 2014


On 2 October 2014 08:17, Nikita Kiryanov <nikita at compulab.co.il> wrote:
> Use gpio_request for all the gpios that are utilized by various
> subsystems in cm-fx6, and refactor the relevant init functions
> so that all gpios are requested during board_init(), not during
> subsystem init, thus avoiding the need to manage gpio ownership
> each time a subsystem is initialized.
>
> The new division of labor is:
> During board_init() muxes are setup and gpios are requested.
> During subsystem init gpios are toggled.
>
> Cc: Igor Grinberg <grinberg at compulab.co.il>
> Cc: Simon Glass <sjg at chromium.org>
> Signed-off-by: Nikita Kiryanov <nikita at compulab.co.il>
> ---
>  board/compulab/cm_fx6/cm_fx6.c | 133 +++++++++++++++++++++++++++++------------
>  1 file changed, 94 insertions(+), 39 deletions(-)
>

Applied to u-boot-dm/master, thanks!


More information about the U-Boot mailing list