summaryrefslogtreecommitdiff
path: root/board/it83xx_evb
diff options
context:
space:
mode:
authortim <tim2.lin@ite.corp-partner.google.com>2020-02-13 14:37:38 +0800
committerCommit Bot <commit-bot@chromium.org>2020-02-21 09:26:28 +0000
commit937af456b82fad241049f02d276ad8f66b25a2de (patch)
tree6a51ca139e49035b49f4fdd82a8d86b2bc962d46 /board/it83xx_evb
parentf18b94ab43c8a7fce3aee0077c09fa5608924659 (diff)
downloadchrome-ec-937af456b82fad241049f02d276ad8f66b25a2de.tar.gz
it83xx/dac: add DAC module
The DAC module has four channels. We can set output voltage when DAC channel is enabled by this driver. BUG=b:149094279 BRANCH=none TEST=The console command #dac set as follows: read: dac [ch] write: dac [ch] [voltage] [ch]:2-5, [voltage]:0(disable)-3300 Change-Id: I8e815cb5bc749467581d5f771fd6f9e0995fca3b Signed-off-by: tim <tim2.lin@ite.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2046685 Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/it83xx_evb')
-rw-r--r--board/it83xx_evb/board.h1
-rw-r--r--board/it83xx_evb/gpio.inc1
2 files changed, 2 insertions, 0 deletions
diff --git a/board/it83xx_evb/board.h b/board/it83xx_evb/board.h
index 97083d28b8..591cb469c4 100644
--- a/board/it83xx_evb/board.h
+++ b/board/it83xx_evb/board.h
@@ -14,6 +14,7 @@
/* Optional features */
#define CONFIG_BATTERY_SMART
#define CONFIG_BOARD_VERSION_GPIO
+#define CONFIG_DAC
#define CONFIG_FANS 1
#define CONFIG_I2C
#define CONFIG_I2C_MASTER
diff --git a/board/it83xx_evb/gpio.inc b/board/it83xx_evb/gpio.inc
index 1333abe453..022be8db2f 100644
--- a/board/it83xx_evb/gpio.inc
+++ b/board/it83xx_evb/gpio.inc
@@ -85,3 +85,4 @@ ALTERNATE(PIN_MASK(C, 0x06), 1, MODULE_I2C, 0) /* I2C B SCL/SDA */
ALTERNATE(PIN_MASK(F, 0xC0), 1, MODULE_I2C, 0) /* I2C C SCL/SDA */
#endif
ALTERNATE(PIN_MASK(E, 0x81), 1, MODULE_I2C, 0) /* I2C E SCL/SDA E0/E7 */
+ALTERNATE(PIN_MASK(J, 0x3C), 1, MODULE_DAC, 0) /* DAC CH2.3.4.5 */