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>
This commit is contained in:
parent
51c9e3639f
commit
ca74a8f430
|
@ -8,7 +8,7 @@
|
||||||
#include <soc/gpio_common.h>
|
#include <soc/gpio_common.h>
|
||||||
|
|
||||||
#define PIN(index, func1, func2, func3, func4) \
|
#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_##func1 = 1, \
|
||||||
GPIO##index##_FUNC_##func2 = 2, \
|
GPIO##index##_FUNC_##func2 = 2, \
|
||||||
GPIO##index##_FUNC_##func3 = 3, \
|
GPIO##index##_FUNC_##func3 = 3, \
|
||||||
|
|
Loading…
Reference in New Issue