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
f0705c88
Commit
f0705c88
authored
Sep 08, 2023
by
carbon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set pin 14/15 default function to I2C1
parent
b52bb545
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
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
+8
-7
No files found.
build/boards/cv180x/cv1800b_milkv_duo_sd/u-boot/cvi_board_init.c
View file @
f0705c88
int
cvi_board_init
(
void
)
{
// sensor i2c1 reset mclk
PINMUX_CONFIG
(
PAD_MIPIRX0P
,
CAM_MCLK0
);
// MCLK0
PINMUX_CONFIG
(
PAD_MIPIRX1P
,
IIC1_SDA
);
// I2C 2
PINMUX_CONFIG
(
PAD_MIPIRX0N
,
IIC1_SCL
);
PINMUX_CONFIG
(
PAD_MIPIRX1N
,
XGPIOC_8
);
// sensor mclk reset
PINMUX_CONFIG
(
PAD_MIPIRX0P
,
CAM_MCLK0
);
// Camera MCLK0
PINMUX_CONFIG
(
PAD_MIPIRX1N
,
XGPIOC_8
);
// Camera Reset
// all default gpio
PINMUX_CONFIG
(
SPINOR_HOLD_X
,
XGPIOA_26
);
...
...
@@ -16,6 +14,10 @@ int cvi_board_init(void)
PINMUX_CONFIG
(
IIC0_SDA
,
XGPIOA_29
);
PINMUX_CONFIG
(
IIC0_SCL
,
XGPIOA_28
);
// I2C1
PINMUX_CONFIG
(
PAD_MIPIRX1P
,
IIC1_SDA
);
PINMUX_CONFIG
(
PAD_MIPIRX0N
,
IIC1_SCL
);
// PWM
PINMUX_CONFIG
(
SD1_D2
,
PWM_5
);
PINMUX_CONFIG
(
SD1_D1
,
PWM_6
);
...
...
@@ -31,9 +33,8 @@ int cvi_board_init(void)
PINMUX_CONFIG
(
SD1_D3
,
SPI2_CS_X
);
//default to gpio
PINMUX_CONFIG
(
PAD_MIPIRX1P
,
XGPIOC_9
);
PINMUX_CONFIG
(
PAD_MIPIRX0N
,
XGPIOC_10
);
PINMUX_CONFIG
(
USB_VBUS_DET
,
XGPIOB_6
);
PINMUX_CONFIG
(
PWR_SEQ2
,
PWR_GPIO_4
);
return
0
;
}
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