rp2350: Fix for storing larger pinctrl alt func

On RP2350, the alt function value can be up to 0x1F, so store as 5 bits.

Signed-off-by: Peter Johanson <peter@peterjohanson.com>
Signed-off-by: Andrew Featherstone <andrew.featherstone@gmail.com>
This commit is contained in:
Peter Johanson 2024-11-04 14:24:30 -07:00 committed by Benjamin Cabé
commit 05e0aad2f3
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ struct rpi_pinctrl_soc_pin {
/** Pin number 0..29 */
uint32_t pin_num : 5;
/** Alternative function (UART, SPI, etc.) */
uint32_t alt_func : 4;
uint32_t alt_func : 5;
/** Maximum current used by a pin, in mA */
uint32_t drive_strength : 4;
/** Slew rate, may be either false (slow) or true (fast) */