summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorHaojian Zhuang <haojian.zhuang@linaro.org>2016-02-03 22:35:04 +0800
committerHaojian Zhuang <haojian.zhuang@linaro.org>2016-02-12 23:21:37 +0800
commit7dc4b2272f031924cd47c0a8fe36679f1a396a65 (patch)
tree9a8ac3ad2f457779eaeb3e05da24d9472f91469d /docs
parent0ab3f9a741afcded4ddd4cf4da8a2bd2d5da8551 (diff)
Document: add PLAT_PL061_MAX_GPIOS define
ARM PL061 GPIO driver requires the "PLAT_PL061_MAX_GPIOS" definition. By default, it's defined to 32 in PL061 GPIO driver. If user wants more PL061 controllers in platform, user should define the build flag in platform.mk instead. Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Diffstat (limited to 'docs')
-rw-r--r--docs/porting-guide.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/porting-guide.md b/docs/porting-guide.md
index bdbdbc22..89d8251e 100644
--- a/docs/porting-guide.md
+++ b/docs/porting-guide.md
@@ -466,6 +466,18 @@ memory layout implies some image overlaying like in ARM standard platforms.
Defines the maximum address that the TSP's progbits sections can occupy.
+If the platform port uses the PL061 GPIO driver, the following constant may
+optionally be defined:
+
+* **PLAT_PL061_MAX_GPIOS**
+ Maximum number of GPIOs required by the platform. This allows control how
+ much memory is allocated for PL061 GPIO controllers. The default value is
+ 32.
+ [For example, define the build flag in platform.mk]:
+ PLAT_PL061_MAX_GPIOS := 160
+ $(eval $(call add_define,PLAT_PL061_MAX_GPIOS))
+
+
### File : plat_macros.S [mandatory]
Each platform must ensure a file of this name is in the system include path with