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
b342d865
Commit
b342d865
authored
Sep 04, 2023
by
carbon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: enable spidev
parent
8eb42430
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
7 deletions
+18
-7
build/boards/cv180x/cv1800b_milkv_duo_sd/dts_riscv/cv1800b_milkv_duo_sd.dts
...x/cv1800b_milkv_duo_sd/dts_riscv/cv1800b_milkv_duo_sd.dts
+8
-0
build/boards/cv180x/cv1800b_milkv_duo_sd/linux/cvitek_cv1800b_milkv_duo_sd_defconfig
..._milkv_duo_sd/linux/cvitek_cv1800b_milkv_duo_sd_defconfig
+4
-0
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
+6
-7
No files found.
build/boards/cv180x/cv1800b_milkv_duo_sd/dts_riscv/cv1800b_milkv_duo_sd.dts
View file @
b342d865
...
@@ -8,6 +8,14 @@
...
@@ -8,6 +8,14 @@
snsr-reset = <&portc 8 GPIO_ACTIVE_LOW>, <&portc 8 GPIO_ACTIVE_LOW>, <&portc 8 GPIO_ACTIVE_LOW>;
snsr-reset = <&portc 8 GPIO_ACTIVE_LOW>, <&portc 8 GPIO_ACTIVE_LOW>, <&portc 8 GPIO_ACTIVE_LOW>;
};
};
&spi2 {
status = "okay";
spidev@0 {
status = "okay";
};
};
/ {
/ {
};
};
...
...
build/boards/cv180x/cv1800b_milkv_duo_sd/linux/cvitek_cv1800b_milkv_duo_sd_defconfig
View file @
b342d865
...
@@ -124,6 +124,10 @@ CONFIG_I2C_CHARDEV=y
...
@@ -124,6 +124,10 @@ CONFIG_I2C_CHARDEV=y
CONFIG_I2C_MUX=y
CONFIG_I2C_MUX=y
CONFIG_I2C_DESIGNWARE_PLATFORM=y
CONFIG_I2C_DESIGNWARE_PLATFORM=y
CONFIG_SPI=y
CONFIG_SPI=y
CONFIG_SPI_MASTER=y
CONFIG_SPI_DESIGNWARE=y
CONFIG_SPI_DW_MMIO=y
CONFIG_SPI_SPIDEV=y
# CONFIG_PTP_1588_CLOCK is not set
# CONFIG_PTP_1588_CLOCK is not set
CONFIG_PINCTRL=y
CONFIG_PINCTRL=y
CONFIG_CVITEK_PINCTRL_CV1835=y
CONFIG_CVITEK_PINCTRL_CV1835=y
...
...
build/boards/cv180x/cv1800b_milkv_duo_sd/u-boot/cvi_board_init.c
View file @
b342d865
...
@@ -15,13 +15,12 @@ int cvi_board_init(void)
...
@@ -15,13 +15,12 @@ int cvi_board_init(void)
PINMUX_CONFIG
(
SPINOR_CS_X
,
XGPIOA_24
);
PINMUX_CONFIG
(
SPINOR_CS_X
,
XGPIOA_24
);
PINMUX_CONFIG
(
IIC0_SDA
,
XGPIOA_29
);
PINMUX_CONFIG
(
IIC0_SDA
,
XGPIOA_29
);
PINMUX_CONFIG
(
IIC0_SCL
,
XGPIOA_28
);
PINMUX_CONFIG
(
IIC0_SCL
,
XGPIOA_28
);
// sd1
PINMUX_CONFIG
(
SD1_D3
,
PWR_GPIO_18
);
// SPI
PINMUX_CONFIG
(
SD1_D2
,
PWR_GPIO_19
);
PINMUX_CONFIG
(
SD1_CLK
,
SPI2_SCK
);
PINMUX_CONFIG
(
SD1_D1
,
PWR_GPIO_20
);
PINMUX_CONFIG
(
SD1_CMD
,
SPI2_SDO
);
PINMUX_CONFIG
(
SD1_D0
,
PWR_GPIO_21
);
PINMUX_CONFIG
(
SD1_D0
,
SPI2_SDI
);
PINMUX_CONFIG
(
SD1_CMD
,
PWR_GPIO_22
);
PINMUX_CONFIG
(
SD1_D3
,
SPI2_CS_X
);
PINMUX_CONFIG
(
SD1_CLK
,
PWR_GPIO_23
);
//default to gpio
//default to gpio
PINMUX_CONFIG
(
PAD_MIPIRX1P
,
XGPIOC_9
);
PINMUX_CONFIG
(
PAD_MIPIRX1P
,
XGPIOC_9
);
...
...
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