diff options
author | Wealian Liao <whliao@nuvoton.corp-partner.google.com> | 2021-07-06 10:59:58 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-30 17:56:00 +0000 |
commit | 5f8e59c305bd8f9497a7409a0d27e034896e4038 (patch) | |
tree | 1c69569347dc40d55eebd9c7ab66a1e78e5346f4 /zephyr/projects/npcx_evb/npcx9/prj.conf | |
parent | 7bf38c623e11a98c24aa28ed9cb5c08516a7853b (diff) | |
download | chrome-ec-5f8e59c305bd8f9497a7409a0d27e034896e4038.tar.gz |
zephyr: npcx_evb: Enable PWM
This CL enables 2 PWM channels for npcx7/9_evb.
BRANCH=none
BUG=none
TEST='pwmduty' console command & check the output waveform is correct.
```
uart:~$ pwmduty
PWM channels:
0: 50%
1: 25%
```
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: I6fa5d3b7fd3bf1f9d1fdb3f64ca3488ad3addacc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3063104
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/projects/npcx_evb/npcx9/prj.conf')
-rw-r--r-- | zephyr/projects/npcx_evb/npcx9/prj.conf | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zephyr/projects/npcx_evb/npcx9/prj.conf b/zephyr/projects/npcx_evb/npcx9/prj.conf index 98474940ba..e124930bfc 100644 --- a/zephyr/projects/npcx_evb/npcx9/prj.conf +++ b/zephyr/projects/npcx_evb/npcx9/prj.conf @@ -25,6 +25,9 @@ CONFIG_PLATFORM_EC_WORKAROUND_FLASH_DOWNLOAD_API=y # Board version is selected over GPIO board ID pins. CONFIG_PLATFORM_EC_BOARD_VERSION_GPIO=y +# PWM +CONFIG_PLATFORM_EC_PWM=y + # Zephyr feature CONFIG_ASSERT=y CONFIG_SHELL_MINIMAL=n |