Skip to content

Commit 1796f22

Browse files
LeoCX-TsaiJohnAZoidberg
authored andcommitted
fwk: main: modify the factory power button key test
at factory side need to check power button is work so ec will send a fake power button scan when factory mode enable BRANCH=fwk-main BUG=none TEST= test on marigold, boot to s0, use KBMntNT tools check after use fwmi tool enable factory mode(3e02) press power button(mainboard and FP button) will send scan code. Signed-off-by: LeoCX_Tsai <[email protected]> (cherry picked from commit df21c7d6c14dbd8a7103a2e8c8b1ebc00cf3affb)
1 parent 8c94b0a commit 1796f22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zephyr/program/framework/src/factory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ int factory_status(void)
4141

4242
static void fake_power_button(void)
4343
{
44-
#ifdef CONFIG_BOARD_AZALEA
44+
#ifdef CONFIG_PLATFORM_EC_KEYBOARD
4545
if (gpio_pin_get_dt(GPIO_DT_FROM_NODELABEL(gpio_on_off_btn_l)) == 0 &&
4646
!fake_pwr_press) {
4747
fake_pwr_press = 1;

0 commit comments

Comments
 (0)