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
3a837b05
Commit
3a837b05
authored
Feb 05, 2024
by
carbon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
duos: support reset button in u-boot
parent
7b73c8e9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
build/boards/cv181x/cv1813h_milkv_duos_emmc/u-boot/cvi_board_init.c
...ds/cv181x/cv1813h_milkv_duos_emmc/u-boot/cvi_board_init.c
+9
-0
build/boards/cv181x/cv1813h_milkv_duos_sd/u-boot/cvi_board_init.c
...ards/cv181x/cv1813h_milkv_duos_sd/u-boot/cvi_board_init.c
+9
-0
device/milkv-duos-sd/overlay/mnt/system/duo-init.sh
device/milkv-duos-sd/overlay/mnt/system/duo-init.sh
+0
-3
No files found.
build/boards/cv181x/cv1813h_milkv_duos_emmc/u-boot/cvi_board_init.c
View file @
3a837b05
static
void
set_rtc_register_for_power
(
void
)
{
printf
(
"set_rtc_register_for_power
\n
"
);
mmio_write_32
(
0x050260D0
,
0x7
);
}
int
cvi_board_init
(
void
)
{
// Camera
...
...
@@ -34,5 +40,8 @@ int cvi_board_init(void)
PINMUX_CONFIG
(
PWR_WAKEUP0
,
EPHY_LNK_LED
);
PINMUX_CONFIG
(
PWR_BUTTON1
,
EPHY_SPD_LED
);
set_rtc_register_for_power
();
return
0
;
}
build/boards/cv181x/cv1813h_milkv_duos_sd/u-boot/cvi_board_init.c
View file @
3a837b05
static
void
set_rtc_register_for_power
(
void
)
{
printf
(
"set_rtc_register_for_power
\n
"
);
mmio_write_32
(
0x050260D0
,
0x7
);
}
int
cvi_board_init
(
void
)
{
// Camera
...
...
@@ -34,5 +40,8 @@ int cvi_board_init(void)
PINMUX_CONFIG
(
PWR_WAKEUP0
,
EPHY_LNK_LED
);
PINMUX_CONFIG
(
PWR_BUTTON1
,
EPHY_SPD_LED
);
set_rtc_register_for_power
();
return
0
;
}
device/milkv-duos-sd/overlay/mnt/system/duo-init.sh
View file @
3a837b05
...
...
@@ -33,6 +33,3 @@ insmod /mnt/system/ko/cv181x_pwm.ko
camera2_rst
=
484
set_gpio
${
camera2_rst
}
1
# Reset
devmem 0x050260d0 32 0x7
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