drivers: gpio: xlnx: Add support for versal2 PS/PMC GPIO
Add driver support for Versal Gen 2 PS/PMC GPIO controller by updating the logic of bank index calculation. This logic depends on "register" DT property to identify bank index instead of depending on node instance ID as Versal Gen 2 GPIO banks are not in sequential order as Zynqmp. - Versal Gen 2 PS GPIO: Banks(0,3,4) - Zynqmp PS GPIO: Banks(0,1,2,3,4,5) Signed-off-by: Paul Alvin <alvin.paulp@amd.com>
This commit is contained in:
parent
bb8b059e23
commit
d12686269f
@ -454,7 +454,7 @@ static const struct gpio_xlnx_ps_bank_dev_cfg gpio_xlnx_ps_bank##idx##_cfg = {\
|
||||
.common = {\
|
||||
.port_pin_mask = GPIO_PORT_PIN_MASK_FROM_DT_INST(idx),\
|
||||
},\
|
||||
.bank_index = idx,\
|
||||
.bank_index = DT_INST_REG_ADDR(idx),\
|
||||
};\
|
||||
static struct gpio_xlnx_ps_bank_dev_data gpio_xlnx_ps_bank##idx##_data = {\
|
||||
.base = 0,\
|
||||
|
||||
Loading…
Reference in New Issue
Block a user