Skip to content
Commit 31d65aac authored by Jianxiong Gu's avatar Jianxiong Gu Committed by Benjamin Cabé
Browse files

drivers: pinctrl: wch_20x_30x_afio: fix afio remap



- Enable AFIO clock prior to remap configuration
- Consolidate remap logic in a single conditional block
- Correct USART1 remap detection by checking pcfr_id
- Apply changes to pinctrl_wch_afio.c

Signed-off-by: default avatarJianxiong Gu <jianxiong.gu@outlook.com>
parent ed4222e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment