summaryrefslogtreecommitdiff
path: root/board/ti
diff options
context:
space:
mode:
authorLuca Ceresoli <luca@lucaceresoli.net>2020-05-21 15:06:24 +0200
committerLokesh Vutla <lokeshvutla@ti.com>2020-06-13 23:12:17 +0530
commit1c162722d7c7f16b8a1bf3818a0991f373eda869 (patch)
tree4097ee97a9382ebd04eee50a3b147809b3e70bbc /board/ti
parentbe79009f3b9bbdbce283e67a865121e576d790ea (diff)
board: ti: am57xx: use GPIO_TO_PIN() to define GPIO number
Using the macro makes code readable without the need for a comment. Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Diffstat (limited to 'board/ti')
-rw-r--r--board/ti/am57xx/board.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c
index 8720eb87a5..c41aa24f95 100644
--- a/board/ti/am57xx/board.c
+++ b/board/ti/am57xx/board.c
@@ -68,8 +68,7 @@ static int board_bootmode_has_emmc(void);
DECLARE_GLOBAL_DATA_PTR;
#define GPIO_ETH_LCD GPIO_TO_PIN(2, 22)
-/* GPIO 7_11 */
-#define GPIO_DDR_VTT_EN 203
+#define GPIO_DDR_VTT_EN GPIO_TO_PIN(7, 11)
/* Touch screen controller to identify the LCD */
#define OSD_TS_FT_BUS_ADDRESS 0