Page MenuHomeFreeBSD

riscv: support Allwinner D1 GPIO controller
AbandonedPublic

Authored by mhorne on Dec 4 2024, 6:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 27, 4:53 AM
Unknown Object (File)
Fri, Dec 27, 4:22 AM
Unknown Object (File)
Thu, Dec 26, 12:41 PM
Unknown Object (File)
Dec 12 2024, 6:55 PM
Unknown Object (File)
Dec 11 2024, 10:13 AM
Unknown Object (File)
Dec 9 2024, 9:05 AM
Unknown Object (File)
Dec 5 2024, 11:25 AM
Subscribers

Details

Summary

Enable the driver.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 60960
Build 57844: arc lint + arc unit

Event Timeline

mhorne requested review of this revision.Dec 4 2024, 6:30 PM

Rebased from D35593, but this is basically unchanged.

sys/arm/allwinner/aw_gpio.c
427

I believe this could use the macro. Magic numbers are widespread within this driver.

502–503

I'm still really unsure about this part of the change. It seems the mask could have stayed inside the parenthesis?

sys/arm/allwinner/aw_gpio.c
502–503

I guess it was clearer for me: offset and idx are two parts of the same value, offset is just bits 4..0 and idx is just bits 31..5

sys/arm/allwinner/aw_gpio.c
502–503

ACK. With this explanation I am happy with it.

Committed in 71924545585, but I listed the original review.