From ca74a8f430d2323ab8e9998cf0d52373ec6d06f1 Mon Sep 17 00:00:00 2001 From: Taniya Das Date: Thu, 24 Jun 2021 12:26:51 +0530 Subject: soc/qualcomm/sc7280: Replace gpio offset value with macro Use the gpio offset macro instead of a constant value. BUG=b:182963902 TEST=Validated on qualcomm sc7280 development board Signed-off-by: Taniya Das Change-Id: Ia9e4b9ca7216092665f0a06ce467da01963c2364 Reviewed-on: https://review.coreboot.org/c/coreboot/+/55949 Tested-by: build bot (Jenkins) Reviewed-by: Shelley Chen --- src/soc/qualcomm/sc7280/include/soc/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/qualcomm') diff --git a/src/soc/qualcomm/sc7280/include/soc/gpio.h b/src/soc/qualcomm/sc7280/include/soc/gpio.h index 6d6d0cd04c..8d95c913cd 100644 --- a/src/soc/qualcomm/sc7280/include/soc/gpio.h +++ b/src/soc/qualcomm/sc7280/include/soc/gpio.h @@ -8,7 +8,7 @@ #include #define PIN(index, func1, func2, func3, func4) \ -GPIO##index##_ADDR = TLMM_TILE_BASE + (index * 0x1000), \ +GPIO##index##_ADDR = TLMM_TILE_BASE + (index * TLMM_GPIO_OFF_DELTA), \ GPIO##index##_FUNC_##func1 = 1, \ GPIO##index##_FUNC_##func2 = 2, \ GPIO##index##_FUNC_##func3 = 3, \ -- cgit v1.2.3