summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTaniya Das <tdas@codeaurora.org>2021-06-24 12:23:33 +0530
committerFelix Held <felix-coreboot@felixheld.de>2021-07-21 16:08:36 +0000
commitec4cc8b2ac5fa64da2115f2eb484d4927fb2766c (patch)
treeae15d402bf43a3ae8859509d79ca30ecd3b37f04 /src
parentcc80a9ac8e635a21f73fd15117c75929fe933654 (diff)
downloadcoreboot-ec4cc8b2ac5fa64da2115f2eb484d4927fb2766c.tar.gz
coreboot-ec4cc8b2ac5fa64da2115f2eb484d4927fb2766c.tar.bz2
coreboot-ec4cc8b2ac5fa64da2115f2eb484d4927fb2766c.zip
soc/qualcomm/common/gpio: Define a macro for the gpio offset
Defining a macro for the gpio offset 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: Iefdde8f8331cf1df2e88a2c8915aefb4fa091d65 Reviewed-on: https://review.coreboot.org/c/coreboot/+/55948 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Shelley Chen <shchen@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/soc/qualcomm/common/include/soc/gpio_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/soc/qualcomm/common/include/soc/gpio_common.h b/src/soc/qualcomm/common/include/soc/gpio_common.h
index 0ad582de6080..20f947a32691 100644
--- a/src/soc/qualcomm/common/include/soc/gpio_common.h
+++ b/src/soc/qualcomm/common/include/soc/gpio_common.h
@@ -7,6 +7,7 @@
#include <soc/addressmap.h>
#define GPIO_FUNC_GPIO 0
+#define TLMM_GPIO_OFF_DELTA 0x1000
/* GPIO TLMM INTR: Mask */
enum gpio_tlmm_intr_bmsk {