Enable Marvell gpio driver to work with many controllers
This patch moves all global data structures into mv_gpio_softc, and puts device_t parameter to functions calls everywhere where needed. As a result, we can create multiple driver instances. Removed names in function declaration to keep style. Submitted by: Patryk Duda <pdk@semihalf.com> Obtained from: Semihalf Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D14755
This commit is contained in:
parent
ad2be10ff0
commit
edf9ef7384
File diff suppressed because it is too large
Load Diff
@ -296,15 +296,6 @@
|
||||
#define GPIO_INT_EDGE_MASK 0x18
|
||||
#define GPIO_INT_LEV_MASK 0x1c
|
||||
|
||||
#define GPIO_HI_DATA_OUT 0x40
|
||||
#define GPIO_HI_DATA_OUT_EN_CTRL 0x44
|
||||
#define GPIO_HI_BLINK_EN 0x48
|
||||
#define GPIO_HI_DATA_IN_POLAR 0x4c
|
||||
#define GPIO_HI_DATA_IN 0x50
|
||||
#define GPIO_HI_INT_CAUSE 0x54
|
||||
#define GPIO_HI_INT_EDGE_MASK 0x58
|
||||
#define GPIO_HI_INT_LEV_MASK 0x5c
|
||||
|
||||
#define GPIO(n) (1 << (n))
|
||||
#define MV_GPIO_MAX_NPINS 64
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user