Skip to content

MMC, I2C, HTCPLD for HTC Herald

Cory Maccarrone linux-omap 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Add MMC board code common to HTC devicesarch/arm/mach-omap1/htc-mmc.c arch/arm/mach-omap1/htc-mmc.h+130 -02 replies
2/4gpio: Allow for extended GPIO spacearch/arm/plat-omap/Kconfig arch/arm/plat-omap/include/plat/gpio.h+25 -00 replies
3/4Add allowance for extra IRQ spacearch/arm/plat-omap/Kconfig arch/arm/plat-omap/include/plat/irqs.h+23 -10 replies
4/4HTCHERALD: MMC, I2C, HTCPLD and related devicesarch/arm/configs/htcherald_defconfig arch/arm/mach-omap1/Kconfig arch/arm/mach-omap1/Makefile +1 more+600 -471 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] MMC, I2C, HTCPLD for HTC Herald

This patch set implements the functionality necessary to add in MMC card support, I2C/HTCPLD support, and related functionality.

The first patch adds a set of common routines that all OMAP850-related HTC smartphone devices can make use of (in my kernel tree, there's at least a dozen boards that make use of the same MMC code; these haven't been submitted yet).

The second and third patches implement the ability for omap1 devices to extend their GPIO and IRQ space by 64 or 128, similar to some omap2 devices.

The extended GPIO/IRQ space is required for the fourth patch, which adds in board support for the HTCPLD chip on the HTC Herald. This chip is a GPIO/IRQ extender, and with the additional GPIOs and IRQs, the normal default maximum is exceeded, necessitating the expansion. Additionally, this fourth patch adds in MMC and I2C support for the herald, in addition to tying gpio-keys and led-gpio support to various pins on the HTCPLD.

With all of these changes in place, it is possible to boot a linux distribution installed on SD card and make use of all the keys on the device.

Cory Maccarrone (4):
[OMAP1] Add MMC board code common to HTC devices [OMAP] gpio: Allow for extended GPIO space [OMAP] Add allowance for extra IRQ space [OMAP] HTCHERALD: MMC, I2C, HTCPLD and related devices

 arch/arm/configs/htcherald_defconfig   |  376 ++++++++++++++++++++++++++++----
 arch/arm/mach-omap1/Kconfig            |    2 +
 arch/arm/mach-omap1/Makefile           |    2 +-
 arch/arm/mach-omap1/board-htcherald.c  |  267 ++++++++++++++++++++++-
 arch/arm/mach-omap1/htc-mmc.c          |  104 +++++++++
 arch/arm/mach-omap1/htc-mmc.h          |   26 +++
 arch/arm/plat-omap/Kconfig             |   36 +++
 arch/arm/plat-omap/include/plat/gpio.h |    7 +
 arch/arm/plat-omap/include/plat/irqs.h |    6 +-
 9 files changed, 778 insertions(+), 48 deletions(-)
 create mode 100644 arch/arm/mach-omap1/htc-mmc.c
 create mode 100644 arch/arm/mach-omap1/htc-mmc.h