]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[dwgpio] Use fdt_reg() to get GPIO port numbers coverity_scan master
authorMichael Brown <mcb30@ipxe.org>
Thu, 7 Aug 2025 14:43:58 +0000 (15:43 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 7 Aug 2025 14:49:12 +0000 (15:49 +0100)
commit8460dc4e8ffc98db62377d1c5502d6aac40f5a64
tree0c6a34467658e42783ac6d7865a671672b5a8c60
parent88ba0117649bd8ec711ec0d799acb649284dc492
[dwgpio] Use fdt_reg() to get GPIO port numbers

DesignWare GPIO port numbers are represented as unsized single-entry
regions.  Use fdt_reg() to obtain the GPIO port number, rather than
requiring access to a region cell size specification stored in the
port group structure.

This allows the field name "regs" in the port group structure to be
repurposed to hold the I/O register base address, which then matches
the common usage in other drivers.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/gpio/dwgpio.c
src/drivers/gpio/dwgpio.h