]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r311734, r311735, r311951, r314071:
authorian <ian@FreeBSD.org>
Wed, 1 Mar 2017 20:22:25 +0000 (20:22 +0000)
committerian <ian@FreeBSD.org>
Wed, 1 Mar 2017 20:22:25 +0000 (20:22 +0000)
commit729b5d708ca03f0facd9c13337866fa1cb306ebe
treeca146ad2064af9b741545d2cfdcd58647186bb3e
parentb6db1fb93d0aefdf2d82e9b20ca36094d5a3cb32
MFC r311734, r311735, r311951, r314071:

  Add new helper routines for sdhci bridge drivers that use gpio pins for
  card presence and write protect switch detection.

  Use the new sdhci_fdt_gpio helper functions to add full support for FDT
  gpio pins for detecting card insert/remove and write protect for ti_sdhci.

  Include sys/systm.h for use of bootverbose.

  Revert to ti_sdhci driver's historic behavior: assume an sd card is
  writable if the fdt data doesn't provide a gpio pin for reading the write
  protect switch and also doesn't contain a "wp-disable" property.
sys/arm/ti/ti_sdhci.c
sys/conf/files
sys/dev/sdhci/sdhci_fdt_gpio.c [new file with mode: 0644]
sys/dev/sdhci/sdhci_fdt_gpio.h [new file with mode: 0644]