[U-Boot] [PATCH 00/23] x86: Convert to use DM PCI APIs completely

Bin Meng bmeng.cn at gmail.com
Mon Feb 1 10:40:35 CET 2016


There are still some codes that use the legacy PCI APIs to access
the configuration space registers. This series converts those codes
to completely use DM PCI APIs.

This includes adding several new ops to the PCH uclass driver, and
some clean up to the SPI/GPIO/IRQ drivers.

Tested on QEMU and Crown Bay. This series is available in pci-working
branch of u-boot-x86 repo.


Bin Meng (23):
  spi: ich: Some clean up
  spi: ich: Use compatible strings to distinguish controller version
  spi: ich: Change PCHV_ to ICHV_
  x86: tnc: Drop unprotect_spi_flash()
  x86: quark: Drop unprotect_spi_flash()
  dm: pch: Remove pch_get_version op
  dm: pch: Rename get_sbase op to get_spi_base
  dm: pch: Add get_gpio_base op
  x86: pch: Implement get_gpio_base op
  dm: pch: Add get_io_base op
  x86: pch9: Implement get_io_base op
  x86: ich6_gpio: Convert to use proper DM API
  x86: Drop asm/arch/gpio.h
  x86: minnowmax: Drop io-base property in the pch_pinctrl node
  x86: irq: Get irq_router's bdf via dm_pci_get_bdf()
  x86: irq: Move irq_router to a per driver priv
  x86: irq: Convert to use DM PCI API
  x86: tnc: Change disable_igd() to have a return value
  x86: tnc: Use DM PCI API in disable_igd()
  x86: tnc: Remove IGD and SDVO devices from driver model
  x86: qemu: Convert to use DM PCI API
  x86: pci: Use DM PCI APIs in pci_assign_irqs()
  x86: pci: Drop legacy PCI APIs

 arch/x86/cpu/irq.c                         |  80 +++++++++---------
 arch/x86/cpu/ivybridge/bd82x6x.c           |  43 ++++++++--
 arch/x86/cpu/pci.c                         |  59 +-------------
 arch/x86/cpu/qemu/qemu.c                   |  34 ++++----
 arch/x86/cpu/quark/quark.c                 |  17 ----
 arch/x86/cpu/queensbay/irq.c               |   2 +-
 arch/x86/cpu/queensbay/tnc.c               |  80 +++++++++++++-----
 arch/x86/dts/bayleybay.dts                 |  88 ++++++++++----------
 arch/x86/dts/broadwell_som-6896.dts        |   2 +-
 arch/x86/dts/chromebook_link.dts           |  44 +++++-----
 arch/x86/dts/chromebox_panther.dts         |  46 ++++++-----
 arch/x86/dts/crownbay.dts                  |  32 ++++----
 arch/x86/dts/galileo.dts                   |  30 +++----
 arch/x86/dts/minnowmax.dts                 |  89 ++++++++++----------
 arch/x86/include/asm/arch-baytrail/gpio.h  |  13 ---
 arch/x86/include/asm/arch-coreboot/gpio.h  |  13 ---
 arch/x86/include/asm/arch-efi/gpio.h       |  10 ---
 arch/x86/include/asm/arch-ivybridge/gpio.h |  13 ---
 arch/x86/include/asm/arch-qemu/gpio.h      |  13 ---
 arch/x86/include/asm/arch-quark/gpio.h     |  13 ---
 arch/x86/include/asm/arch-queensbay/gpio.h |  13 ---
 arch/x86/include/asm/gpio.h                |   1 -
 arch/x86/include/asm/pci.h                 |  12 ---
 arch/x86/include/asm/pirq_routing.h        |  12 ++-
 arch/x86/lib/pirq_routing.c                |  12 +--
 board/intel/galileo/galileo.c              |   5 +-
 drivers/gpio/intel_ich6_gpio.c             | 125 ++++++-----------------------
 drivers/pch/pch-uclass.c                   |  30 ++++---
 drivers/pch/pch7.c                         |  43 ++++++++--
 drivers/pch/pch9.c                         |  54 +++++++++++--
 drivers/spi/ich.c                          |  76 ++++++++----------
 drivers/spi/ich.h                          |  61 ++++++++++----
 include/configs/crownbay.h                 |   1 -
 include/pch.h                              |  64 +++++++++------
 34 files changed, 588 insertions(+), 642 deletions(-)
 delete mode 100644 arch/x86/include/asm/arch-baytrail/gpio.h
 delete mode 100644 arch/x86/include/asm/arch-coreboot/gpio.h
 delete mode 100644 arch/x86/include/asm/arch-efi/gpio.h
 delete mode 100644 arch/x86/include/asm/arch-ivybridge/gpio.h
 delete mode 100644 arch/x86/include/asm/arch-qemu/gpio.h
 delete mode 100644 arch/x86/include/asm/arch-quark/gpio.h
 delete mode 100644 arch/x86/include/asm/arch-queensbay/gpio.h

-- 
1.8.2.1



More information about the U-Boot mailing list