]> git.ipfire.org Git - people/ms/u-boot.git/commit
Revert "x86: broadwell: gpio: Remove the codes to set up pin control"
authorSimon Glass <sjg@chromium.org>
Thu, 6 Oct 2016 02:42:09 +0000 (20:42 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 11 Oct 2016 03:55:33 +0000 (11:55 +0800)
commit26f50fbed2f19edf0c4a2eb80e7fa12941764660
tree6e7987ed97025caf8beb9e31f7b05c75a86bc8ee
parent88d915b10f44e044dfd874e201a4ce1fcdbff59a
Revert "x86: broadwell: gpio: Remove the codes to set up pin control"

This makes the assumption that setting up pinctrl in cpu_init_r() is safe.
On samus we need GPIOs before relocation in order to support power control.
This commit fixes the following message on boot:

   initcall sequence ffe5c6f4 failed at call ffe01d3d (err=-1)
   ### ERROR ### Please RESET the board ###

In any case it seems better to leave init to driver model, so that it can
pick up the GPIO driver when it needs it. Since pinctrl is a dependency of
the GPIO driver, we may as well put the dependency there and avoid these
problems.

This reverts commit 9769e05bcf79939bad23a719982dd1f85a110f3c.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/gpio/intel_broadwell_gpio.c