diff options
author | Marek Vasut <marex@denx.de> | 2022-09-22 17:53:26 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-01-12 14:06:16 -0500 |
commit | 48b3ecbedf8208845ac5956a3fb8817269fafedd (patch) | |
tree | 9a2a90d475abd35c8945bb3af7aa0c14bfc149f7 /doc | |
parent | 942918f2acd3634dee7813f7b9f801ffd54d9f2e (diff) | |
download | u-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')
-rw-r--r-- | doc/README.gpio | 6 |
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: |