Page MenuHomeFreeBSD

Backend changes to add interrupt support to GPIO pins on bcm2835_gpio (RPi)
ClosedPublic

Authored by loos on Oct 23 2014, 5:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 7, 5:34 PM
Unknown Object (File)
Wed, Dec 18, 4:11 AM
Unknown Object (File)
Wed, Dec 18, 3:21 AM
Unknown Object (File)
Dec 3 2024, 6:32 PM
Unknown Object (File)
Dec 2 2024, 11:50 PM
Unknown Object (File)
Nov 30 2024, 11:38 PM
Unknown Object (File)
Nov 21 2024, 4:27 PM
Unknown Object (File)
Oct 26 2024, 7:04 AM
Subscribers

Details

Summary

These are the changes to the backend GPIO driver on RPi, it allow the use of
GPIO interrupts for kernel devices (together with the changes on D999).

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

loos retitled this revision from to Backend changes to add interrupt support to GPIO pins on bcm2835_gpio (RPi).
loos updated this object.
loos edited the test plan for this revision. (Show Details)
loos added reviewers: ARM, adrian.

There are a bunch of empty lines that you might want to remove.

sys/arm/broadcom/bcm2835/bcm2835_gpio.c
3 ↗(On Diff #2095)

You should update the copyright year.

1053 ↗(On Diff #2095)

Why do we need this check? If this is false, we end up using the previous 'reg' value below.

sys/arm/broadcom/bcm2835/bcm2835_gpio.c
3 ↗(On Diff #2095)

right!

1053 ↗(On Diff #2095)

That's the idea, reuse the previous value of 'reg'.

Each 'reg' reading return the interrupt status of a full bank (32 bits - 32 pins), so reading it only once per bank should suffice.

loos updated this revision to Diff 3635.

Closed by commit rS278215 (authored by @loos).