aboutsummaryrefslogtreecommitdiff
path: root/plat/hisilicon/poplar
diff options
context:
space:
mode:
authorVictor Chong <victor.chong@linaro.org>2017-10-19 16:49:52 +0900
committerVictor Chong <victor.chong@linaro.org>2017-12-12 13:01:09 +0900
commit78896ac36e1c03ef898f670547a3208f4442673e (patch)
tree9203130e8fef40c1bd699d7a6fb4c07f7109e125 /plat/hisilicon/poplar
parent211d307c6bfadbe44aa27998e105436143e1b147 (diff)
downloadtrusted-firmware-a-78896ac36e1c03ef898f670547a3208f4442673e.tar.gz
poplar: Fix GPIO_MAX
Per https://github.com/sdrobertw/Poplar/blob/master/HardwareDocs/Processor_Datasheet_v2XX.pdf there are 13 groups of GPIO controllers, not 12. Signed-off-by: Victor Chong <victor.chong@linaro.org>
Diffstat (limited to 'plat/hisilicon/poplar')
-rw-r--r--plat/hisilicon/poplar/include/hi3798cv200.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/plat/hisilicon/poplar/include/hi3798cv200.h b/plat/hisilicon/poplar/include/hi3798cv200.h
index 6318b9c64..06dadc2b5 100644
--- a/plat/hisilicon/poplar/include/hi3798cv200.h
+++ b/plat/hisilicon/poplar/include/hi3798cv200.h
@@ -30,7 +30,7 @@
#define TIMER20_BGLOAD (SEC_TIMER2_BASE + 0x018)
/* GPIO */
-#define GPIO_MAX (12)
+#define GPIO_MAX (13)
#define GPIO_BASE(x) (x != 5 ? \
0xf820000 + x * 0x1000 : 0xf8004000)