[U-Boot] [PATCH 12/23] x86: ich6_gpio: Convert to use proper DM API

Simon Glass sjg at chromium.org
Mon Feb 1 17:20:00 CET 2016


On 1 February 2016 at 02:40, Bin Meng <bmeng.cn at gmail.com> wrote:
> At present this GPIO driver still uses the legacy PCI API. Now that
> we have proper PCH drivers we can use those to obtain the information
> we need. While the device tree has nodes for the GPIO peripheral it is
> not in the right place. It should be on the PCI bus as a sub-peripheral
> of the PCH device.
>
> Update the device tree files to show the GPIO controller within the PCH,
> so that PCI access works as expected. This also adds #address-cells and
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
>  arch/x86/dts/bayleybay.dts         |  86 ++++++++++++-------------
>  arch/x86/dts/chromebook_link.dts   |  42 ++++++-------
>  arch/x86/dts/chromebox_panther.dts |  44 ++++++-------
>  arch/x86/dts/crownbay.dts          |  30 ++++-----
>  arch/x86/dts/galileo.dts           |  28 +++++----
>  arch/x86/dts/minnowmax.dts         |  86 ++++++++++++-------------
>  drivers/gpio/intel_ich6_gpio.c     | 125 +++++++------------------------------
>  7 files changed, 186 insertions(+), 255 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>
Tested on Minnowmax:
Tested-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list