mb/google/nissa/var/pujjoga: Turn off camera during S0ix
Add a variant specific S0ix hook to fill the SSDT table to disable and enable camera during suspend and resume respectively. For safety concern, our client LENOVO want us to follow the Boten project to create the function. BUG=b:378525209 TEST=Build Pujjoga BIOS image. Ensure that camera is disabled during suspend and enabled during resume. Do the powerd_dbus_suspend and measure the camera power 3.3V which is disable. And resume will recover. Change-Id: I7c7f5d314e8b2a4d5f72c452128f6c4b57c45993 Signed-off-by: Roger Wang <roger2.wang@lcfc.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/85133 Reviewed-by: Eric Lai <ericllai@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
307801d8dc
commit
51e3838c78
1 changed files with 15 additions and 0 deletions
|
|
@ -2,8 +2,23 @@
|
|||
|
||||
#include <fw_config.h>
|
||||
#include <sar.h>
|
||||
#include <acpi/acpigen.h>
|
||||
#include <gpio.h>
|
||||
#include <acpi/acpi.h>
|
||||
#include <baseboard/variants.h>
|
||||
|
||||
|
||||
const char *get_wifi_sar_cbfs_filename(void)
|
||||
{
|
||||
return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI_SAR_ID));
|
||||
}
|
||||
|
||||
void variant_generate_s0ix_hook(enum s0ix_entry entry)
|
||||
{
|
||||
/* GPP_C3 control the 3.3V of user facing camera,
|
||||
pull down when do suspend and pull high when resume. */
|
||||
if (entry == S0IX_ENTRY)
|
||||
acpigen_soc_clear_tx_gpio(GPP_C3);
|
||||
else if (entry == S0IX_EXIT)
|
||||
acpigen_soc_set_tx_gpio(GPP_C3);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue