sc7180: Renaming the GPIO macro in QSPI and I2C driver

As part of GPIO driver cleanup across qcom chipsets,
GPIO_OUTPUT_ENABLE has been renamed to GPIO_OUTPUT.

BUG=b:182963902
TEST=Validated on qualcomm sc7180 development board

Signed-off-by: Rajesh Patil <rajpat@codeaurora.org>
Change-Id: I51eedc722a91c5ea8e009fb8468a60667d374b49
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56194
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Shelley Chen <shchen@google.com>
This commit is contained in:
Ravi Kumar Bokka 2021-07-10 23:54:20 +05:30 committed by Felix Held
parent ec4cc8b2ac
commit a8e9dbae65
2 changed files with 5 additions and 5 deletions

View File

@ -146,13 +146,13 @@ static void configure_gpios(void)
gpio_output(GPIO(68), 1);
gpio_configure(GPIO(64), GPIO64_FUNC_QSPI_DATA_0,
GPIO_NO_PULL, GPIO_2MA, GPIO_OUTPUT_ENABLE);
GPIO_NO_PULL, GPIO_2MA, GPIO_OUTPUT);
gpio_configure(GPIO(65), GPIO65_FUNC_QSPI_DATA_1,
GPIO_NO_PULL, GPIO_2MA, GPIO_OUTPUT_ENABLE);
GPIO_NO_PULL, GPIO_2MA, GPIO_OUTPUT);
gpio_configure(GPIO(63), GPIO63_FUNC_QSPI_CLK,
GPIO_NO_PULL, GPIO_8MA, GPIO_OUTPUT_ENABLE);
GPIO_NO_PULL, GPIO_8MA, GPIO_OUTPUT);
}
static void queue_bounce_data(uint8_t *data, uint32_t data_bytes,

View File

@ -92,9 +92,9 @@ void i2c_init(unsigned int bus, enum i2c_speed speed)
/* GPIO Configuration */
gpio_configure(qup[bus].pin[0], qup[bus].func[0], GPIO_PULL_UP,
GPIO_2MA, GPIO_OUTPUT_ENABLE);
GPIO_2MA, GPIO_OUTPUT);
gpio_configure(qup[bus].pin[1], qup[bus].func[1], GPIO_PULL_UP,
GPIO_2MA, GPIO_OUTPUT_ENABLE);
GPIO_2MA, GPIO_OUTPUT);
/* Select and setup FIFO mode */
write32(&regs->geni_m_irq_clear, 0xFFFFFFFF);