diff options
author | Abhilash Kesavan <a.kesavan@samsung.com> | 2012-10-25 16:31:01 +0000 |
---|---|---|
committer | Gerald Van Baren <gvb@unssw.com> | 2012-11-12 23:00:35 -0500 |
commit | 5921f6a2924827548caf55b28a6827b9d856e37f (patch) | |
tree | ee9940600b7daaf68683aaae8c0199c02d3a3c8a /lib | |
parent | f20c461984c3d986fde037d4c5bf600aa0497676 (diff) | |
download | u-boot-imx-5921f6a2924827548caf55b28a6827b9d856e37f.zip u-boot-imx-5921f6a2924827548caf55b28a6827b9d856e37f.tar.gz u-boot-imx-5921f6a2924827548caf55b28a6827b9d856e37f.tar.bz2 |
fdt: Add function for decoding multiple gpios globally available
Samsung's SDHCI bindings require multiple gpios to be parsed and
configured at a time. Export the already available fdtdec_decode_gpios
for this purpose.
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Commit-Ready: Che-Liang Chiou <clchiou@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fdtdec.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 5570972..32f03cc 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@ -426,9 +426,8 @@ int fdtdec_get_bool(const void *blob, int node, const char *prop_name) * @return number of GPIOs read if ok, -FDT_ERR_BADLAYOUT if max_count would * be exceeded, or -FDT_ERR_NOTFOUND if the property is missing. */ -static int fdtdec_decode_gpios(const void *blob, int node, - const char *prop_name, struct fdt_gpio_state *gpio, - int max_count) +int fdtdec_decode_gpios(const void *blob, int node, const char *prop_name, + struct fdt_gpio_state *gpio, int max_count) { const struct fdt_property *prop; const u32 *cell; |