]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
arm: allwinner: Fix padconf for interrupts information
authorEmmanuel Vadot <manu@FreeBSD.org>
Sun, 19 Jan 2020 19:14:49 +0000 (19:14 +0000)
committerEmmanuel Vadot <manu@FreeBSD.org>
Sun, 19 Jan 2020 19:14:49 +0000 (19:14 +0000)
commitd07cc22b30e96d1f04d382eafe82ce830c81d60c
treeb21da9e96b6b4952657fbe1bb613c168b7da5bd9
parent9c83ff2d862d9d2a153326f3b9f17924ef3ed15a
arm: allwinner: Fix padconf for interrupts information

Add a eint_bank member to the allwinner_pins structure.
On Allwinner SoCs not all pins can do interrupt.
Older SoC (A10/A13 and A20) there is a maximum number of interrupts
set to 32 and all the configuration is done in the same registers.
While on "newer" SoCs (>=A31) interrupts registers are splitted per
pin bank (i.e. all interrupts available in bank B will be configured
with a sets of registers and the one in bank G in another set).
While here set the names to all interrupts function to
pX_eintY where X is the bank name and Y the interrupt number.

To whom ever in the future look at the H5 manual and notice that the bank F
have interrupts support : This isn't true, trust me.

MFC after: 1 month
14 files changed:
sys/arm/allwinner/a10/a10_padconf.c
sys/arm/allwinner/a13/a13_padconf.c
sys/arm/allwinner/a20/a20_padconf.c
sys/arm/allwinner/a31/a31_padconf.c
sys/arm/allwinner/a31/a31s_padconf.c
sys/arm/allwinner/a33/a33_padconf.c
sys/arm/allwinner/a64/a64_padconf.c
sys/arm/allwinner/a64/a64_r_padconf.c
sys/arm/allwinner/a83t/a83t_padconf.c
sys/arm/allwinner/allwinner_pinctrl.h
sys/arm/allwinner/h3/h3_padconf.c
sys/arm/allwinner/h3/h3_r_padconf.c
sys/arm/allwinner/h6/h6_padconf.c
sys/arm/allwinner/h6/h6_r_padconf.c