]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
arm64: a37x0_gpio: Use syscon instead of MMIO region
authormanu <manu@FreeBSD.org>
Mon, 19 Aug 2019 14:28:54 +0000 (14:28 +0000)
committermanu <manu@FreeBSD.org>
Mon, 19 Aug 2019 14:28:54 +0000 (14:28 +0000)
commit4cb6badd76ba6d13976ddde6c15b14c462665aa6
treecc8f7fa266733fa3cd7936c6cf6cc5372add7067
parent4ef34f6eb48251bcbe0009a1137d3d3e8ddf347b
arm64: a37x0_gpio: Use syscon instead of MMIO region

The fdt node for this driver is a simple-mfd and syscon compatible one
meaning that simplemfd will be the driver attached for it. The gpio driver
is attached to the 'gpio' subnode so use syscon_get_handle_default to
obtain the handle of the syscon from the parent device and use this
to read/write to the memory region.

MFC after: 1 week
sys/arm/mv/a37x0_gpio.c