mb/google/bluey: Conditionally enable FP rails in normal boot
Only enable GPIO_EN_FP_RAILS when booting in LB_BOOT_MODE_NORMAL. This avoids powering the FP MCU in non-normal boot modes such as low battery or charging scenarios where FP functionality is not required. BUG=b:494962574 TEST=Verified by normal boot and check FP LED. Change-Id: I7dca803fb3414f7b6b12eb9a8f284a3f1b7b6d87 Signed-off-by: Yang Wu <wuyang5@huaqin.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/91898 Reviewed-by: wen zhang <zhangwen6@huaqin.corp-partner.google.com> Reviewed-by: Subrata Banik <subratabanik@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
137b9c59ea
commit
6d3e13a33a
1 changed files with 4 additions and 2 deletions
|
|
@ -180,8 +180,10 @@ void platform_romstage_main(void)
|
|||
* when MAINBOARD_HAS_FINGERPRINT_VIA_SPI Kconfig is enabled.
|
||||
* Requires >=200ms delay after its pin was driven low in bootblock.
|
||||
*/
|
||||
if (CONFIG(MAINBOARD_HAS_FINGERPRINT_VIA_SPI))
|
||||
gpio_output(GPIO_EN_FP_RAILS, 1);
|
||||
if (CONFIG(MAINBOARD_HAS_FINGERPRINT_VIA_SPI)) {
|
||||
if (boot_mode == LB_BOOT_MODE_NORMAL)
|
||||
gpio_output(GPIO_EN_FP_RAILS, 1);
|
||||
}
|
||||
}
|
||||
|
||||
void platform_romstage_postram(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue