HomeFreeBSD

bcm2835_gpio: Handle BCM2711 pin configuration

Description

bcm2835_gpio: Handle BCM2711 pin configuration

Add support for GPIO internal pull up/down configuration on RPi4 family.

BCM2711 SoC on 4th generation Raspberry Pi changed the way to configure
its GPIO pins' internal pull up/down resistors. NetBSD already have
support for this change, and port it to FreeBSD is trivial.

This patch, based on the NetBSD commit adds the appropriate method for
BCM2711 and now we can properly configure the GPIO pins' pull status.

PR: 256372
Reviewed by: mhorne
Obtained from: NetBSD bb88cfa64ad8
Pull Request: https://github.com/freebsd/freebsd-src/pull/746

(cherry picked from commit 9d35469e9a6892b3845f66d3513f5c528fe68a77)

Details

Provenance
t_uemura_macome.co.jpAuthored on May 28 2023, 12:56 PM
mhorneCommitted on Jun 9 2023, 7:48 PM
Parents
rGe48e530e1f3b: hier(7): fix a couple mandoc warnings
Branches
Unknown
Tags
Unknown