summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorcengjianeng <cengjianeng@huaqin.corp-partner.google.com>2024-08-30 10:25:04 +0800
committerFelix Held <felix-coreboot@felixheld.de>2024-09-02 09:09:22 +0000
commitf6bca6b649c946355f45ab4b8a0d823aa02aa32e (patch)
tree394f5f5f0fe865075d3d0717e2c6eee1f50f651c /src/mainboard/google
parenta76640b9ab5e8e052651b708f999493bff034cc7 (diff)
mb/google/nissa/var/teliks: Force audio mute to avoid screen flick
Panel CSOT MNB601LS1-3 will flicker once during enter Chrome login screen, it is because it inserts 12 blank frames if it receives the unmute in VB-ID. Always override the mute in VB-ID to avoid Tcon EC detected the audiomute_flag change. BUG=b:360243615 BRANCH=firmware-nissa-15217.B TEST:Verfied on Teliks and cannot reproduce the issue Change-Id: Iff488f6844c717ef24069c7176e7b8dfb07d8abc Signed-off-by: Jianeng Ceng <cengjianeng@huaqin.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84137 Reviewed-by: Eric Lai <ericllai@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subratabanik@google.com> Reviewed-by: Qinghong Zeng <zengqinghong@huaqin.corp-partner.google.com>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/brya/variants/teliks/variant.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/variants/teliks/variant.c b/src/mainboard/google/brya/variants/teliks/variant.c
index 7cc4af8d3f..3f7cfd6e23 100644
--- a/src/mainboard/google/brya/variants/teliks/variant.c
+++ b/src/mainboard/google/brya/variants/teliks/variant.c
@@ -5,6 +5,11 @@
#include <fw_config.h>
#include <sar.h>
#include <soc/gpio_soc_defs.h>
+#include <intelblocks/graphics.h>
+
+/* Per-pipe DDI Function Control 2 */
+#define TRANS_DDI_FUNC_CTL2_A 0x60404
+#define TRANS_DDI_AUDIO_MUTE_OVERRIDE_BITS_FIELDS (3 << 6)
const char *get_wifi_sar_cbfs_filename(void)
{
@@ -36,3 +41,16 @@ void fw_config_gpio_padbased_override(struct pad_config *padbased_table)
ARRAY_SIZE(wifi_pcie_enable_pad));
}
}
+
+void variant_finalize(void)
+{
+ /*
+ * Panel CSOT MNB601LS1-3 will flicker once during enter Chrome login screen,
+ * it is because it inserts 12 blank frames if it receives the unmute in VB-ID.
+ *
+ * Always override the mute in VB-ID to avoid Tcon EC detected the
+ * audiomute_flag change.
+ */
+ graphics_gtt_rmw(TRANS_DDI_FUNC_CTL2_A, ~TRANS_DDI_AUDIO_MUTE_OVERRIDE_BITS_FIELDS,
+ TRANS_DDI_AUDIO_MUTE_OVERRIDE_BITS_FIELDS);
+}