summaryrefslogtreecommitdiff
path: root/common/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/system.c')
-rw-r--r--common/system.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/common/system.c b/common/system.c
index a8b9961b74..e188acc136 100644
--- a/common/system.c
+++ b/common/system.c
@@ -503,6 +503,13 @@ const char *ec_image_to_string(enum ec_image copy)
return image_names[copy < ARRAY_SIZE(image_names) ? copy : 0];
}
+__overridable void board_pulse_entering_rw(void)
+{
+ gpio_set_level(GPIO_EC_ENTERING_RW, 1);
+ usleep(MSEC);
+ gpio_set_level(GPIO_EC_ENTERING_RW, 0);
+}
+
/**
* Jump to what we hope is the init address of an image.
*
@@ -523,9 +530,7 @@ static void jump_to_image(uintptr_t init_addr)
* drop it again so we don't leak power through the pulldown in the
* Silego.
*/
- gpio_set_level(GPIO_ENTERING_RW, 1);
- usleep(MSEC);
- gpio_set_level(GPIO_ENTERING_RW, 0);
+ board_pulse_entering_rw();
/*
* Since in EFS2, USB/PD won't be enabled in RO or if it's enabled in