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
1be5c242
Commit
1be5c242
authored
Sep 08, 2023
by
carbon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set pin 19 default function to GPIO
parent
f0705c88
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
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
+15
-12
No files found.
build/boards/cv180x/cv1800b_milkv_duo_sd/u-boot/cvi_board_init.c
View file @
1be5c242
...
...
@@ -5,14 +5,21 @@ int cvi_board_init(void)
PINMUX_CONFIG
(
PAD_MIPIRX1N
,
XGPIOC_8
);
// Camera Reset
// all default gpio
PINMUX_CONFIG
(
SPINOR_HOLD_X
,
XGPIOA_26
);
PINMUX_CONFIG
(
SPINOR_SCK
,
XGPIOA_22
);
PINMUX_CONFIG
(
SPINOR_MOSI
,
XGPIOA_25
);
PINMUX_CONFIG
(
SPINOR_WP_X
,
XGPIOA_27
);
PINMUX_CONFIG
(
SPINOR_MISO
,
XGPIOA_23
);
PINMUX_CONFIG
(
SPINOR_CS_X
,
XGPIOA_24
);
PINMUX_CONFIG
(
IIC0_SDA
,
XGPIOA_29
);
PINMUX_CONFIG
(
IIC0_SCL
,
XGPIOA_28
);
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
(
SPK_EN
,
XGPIOA_15
);
// Duo Pin 20
PINMUX_CONFIG
(
SPINOR_MISO
,
XGPIOA_23
);
// Duo Pin 21
PINMUX_CONFIG
(
SPINOR_CS_X
,
XGPIOA_24
);
// Duo Pin 22
PINMUX_CONFIG
(
SPINOR_SCK
,
XGPIOA_22
);
// Duo Pin 24
PINMUX_CONFIG
(
SPINOR_MOSI
,
XGPIOA_25
);
// Duo Pin 25
PINMUX_CONFIG
(
SPINOR_WP_X
,
XGPIOA_27
);
// Duo Pin 26
PINMUX_CONFIG
(
SPINOR_HOLD_X
,
XGPIOA_26
);
// Duo Pin 27
PINMUX_CONFIG
(
PWR_SEQ2
,
PWR_GPIO_4
);
// Duo Pin 29
// ADC pins set to gpio
PINMUX_CONFIG
(
ADC1
,
XGPIOB_3
);
// ADC1
PINMUX_CONFIG
(
USB_VBUS_DET
,
XGPIOB_6
);
// ADC2
// I2C1
PINMUX_CONFIG
(
PAD_MIPIRX1P
,
IIC1_SDA
);
...
...
@@ -32,9 +39,5 @@ int cvi_board_init(void)
PINMUX_CONFIG
(
SD1_D0
,
SPI2_SDI
);
PINMUX_CONFIG
(
SD1_D3
,
SPI2_CS_X
);
//default to gpio
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