]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Introduce qoriq_gpio_pic driver
authorKornel Duleba <mindal@semihalf.com>
Tue, 2 Nov 2021 10:30:01 +0000 (11:30 +0100)
committerWojciech Macek <wma@FreeBSD.org>
Sat, 6 Nov 2021 08:08:45 +0000 (09:08 +0100)
commit463b6ba05a69edbdaaf79425ba9fdc9dc64eae70
tree685a54d37639b9f6795efa11ccc677bc2cc5125e
parentb8b7c0dda9a085902f702f8c89271b852aa898a4
Introduce qoriq_gpio_pic driver

It adds the PIC functionality on top of qoriq_gpio driver.
We need a separate module since the powerpc PIC API is completely
different than on other architectures.

Two types of intr_map_data are supported:
INTR_MAP_DATA_GPIO and INTR_MAP_DATA_FDT.

This way interrupts can be allocated using the userspace gpio
interrupt allocation method, as well as directly from simplebus.
The latter can be used by devices that have its irq routed to a GPIO pin.

Obtained from: Semihalf
Sponsored by: Alstom Group
sys/arm64/qoriq/qoriq_gpio_pic.c [new file with mode: 0644]
sys/conf/files.arm64
sys/dev/gpio/qoriq_gpio.c