]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: mx6: cm_fx6: use gpio request
authorNikita Kiryanov <nikita@compulab.co.il>
Thu, 2 Oct 2014 14:17:24 +0000 (17:17 +0300)
committerSimon Glass <sjg@chromium.org>
Wed, 22 Oct 2014 16:36:55 +0000 (10:36 -0600)
commit8f488c1bac744bcaa8558c9d099144ea70e8316d
tree5fdb6a0adec955758dd6b33627916709ea9820df
parentc6f3f32356b21f3220cfb4a17c37645249ba6d30
arm: mx6: cm_fx6: use gpio request

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@compulab.co.il>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
board/compulab/cm_fx6/cm_fx6.c