Skip to content

Commit 1fc1a22

Browse files
committed
Add a GPIO driver for the Arm pl061 controller
A PL061 is a simple 8 pin GPIO controller. This GPIO device is used to signal an internal request for shutdown on some virtual machines including Arm-based Amazon EC2 instances. Submitted by: Ali Saidi <alisaidi_amazon.com> (previouss version) Reviewed by: Ali Saidi, manu Differential Revision: https://reviews.freebsd.org/D24065
1 parent 30fe2bb commit 1fc1a22

File tree

6 files changed

+843
-0
lines changed

6 files changed

+843
-0
lines changed

sys/arm64/conf/GENERIC

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ device gpioregulator
257257
device ls1046_gpio # LS1046A GPIO controller
258258
device mv_gpio # Marvell GPIO controller
259259
device mvebu_pinctrl # Marvell Pinmux Controller
260+
device pl061 # Arm PL061 GPIO controller
260261
device rk_gpio # RockChip GPIO Controller
261262
device rk_pinctrl # RockChip Pinmux Controller
262263

sys/conf/files.arm64

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,9 @@ dev/iicbus/sy8106a.c optional sy8106a fdt
305305
dev/iicbus/twsi/mv_twsi.c optional twsi fdt
306306
dev/iicbus/twsi/a10_twsi.c optional twsi fdt
307307
dev/iicbus/twsi/twsi.c optional twsi fdt
308+
dev/gpio/pl061.c optional pl061 gpio
309+
dev/gpio/pl061_acpi.c optional pl061 gpio acpi
310+
dev/gpio/pl061_fdt.c optional pl061 gpio fdt
308311
dev/hwpmc/hwpmc_arm64.c optional hwpmc
309312
dev/hwpmc/hwpmc_arm64_md.c optional hwpmc
310313
dev/mbox/mbox_if.m optional soc_brcm_bcm2837

0 commit comments

Comments
 (0)