Commit 3a837b05 authored by carbon's avatar carbon

duos: support reset button in u-boot

parent 7b73c8e9
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;
}
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;
}
......@@ -33,6 +33,3 @@ insmod /mnt/system/ko/cv181x_pwm.ko
camera2_rst=484
set_gpio ${camera2_rst} 1
# Reset
devmem 0x050260d0 32 0x7
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment