]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add GPIO support for QorIQ boards.
authorMarcin Wojtas <mw@FreeBSD.org>
Mon, 25 May 2020 14:55:37 +0000 (14:55 +0000)
committerMarcin Wojtas <mw@FreeBSD.org>
Mon, 25 May 2020 14:55:37 +0000 (14:55 +0000)
commita5dfa67db1f7326981309f27f19a3dd99f5a3ce8
treeda028bf62aedcc611878f7cf68f4ac4d51890f4d
parenteacff8a2482de1bb6d121f222106f1dcfe7f6624
Add GPIO support for QorIQ boards.

This patch adds a GPIO controller support targeted for NXP LS1046A
SoC. The driver implements the following features:
 * setting direction of each pin (IN or OUT)
 * setting the mode of output pins (PUSHPULL or OPENDRAIN)
 * setting the state of each output pin (1 or 0)
 * reading the state of each input pin (1 or 0)

Submitted by: Kamil Koczurek <kek@semihalf.com>
              Dawid Gorecki <dgr@semihalf.com>
Reviewed by: manu
Obtained from: Semihalf
Sponsored by: Alstom Group
Differential Revision: https://reviews.freebsd.org/D24353
sys/arm64/conf/GENERIC
sys/arm64/qoriq/ls1046_gpio.c [new file with mode: 0644]
sys/conf/files.arm64