diff options
author | Caveh Jalali <caveh@chromium.org> | 2018-06-06 21:42:52 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-06-12 00:36:25 -0700 |
commit | 5e6fb5cdded2f3449657427b88cb2eaa4eba90a3 (patch) | |
tree | c0bb527e479d20bca454bee6fafb74e682daee1f /board/atlas/board.h | |
parent | b8878265912cdef825be7ae2ad7ae5e507e5a3b1 (diff) | |
download | chrome-ec-5e6fb5cdded2f3449657427b88cb2eaa4eba90a3.tar.gz |
atlas: configure GPIOC2 as PWM1
on the npcx7, GPIOC2 is a bit special because it has 2 alternate
modes. we want the PWM1 mode instead of I2C6, and that's selected
using a special #define.
BUG=b:94613023,b:78309559
BRANCH=none
TEST=apshutdown still works
Change-Id: Ibd8baa15640344ce6c48b2c849e0d9fe6ce4239f
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1090320
Commit-Ready: caveh jalali <caveh@chromium.org>
Tested-by: caveh jalali <caveh@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/atlas/board.h')
-rw-r--r-- | board/atlas/board.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/atlas/board.h b/board/atlas/board.h index b800e99909..8e3fc99440 100644 --- a/board/atlas/board.h +++ b/board/atlas/board.h @@ -148,7 +148,7 @@ #define NPCX_UART_MODULE2 1 /* 1:GPIO64/65 as UART */ #define NPCX_JTAG_MODULE2 0 /* 0:GPIO21/17/16/20 as JTAG */ #define NPCX_TACH_SEL2 0 /* 0:GPIO40/73 1:GPIO93/A6 as TACH */ -#define NPCX7_PWM1_SEL 0 /* GPIO C2 is not used as PWM1. */ +#define NPCX7_PWM1_SEL 1 /* GPIO C2 is used as PWM1. */ /* I2C ports */ #define I2C_PORT_POWER NPCX_I2C_PORT0_0 /* pmic/charger */ |