aboutsummaryrefslogtreecommitdiff
path: root/doc/README.gpio
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2022-09-22 17:53:26 +0200
committerTom Rini <trini@konsulko.com>2023-01-12 14:06:16 -0500
commit48b3ecbedf8208845ac5956a3fb8817269fafedd (patch)
tree9a2a90d475abd35c8945bb3af7aa0c14bfc149f7 /doc/README.gpio
parent942918f2acd3634dee7813f7b9f801ffd54d9f2e (diff)
downloadu-boot-48b3ecbedf8208845ac5956a3fb8817269fafedd.zip
u-boot-48b3ecbedf8208845ac5956a3fb8817269fafedd.tar.gz
u-boot-48b3ecbedf8208845ac5956a3fb8817269fafedd.tar.bz2
gpio: Get rid of gpio_hog_probe_all()
The gpio_hog_probe_all() functionality can be perfectly well replaced by DM_FLAG_PROBE_AFTER_BIND DM flag, which would trigger .probe() callback of each GPIO hog driver instance after .bind() and thus configure the hogged GPIO accordingly. Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'doc/README.gpio')
-rw-r--r--doc/README.gpio6
1 files changed, 2 insertions, 4 deletions
diff --git a/doc/README.gpio b/doc/README.gpio
index 548ff37..d253f65 100644
--- a/doc/README.gpio
+++ b/doc/README.gpio
@@ -2,10 +2,8 @@
GPIO hog (CONFIG_GPIO_HOG)
--------
-All the GPIO hog are initialized in gpio_hog_probe_all() function called in
-board_r.c just before board_late_init() but you can also acces directly to
-the gpio with gpio_hog_lookup_name().
-
+All the GPIO hog are initialized using DM_FLAG_PROBE_AFTER_BIND DM flag
+after bind().
Example, for the device tree: