diff options
author | tim <tim2.lin@ite.corp-partner.google.com> | 2020-04-28 10:45:35 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-04-29 11:06:51 +0000 |
commit | 7f310174323b5e67292b90375447f3ec06998ff3 (patch) | |
tree | 85f4b524c2d5394236718a448b90c15c1d698b54 /chip/it83xx/adc_chip.h | |
parent | dc5f575bdd51a022eb8e6daac74ab348620c73ba (diff) | |
download | chrome-ec-7f310174323b5e67292b90375447f3ec06998ff3.tar.gz |
it83xx/adc: enabled GPIO alternate mode by default for pin into gpio.inc marked as MODULE_ADC
In the ADC initialization function, we should use the function
of gpio_config_module to set alternate function and declare
corresponding alternate function pins in gpio.inc. So we are
able to enable extra flag if needed.
BUG=none
BRANCH=none
TEST=testing the alternate function pins are normal
on the board of it83xx_evb, it8xxx2_evb, it8xxx2_pdevb
and reef_it8320.
Signed-off-by: tim <tim2.lin@ite.corp-partner.google.com>
Change-Id: I734b6ecc8f9343be65d9f29837e793b9574f8bdc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2160241
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'chip/it83xx/adc_chip.h')
-rw-r--r-- | chip/it83xx/adc_chip.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/chip/it83xx/adc_chip.h b/chip/it83xx/adc_chip.h index dd236994de..f843dca996 100644 --- a/chip/it83xx/adc_chip.h +++ b/chip/it83xx/adc_chip.h @@ -73,7 +73,6 @@ struct adc_ctrl_t { volatile uint8_t *adc_ctrl; volatile uint8_t *adc_datm; volatile uint8_t *adc_datl; - volatile uint8_t *adc_pin_ctrl; }; /* Data structure to define ADC channels. */ |