diff --git a/build/boards/cv181x/cv1813h_milkv_duos_emmc/u-boot/cvi_board_init.c b/build/boards/cv181x/cv1813h_milkv_duos_emmc/u-boot/cvi_board_init.c index 352bf47891..508fac5bbe 100644 --- a/build/boards/cv181x/cv1813h_milkv_duos_emmc/u-boot/cvi_board_init.c +++ b/build/boards/cv181x/cv1813h_milkv_duos_emmc/u-boot/cvi_board_init.c @@ -11,8 +11,8 @@ int cvi_board_init(void) PINMUX_CONFIG(IIC0_SDA, XGPIOA_29); // I2C4 - PINMUX_CONFIG(VIVO_D1, IIC4_SCL); - PINMUX_CONFIG(VIVO_D0, IIC4_SDA); + //PINMUX_CONFIG(VIVO_D1, IIC4_SCL); + //PINMUX_CONFIG(VIVO_D0, IIC4_SDA); // USB PINMUX_CONFIG(USB_VBUS_EN, XGPIOB_5); @@ -24,5 +24,11 @@ int cvi_board_init(void) PINMUX_CONFIG(UART2_CTS, UART4_CTS); PINMUX_CONFIG(UART2_RTS, UART4_RTS); + // GPIOs + PINMUX_CONFIG(JTAG_CPU_TCK, XGPIOA_18); + PINMUX_CONFIG(JTAG_CPU_TMS, XGPIOA_19); + PINMUX_CONFIG(JTAG_CPU_TRST, XGPIOA_20); + PINMUX_CONFIG(IIC0_SCL, XGPIOA_28); + return 0; } diff --git a/build/boards/cv181x/cv1813h_milkv_duos_sd/u-boot/cvi_board_init.c b/build/boards/cv181x/cv1813h_milkv_duos_sd/u-boot/cvi_board_init.c index 352bf47891..508fac5bbe 100644 --- a/build/boards/cv181x/cv1813h_milkv_duos_sd/u-boot/cvi_board_init.c +++ b/build/boards/cv181x/cv1813h_milkv_duos_sd/u-boot/cvi_board_init.c @@ -11,8 +11,8 @@ int cvi_board_init(void) PINMUX_CONFIG(IIC0_SDA, XGPIOA_29); // I2C4 - PINMUX_CONFIG(VIVO_D1, IIC4_SCL); - PINMUX_CONFIG(VIVO_D0, IIC4_SDA); + //PINMUX_CONFIG(VIVO_D1, IIC4_SCL); + //PINMUX_CONFIG(VIVO_D0, IIC4_SDA); // USB PINMUX_CONFIG(USB_VBUS_EN, XGPIOB_5); @@ -24,5 +24,11 @@ int cvi_board_init(void) PINMUX_CONFIG(UART2_CTS, UART4_CTS); PINMUX_CONFIG(UART2_RTS, UART4_RTS); + // GPIOs + PINMUX_CONFIG(JTAG_CPU_TCK, XGPIOA_18); + PINMUX_CONFIG(JTAG_CPU_TMS, XGPIOA_19); + PINMUX_CONFIG(JTAG_CPU_TRST, XGPIOA_20); + PINMUX_CONFIG(IIC0_SCL, XGPIOA_28); + return 0; } diff --git a/device/milkv-duos-sd/overlay/usr/bin/duo-pinmux b/device/milkv-duos-sd/overlay/usr/bin/duo-pinmux new file mode 100755 index 0000000000..a6e592d2aa Binary files /dev/null and b/device/milkv-duos-sd/overlay/usr/bin/duo-pinmux differ