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

@ -11,7 +11,7 @@
#define RP2_ALT_FUNC_POS 0
#define RP2_ALT_FUNC_MASK 0xf
#define RP2_PIN_NUM_POS 4
#define RP2_PIN_NUM_POS 5
#define RP2_PIN_NUM_MASK 0x1f
#define RP2_GPIO_OVERRIDE_NORMAL 0

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) */