summaryrefslogtreecommitdiff
path: root/src/soc/qualcomm
diff options
context:
space:
mode:
authorTaniya Das <tdas@codeaurora.org>2021-06-24 12:26:51 +0530
committerShelley Chen <shchen@google.com>2021-07-21 16:31:30 +0000
commitca74a8f430d2323ab8e9998cf0d52373ec6d06f1 (patch)
treee24ed69e5742cd1daed8ba468b5ade6bb2c235ca /src/soc/qualcomm
parent51c9e3639f30c5c5155ee49cbce31b2519794e6b (diff)
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 <tdas@codeaurora.org> Change-Id: Ia9e4b9ca7216092665f0a06ce467da01963c2364 Reviewed-on: https://review.coreboot.org/c/coreboot/+/55949 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Shelley Chen <shchen@google.com>
Diffstat (limited to 'src/soc/qualcomm')
-rw-r--r--src/soc/qualcomm/sc7280/include/soc/gpio.h2
1 files changed, 1 insertions, 1 deletions
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 <soc/gpio_common.h>
#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, \