Skip to content

Commit

Permalink
duos: add duo-pinmux
Browse files Browse the repository at this point in the history
  • Loading branch information
carbonfix committed Jan 30, 2024
1 parent 2aa4ec4 commit 326b188
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
}
Binary file added device/milkv-duos-sd/overlay/usr/bin/duo-pinmux
Binary file not shown.

0 comments on commit 326b188

Please sign in to comment.