diff options
author | Tzung-Bi Shih <tzungbi@chromium.org> | 2020-01-03 14:34:07 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-14 05:30:14 +0000 |
commit | ca47b0c5673ee2e970a9b29b095d4183849e3cae (patch) | |
tree | 396a5002d398c221461a510e18149996c13dfbb9 /chip | |
parent | f6d248bb6d334b0dd0b02b7a1960079378a623ff (diff) | |
download | chrome-ec-ca47b0c5673ee2e970a9b29b095d4183849e3cae.tar.gz |
audio_codec: npcx: deprecate legacy option CONFIG_WAKE_ON_VOICE
CONFIG_WAKE_ON_VOICE consists 3 features in NPCX:
- DMIC
- I2S_RX
- WOV
These features has broken down into smaller CONFIG options. Deprecates
CONFIG_WAKE_ON_VOICE and prepares to separate smaller features in NPCX.
BRANCH=none
BUG=b:144064048, b:144063867
TEST=make BOARD=trembyle -j
Change-Id: Ieaa123299ea687644f19066cf95ef150a18bf252
Signed-off-by: Tzung-Bi Shih <tzungbi@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1986687
Commit-Queue: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Tested-by: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Reviewed-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/npcx/build.mk | 3 | ||||
-rw-r--r-- | chip/npcx/gpio_chip-npcx7.h | 3 | ||||
-rw-r--r-- | chip/npcx/wov.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/chip/npcx/build.mk b/chip/npcx/build.mk index 515c191d39..6092503b06 100644 --- a/chip/npcx/build.mk +++ b/chip/npcx/build.mk @@ -22,6 +22,7 @@ chip-y+=system-$(CHIP_FAMILY).o # Optional chip modules chip-$(CONFIG_ADC)+=adc.o +chip-$(CONFIG_AUDIO_CODEC)+=apm.o wov.o chip-$(CONFIG_AUDIO_CODEC_DMIC)+=audio_codec_dmic.o chip-$(CONFIG_AUDIO_CODEC_I2S_RX)+=audio_codec_i2s_rx.o chip-$(CONFIG_FANS)+=fan.o @@ -39,8 +40,6 @@ chip-$(CONFIG_WATCHDOG)+=watchdog.o ifndef CONFIG_KEYBOARD_NOT_RAW chip-$(HAS_TASK_KEYSCAN)+=keyboard_raw.o endif -chip-$(CONFIG_WAKE_ON_VOICE)+=apm.o -chip-$(CONFIG_WAKE_ON_VOICE)+=wov.o # spi monitor program fw for openocd and UUT(UART Update Tool) npcx-monitor-fw=chip/npcx/spiflashfw/npcx_monitor diff --git a/chip/npcx/gpio_chip-npcx7.h b/chip/npcx/gpio_chip-npcx7.h index 644c1c793d..44911dcf32 100644 --- a/chip/npcx/gpio_chip-npcx7.h +++ b/chip/npcx/gpio_chip-npcx7.h @@ -313,7 +313,8 @@ #endif /* WOV module (Optional) */ -#if defined(NPCX_WOV_SUPPORT) && defined(CONFIG_WAKE_ON_VOICE) +#if defined(NPCX_WOV_SUPPORT) && \ + (defined(CONFIG_AUDIO_CODEC_I2S_RX) || defined(CONFIG_AUDIO_CODEC_WOV)) #define NPCX_ALT_GPIO_9_5 /* Disable SPIP module if WOV is supported */ #define NPCX_ALT_GPIO_A_3 /* Disable SPIP module if WOV is supported */ #define NPCX_ALT_GPIO_A_1 /* Disable SPIP module if WOV is supported */ diff --git a/chip/npcx/wov.c b/chip/npcx/wov.c index 4a9012636a..8e247a5e04 100644 --- a/chip/npcx/wov.c +++ b/chip/npcx/wov.c @@ -17,7 +17,7 @@ #include "wov_chip.h" #ifndef NPCX_WOV_SUPPORT -#error "Do not enable CONFIG_WAKE_ON_VOICE if npcx ec doesn't support WOV !" +#error "Do not enable CONFIG_AUDIO_CODEC_* if npcx ec doesn't support WOV !" #endif /* Console output macros */ |