Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
duo-buildroot-sdk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
duo-buildroot-sdk
Commits
5d8774d1
Commit
5d8774d1
authored
Sep 08, 2023
by
carbon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set pin 1/2 default function to I2C0
parent
1be5c242
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
build/boards/cv180x/cv1800b_milkv_duo_sd/u-boot/cvi_board_init.c
...oards/cv180x/cv1800b_milkv_duo_sd/u-boot/cvi_board_init.c
+4
-2
No files found.
build/boards/cv180x/cv1800b_milkv_duo_sd/u-boot/cvi_board_init.c
View file @
5d8774d1
...
@@ -5,8 +5,6 @@ int cvi_board_init(void)
...
@@ -5,8 +5,6 @@ int cvi_board_init(void)
PINMUX_CONFIG
(
PAD_MIPIRX1N
,
XGPIOC_8
);
// Camera Reset
PINMUX_CONFIG
(
PAD_MIPIRX1N
,
XGPIOC_8
);
// Camera Reset
// all default gpio
// all default gpio
PINMUX_CONFIG
(
IIC0_SCL
,
XGPIOA_28
);
// Duo Pin 1
PINMUX_CONFIG
(
IIC0_SDA
,
XGPIOA_29
);
// Duo Pin 2
PINMUX_CONFIG
(
SD0_PWR_EN
,
XGPIOA_14
);
// Duo Pin 19
PINMUX_CONFIG
(
SD0_PWR_EN
,
XGPIOA_14
);
// Duo Pin 19
PINMUX_CONFIG
(
SPK_EN
,
XGPIOA_15
);
// Duo Pin 20
PINMUX_CONFIG
(
SPK_EN
,
XGPIOA_15
);
// Duo Pin 20
PINMUX_CONFIG
(
SPINOR_MISO
,
XGPIOA_23
);
// Duo Pin 21
PINMUX_CONFIG
(
SPINOR_MISO
,
XGPIOA_23
);
// Duo Pin 21
...
@@ -21,6 +19,10 @@ int cvi_board_init(void)
...
@@ -21,6 +19,10 @@ int cvi_board_init(void)
PINMUX_CONFIG
(
ADC1
,
XGPIOB_3
);
// ADC1
PINMUX_CONFIG
(
ADC1
,
XGPIOB_3
);
// ADC1
PINMUX_CONFIG
(
USB_VBUS_DET
,
XGPIOB_6
);
// ADC2
PINMUX_CONFIG
(
USB_VBUS_DET
,
XGPIOB_6
);
// ADC2
// I2C0
PINMUX_CONFIG
(
IIC0_SCL
,
IIC0_SCL
);
PINMUX_CONFIG
(
IIC0_SDA
,
IIC0_SDA
);
// I2C1
// I2C1
PINMUX_CONFIG
(
PAD_MIPIRX1P
,
IIC1_SDA
);
PINMUX_CONFIG
(
PAD_MIPIRX1P
,
IIC1_SDA
);
PINMUX_CONFIG
(
PAD_MIPIRX0N
,
IIC1_SCL
);
PINMUX_CONFIG
(
PAD_MIPIRX0N
,
IIC1_SCL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment