projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be79009
)
board: ti: am57xx: use GPIO_TO_PIN() to define GPIO number
author
Luca Ceresoli
<luca@lucaceresoli.net>
Thu, 21 May 2020 13:06:24 +0000
(15:06 +0200)
committer
Lokesh Vutla
<lokeshvutla@ti.com>
Sat, 13 Jun 2020 17:42:17 +0000
(23:12 +0530)
Using the macro makes code readable without the need for a comment.
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
board/ti/am57xx/board.c
patch
|
blob
|
history
diff --git
a/board/ti/am57xx/board.c
b/board/ti/am57xx/board.c
index 8720eb87a55d5e5a4f71287560922ff23cee7b73..c41aa24f957b31d9badf68daa2b9dd4712dfa38b 100644
(file)
--- 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