pinctrl: bcm2712: Fix for the first valid GPIO
authorPhil Elwell <phil@raspberrypi.com>
Thu, 30 Nov 2023 12:57:03 +0000 (12:57 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:28 +0000 (11:35 +0000)
commit7303f0654ae46c9a58fdfd670f65034bc4283d99
tree5b5e1f4ea40e870cb3c4d7aac4d0befacb650884
parent0fb8b03dd8272057bfabc4e0bdfcf1fc1ae48ae9
pinctrl: bcm2712: Fix for the first valid GPIO

A non-zero mux bit number is used to detect a valid entry in the
pin_regs tables, but GPIO 0 (GPIO 1 on D0) is a valid GPIO with a mux
bit number of zero, so add a high-bit on all valid entries to
distinguish this from an uninitialised row in the table.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
drivers/pinctrl/bcm/pinctrl-bcm2712.c