u-boot/arch/x86/lib
Simon Glass 7ac99be6e2 x86: Add an ICH6 pin configuration driver
Add a driver which sets up the pin configuration on x86 devices with an ICH6
(or later) Platform Controller Hub.

The driver is not in the pinctrl uclass due to some oddities of the way x86
devices work:

- The GPIO controller is not present in I/O space until it is set up
- This is done by writing a register in the PCH
- The PCH has a driver which itself uses PCI, another driver
- The pinctrl uclass requires that a pinctrl device be available before any
other device can be probed

It would be possible to work around the limitations by:
- Hard-coding the GPIO address rather than reading it from the PCH
- Using special x86 PCI access to set the GPIO address in the PCH

However it is not clear that this is better, since the pin configuration
driver does not actually provide normal pin configuration services - it
simply sets up all the pins statically when probed. While this remains the
case, it seems better to use a syscon uclass instead. This can be probed
whenever it is needed, without any limitations.

Also add an 'invert' property to support inverting the input.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
2016-03-17 10:27:25 +08:00
..
efi x86: Add helper code for running from EFI 2015-08-05 08:44:08 -06:00
fsp x86: Update microcode for secondary CPUs 2016-03-17 10:27:25 +08:00
acpi_table.c x86: Change write_acpi_tables() signature a little bit 2016-03-17 10:27:22 +08:00
asm-offsets.c x86: Add support for passing tables into U-Boot 2015-08-05 08:44:07 -06:00
bios.c dm: x86: pci: Adjust bios_run_on_x86() to use the DM PCI API 2016-01-12 10:19:09 -07:00
bios.h x86: move arch-specific asmlinkage to <asm/linkage.h> 2014-12-15 07:22:53 -07:00
bios_asm.S x86: bios: Synchronize stack between real and protected mode 2015-07-14 18:03:18 -06:00
bios_interrupts.c dm: Convert bios_interrupts to use DM PCI API 2016-01-12 10:19:09 -07:00
bootm.c Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
cmd_boot.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cmd_mtrr.c x86: cmd_mtrr: Improve MTRR list information 2015-07-14 18:03:18 -06:00
coreboot_table.c x86: Implement functions for writing coreboot table 2016-03-17 10:27:22 +08:00
e820.c x86: Move install_e820_map() out of zimage.c 2015-10-21 07:46:25 -06:00
gcc.c Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
i8254.c x86: Rename pcat_ to i8254 and i8259 accordingly 2015-11-13 06:46:18 -08:00
i8259.c x86: Rename pcat_ to i8254 and i8259 accordingly 2015-11-13 06:46:18 -08:00
init_helpers.c x86: Remove calculate_relocation_address() 2015-08-26 07:54:07 -07:00
interrupts.c x86: Rename CONFIG_SYS_NUM_IRQS to SYS_NUM_IRQS 2015-11-13 06:46:16 -08:00
lpc-uclass.c x86: Add some missing global_data declarations in files that use gd 2015-08-05 08:42:41 -06:00
Makefile x86: Add an ICH6 pin configuration driver 2016-03-17 10:27:25 +08:00
mpspec.c dm: Use uclass_first_device_err() where it is useful 2016-03-14 15:34:50 -06:00
mrccache.c x86: Don't show an error when the MRC cache is up to date 2016-01-24 12:08:17 +08:00
northbridge-uclass.c dm: x86: Add a northbridge uclass 2016-01-24 12:08:16 +08:00
physmem.c x86: Move paging functions into cpu.c 2014-10-28 20:42:51 -06:00
pinctrl_ich6.c x86: Add an ICH6 pin configuration driver 2016-03-17 10:27:25 +08:00
pirq_routing.c x86: irq: Move irq_router to a per driver priv 2016-02-05 12:47:22 +08:00
ramtest.c x86: ivybridge: Implement SDRAM init 2014-11-21 07:34:15 +01:00
relocate.c x86: Allow relocation code to build without text base 2015-08-05 08:44:06 -06:00
sfi.c x86: Add support for the Simple Firmware Interface (SFI) 2015-04-29 21:02:33 -06:00
smbios.c x86: Add SMBIOS table support 2015-10-21 07:46:26 -06:00
string.c Replace <compiler.h> with <linux/compiler.h> 2014-12-08 09:35:46 -05:00
tables.c x86: Support booting SeaBIOS 2016-03-17 10:27:22 +08:00
zimage.c x86: Move install_e820_map() out of zimage.c 2015-10-21 07:46:25 -06:00