From 969da9518309e1ef8cadcf1fb2a2e382ebe59f75 Mon Sep 17 00:00:00 2001 From: Mary Ruthven Date: Tue, 5 Jan 2021 18:06:38 -0800 Subject: coil: pmu PERIPH_SPS->PERIPH_SPP BUG=b:175244613 TEST=make buildall -j Change-Id: I8c276d800c6c69fd12bca0b75dc1f8f60a30c096 Signed-off-by: Mary Ruthven Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2613456 Reviewed-by: Namyoon Woo --- chip/g/clock.c | 2 +- chip/g/pmu.h | 6 +++--- chip/g/sps.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/chip/g/clock.c b/chip/g/clock.c index c590ee0611..8d9913bf65 100644 --- a/chip/g/clock.c +++ b/chip/g/clock.c @@ -41,7 +41,7 @@ void clock_enable_module(enum module_id module, int enable) clock_func(PERIPH_SPI); break; case MODULE_SPI: - clock_func(PERIPH_SPS); + clock_func(PERIPH_SPP); break; case MODULE_USB: clock_func(PERIPH_USB0); diff --git a/chip/g/pmu.h b/chip/g/pmu.h index b84fab3fd5..6482440521 100644 --- a/chip/g/pmu.h +++ b/chip/g/pmu.h @@ -72,9 +72,9 @@ enum { PERIPH_SPI0 = 0x1a, PERIPH_SPI1 = 0x1b, - PERIPH_SPS = 0x1c, - PERIPH_SPS0 = 0x1c, - PERIPH_SPS0_TIMER = 0x1d, + PERIPH_SPP = 0x1c, + PERIPH_SPP0 = 0x1c, + PERIPH_SPP0_TIMER = 0x1d, PERIPH_SWDP = 0x1e, PERIPH_SWDP0 = 0x1e, diff --git a/chip/g/sps.c b/chip/g/sps.c index 5e26459dfc..78d3a01570 100644 --- a/chip/g/sps.c +++ b/chip/g/sps.c @@ -272,7 +272,7 @@ static void sps_init(void) if (!board_tpm_uses_spi()) return; - pmu_clock_en(PERIPH_SPS); + pmu_clock_en(PERIPH_SPP); /* The pinmux connections are preset, but we have to set IN/OUT */ GWRITE_FIELD(PINMUX, DIOA2_CTL, IE, 1); /* SPS_MOSI */ -- cgit v1.2.1