summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chip/npcx/registers.h1
-rw-r--r--chip/npcx/system.c8
2 files changed, 9 insertions, 0 deletions
diff --git a/chip/npcx/registers.h b/chip/npcx/registers.h
index 94c34f34f6..be5f236a5b 100644
--- a/chip/npcx/registers.h
+++ b/chip/npcx/registers.h
@@ -889,6 +889,7 @@ enum {
(NPCX_PMC_BASE_ADDR + 0x024))
#define NPCX_PWDWN_CTL(offset) REG8(NPCX_PWDWN_CTL_ADDR(offset))
#if defined(CHIP_FAMILY_NPCX7)
+#define NPCX_FMUL_WIN_DLY REG8(NPCX_PMC_BASE_ADDR + 0x010)
#define NPCX_RAM_PD(offset) REG8(NPCX_PMC_BASE_ADDR + 0x020 + offset)
#endif
diff --git a/chip/npcx/system.c b/chip/npcx/system.c
index c3cace0fb9..c6440134ad 100644
--- a/chip/npcx/system.c
+++ b/chip/npcx/system.c
@@ -722,6 +722,14 @@ void system_pre_init(void)
*/
system_mpu_config();
+ /*
+ * Change FMUL_WIN_DLY from 0x8A to 0x81 for better WoV
+ * audio quality.
+ */
+#ifdef CHIP_FAMILY_NPCX7
+ NPCX_FMUL_WIN_DLY = 0x81;
+#endif
+
#ifdef CONFIG_CHIP_PANIC_BACKUP
chip_panic_data_restore();
#endif