[U-Boot] [PATCH v3 21/26] x86: ivybridge: Add support for early GPIO init

Simon Glass sjg at chromium.org
Fri Nov 21 07:52:13 CET 2014


In 13 November 2014 06:42, Simon Glass <sjg at chromium.org> wrote:
> When not relying on Coreboot for GPIO init the GPIOs must be set up
> correctly. This is currently done statically through a rather ugly method.
> As the GPIOs are figured out they can be moved to the device tree and set
> up as needed rather than all at the start.
>
> In this implementation, board files should call ich_gpio_set_gpio_map()
> before the GPIO driver is used in order to provide the GPIO information.
> We use the early PCI interface so that this driver can now be used before
> relocation.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v3: None
> Changes in v2: None
>
>  arch/x86/include/asm/arch-coreboot/gpio.h |   5 --
>  arch/x86/include/asm/arch-ivybridge/pch.h |  16 ++++
>  arch/x86/include/asm/global_data.h        |   1 +
>  arch/x86/include/asm/gpio.h               | 142 +++++++++++++++++++++++++++++-
>  drivers/gpio/intel_ich6_gpio.c            |  79 ++++++++++++++---
>  5 files changed, 227 insertions(+), 16 deletions(-)

Applied to u-boot-x86.


More information about the U-Boot mailing list