duos: support reset button in u-boot
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
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)
|
int cvi_board_init(void)
|
||||||
{
|
{
|
||||||
// Camera
|
// Camera
|
||||||
@ -34,5 +40,8 @@ int cvi_board_init(void)
|
|||||||
PINMUX_CONFIG(PWR_WAKEUP0, EPHY_LNK_LED);
|
PINMUX_CONFIG(PWR_WAKEUP0, EPHY_LNK_LED);
|
||||||
PINMUX_CONFIG(PWR_BUTTON1, EPHY_SPD_LED);
|
PINMUX_CONFIG(PWR_BUTTON1, EPHY_SPD_LED);
|
||||||
|
|
||||||
|
set_rtc_register_for_power();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
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)
|
int cvi_board_init(void)
|
||||||
{
|
{
|
||||||
// Camera
|
// Camera
|
||||||
@ -34,5 +40,8 @@ int cvi_board_init(void)
|
|||||||
PINMUX_CONFIG(PWR_WAKEUP0, EPHY_LNK_LED);
|
PINMUX_CONFIG(PWR_WAKEUP0, EPHY_LNK_LED);
|
||||||
PINMUX_CONFIG(PWR_BUTTON1, EPHY_SPD_LED);
|
PINMUX_CONFIG(PWR_BUTTON1, EPHY_SPD_LED);
|
||||||
|
|
||||||
|
set_rtc_register_for_power();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -33,6 +33,3 @@ insmod /mnt/system/ko/cv181x_pwm.ko
|
|||||||
camera2_rst=484
|
camera2_rst=484
|
||||||
set_gpio ${camera2_rst} 1
|
set_gpio ${camera2_rst} 1
|
||||||
|
|
||||||
# Reset
|
|
||||||
devmem 0x050260d0 32 0x7
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user