Kapil Porwal has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/74563 )
Change subject: [TEST][Do Not Merge] drivers/wwan/fm: Add debug messages ......................................................................
[TEST][Do Not Merge] drivers/wwan/fm: Add debug messages
Signed-off-by: Kapil Porwal kapilporwal@google.com Change-Id: I30db94de7f854ba444f30d9af682dd2e30f85874 --- M src/drivers/wwan/fm/acpi_fm350gl.c 1 file changed, 17 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/63/74563/1
diff --git a/src/drivers/wwan/fm/acpi_fm350gl.c b/src/drivers/wwan/fm/acpi_fm350gl.c index e9e83c2..e6c8ee2 100644 --- a/src/drivers/wwan/fm/acpi_fm350gl.c +++ b/src/drivers/wwan/fm/acpi_fm350gl.c @@ -93,6 +93,7 @@ { char mutex_path[128];
+ acpigen_write_debug_string("FHRF:"); if (wwan_fm350gl_rtd3_use_rp_mutex(config)) { snprintf(mutex_path, sizeof(mutex_path), acpi_device_path_join(parent_dev, RP_MUTEX_NAME)); @@ -120,6 +121,7 @@ acpigen_write_if_lequal_op_int(ARG0_OP, RESET_TYPE_WARM); { acpigen_write_sleep(FM350GL_TBTG); + acpigen_write_debug_string(" Warm reset."); } /* cold reset */ acpigen_write_else(); @@ -137,6 +139,7 @@ /* assert FCPO# pin */ acpigen_enable_tx_gpio(&config->fcpo_gpio); acpigen_write_sleep(FM350GL_TFDI); + acpigen_write_debug_string(" Cold reset."); } acpigen_write_if_end(); /* If */ } @@ -158,6 +161,7 @@ { char mutex_path[128];
+ acpigen_write_debug_string("SHRF:"); if (wwan_fm350gl_rtd3_use_rp_mutex(config)) { snprintf(mutex_path, sizeof(mutex_path), acpi_device_path_join(parent_dev, RP_MUTEX_NAME)); @@ -283,6 +287,7 @@ ARRAY_SIZE(power_res_dev_states));
acpigen_write_method_serialized("_STA", 0); + acpigen_write_debug_string("FM PR _STA:"); /* Read GPIO status into Local0. */ acpigen_get_tx_gpio(&config->perst_gpio); acpigen_write_if(); @@ -294,6 +299,7 @@
/* Method (_ON, 0, Serialized) */ acpigen_write_method_serialized("_ON", 0); + acpigen_write_debug_string("FM PR _ON:"); /* Local0 = _STA () */ acpigen_write_store(); acpigen_emit_namestring("_STA"); @@ -308,6 +314,7 @@
/* Method (_OFF, 0, Serialized) */ acpigen_write_method_serialized("_OFF", 0); + acpigen_write_debug_string("FM PR _OFF:"); /* Call FHRF i.e. Modem OFF */ acpigen_emit_namestring("FHRF"); acpigen_emit_byte(RESET_TYPE_COLD);