This driver add support for the NMI controller for A20 and A31 SoC.
The NMI is mainly used for the PMU.
Details
Details
- Reviewers
andrew - Group Reviewers
ARM - Commits
- rS298721: Add support for the Non-maskable interrupt driver found in the Allwinner A20…
Apply patch and build kernel and test on hw.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/arm/allwinner/aw_nmi.c | ||
---|---|---|
46 ↗ | (On Diff #14388) | I think you can include <dt-bindings/interrupt-controller/irq.h> here instead? |
sys/arm/allwinner/aw_nmi.c | ||
---|---|---|
303 ↗ | (On Diff #14388) | There's already an '#ifdef ARM_INTRNG' on line 48 |
Comment Actions
I'm sorry but I have changed PIC interface in r297539. It should be stable now and simpler. There are also more controllers rewritten for INTRNG in tree. The BEAGLEBONE aintc.c is a simplest one.
Comment Actions
No problem :)
I've updated the driver this morning, just need to find some time to test it.
Comment Actions
Make the driver optional with intrng
Remove some leftover of the convertion
Fix style(9)
Comment Actions
The commit should say something like:
Add a driver for the Non-maskable interrupt driver in the Allwinner A20 and A31 SoCs. This is normally used for the PMU.
sys/arm/allwinner/aw_nmi.c | ||
---|---|---|
156–177 ↗ | (On Diff #15651) | It fells like we could pull this out to a common function (in a future change). |