diff options
author | tim <tim2.lin@ite.corp-partner.google.com> | 2019-11-20 16:05:39 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-11-22 11:22:05 +0000 |
commit | dbada69697be895fffe1b7ded21d80db1d01cf9a (patch) | |
tree | 0033ea4f30e7b469683e40b2e6a2ed23a1a9084b /chip | |
parent | f4e7f8be8f9ddccd6da1be7e630b3002bbad4292 (diff) | |
download | chrome-ec-dbada69697be895fffe1b7ded21d80db1d01cf9a.tar.gz |
it83xx/spi_master: correct the module ID
The module ID in alternate function setting for spi
master should be corrected as MODULE_SPI_MASTER.
BUG=none
BRANCH=none
TEST=make buildall -j
Change-Id: Ib52b09a5f1e0c496374d4ed2f3a222dab9af2eb0
Signed-off-by: tim <tim2.lin@ite.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1868133
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/it83xx/spi_master.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/it83xx/spi_master.c b/chip/it83xx/spi_master.c index 1337f7ccac..23cea9d2ab 100644 --- a/chip/it83xx/spi_master.c +++ b/chip/it83xx/spi_master.c @@ -90,14 +90,14 @@ int spi_enable(int port, int enable) else IT83XX_GPIO_GRC1 |= 0x10; - gpio_config_module(MODULE_SPI, 1); + gpio_config_module(MODULE_SPI_MASTER, 1); } else { if (port == SSPI_CH_CS1) IT83XX_GPIO_GRC1 &= ~0x20; else IT83XX_GPIO_GRC1 &= ~0x10; - gpio_config_module(MODULE_SPI, 0); + gpio_config_module(MODULE_SPI_MASTER, 0); } return EC_SUCCESS; |