]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add new helper routines for sdhci bridge drivers that use gpio pins for
authorian <ian@FreeBSD.org>
Mon, 9 Jan 2017 01:54:36 +0000 (01:54 +0000)
committerian <ian@FreeBSD.org>
Mon, 9 Jan 2017 01:54:36 +0000 (01:54 +0000)
commit98ba506e4b8c97a2b956cc915b713cef19ee02e0
tree61eebf6371dbbd228e88fcb7a41097df74416277
parentd37b42180f70f8c7f342c10afb003a79d6ecd8e8
Add new helper routines for sdhci bridge drivers that use gpio pins for
card presence and write protect switch detection.

A bridge driver just needs to call the setup routine in its attach(), the
teardown in its detach(), and write a couple tiny glue functions to connect
the sdhci interface functions to the new helper functions.  This is not
extensively documented, but multiple examples will exist real soon.
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]