mb/google/brya/var/nivviks: Implement WWAN power sequencing

Nissa is using the FM101, which has the following power sequencing
requirements:

Power on: assert WWAN_EN, delay 20 ms, deassert WWAN_RST_L
Power off: assert WWAN_RST_L, delay 20 ms, deassert WWAN_EN

Add a power resource to the USB device, and use wwan_power.asl to
handle the power off sequence.

BUG=b:217092522
TEST=abuild -a -x -c max -p none -t google/brya -b nivviks

Signed-off-by: Reka Norman <rekanorman@google.com>
Change-Id: Ibe1b863a550c6af1ac3eb98f2aaa3db15b149ada
Reviewed-on: https://review.coreboot.org/c/coreboot/+/61694
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kangheui Won <khwon@chromium.org>
This commit is contained in:
Reka Norman
2022-02-07 20:22:08 +11:00
committed by Felix Held
parent 19567d8ec2
commit b0947172c8
3 changed files with 10 additions and 0 deletions

View File

@@ -85,6 +85,7 @@ config BOARD_GOOGLE_NIVVIKS
bool "-> Nivviks" bool "-> Nivviks"
select BOARD_GOOGLE_BASEBOARD_NISSA select BOARD_GOOGLE_BASEBOARD_NISSA
select DRIVERS_INTEL_MIPI_CAMERA select DRIVERS_INTEL_MIPI_CAMERA
select HAVE_WWAN_POWER_SEQUENCE
config BOARD_GOOGLE_NEREID config BOARD_GOOGLE_NEREID
bool "-> Nereid" bool "-> Nereid"

View File

@@ -5,4 +5,8 @@
#include <baseboard/gpio.h> #include <baseboard/gpio.h>
#define WWAN_FCPO GPP_D6
#define WWAN_RST GPP_F12
#define T2_OFF_MS 20
#endif #endif

View File

@@ -281,6 +281,11 @@ chip soc/intel/alderlake
chip drivers/usb/acpi chip drivers/usb/acpi
register "desc" = ""USB2 WWAN"" register "desc" = ""USB2 WWAN""
register "type" = "UPC_TYPE_INTERNAL" register "type" = "UPC_TYPE_INTERNAL"
register "has_power_resource" = "1"
register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_F12)"
register "reset_off_delay_ms" = "20"
register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)"
register "enable_delay_ms" = "20"
device ref usb2_port4 on device ref usb2_port4 on
probe DB_USB DB_1C_LTE probe DB_USB DB_1C_LTE
end end