Add support for the other gpio controller found in A31/A31S
It need D5580
Details
Details
- Reviewers
jmcneill - Group Reviewers
ARM - Commits
- rS298513: Add support for Allwinner A31/A31S R-GPIO (CPUs-PORT) controller.
Apply patch and build kernel, test on Bananapi M2 (A31S)
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
| sys/arm/allwinner/a10_gpio.c | ||
|---|---|---|
| 568–570 | As discussed on IRC, we should move the padconf values to compat_data[] ocd_data, so something like: static struct ofw_compat_data compat_data[] = {
#ifdef SOC_ALLWINNER_A10
{ "allwinner,sun4i-a10-pinctrl", (uintptr_t)&a10_padconf },
#endif
...and here we can simply do: sc->padconf = (struct allwinner_padconf *)ofw_bus_search_compatible(dev, compat_data)->ocd_data; | |
| sys/arm/allwinner/a10_gpio.c | ||
|---|---|---|
| 111 | Instead of the ifndef below, why don't we just say #if defined(SOC_ALLWINNER_A31) || defined(SOC_ALLWINNER_A31S) here? Same for the extern above. | |
| sys/arm/allwinner/a10_gpio.c | ||
|---|---|---|
| 111 | Because sometimes I'm stupid that's why :) | |
| sys/arm/allwinner/a10_gpio.c | ||
|---|---|---|
| 117 | This compat string is duplicated on line 111 | |