diff options
author | Jean-Jacques Hiblot | 2020-10-16 16:16:31 +0530 |
---|---|---|
committer | Tom Rini | 2020-10-28 11:48:55 -0400 |
commit | 90a979d7887ba75b05143f6704c9638e775635e2 (patch) | |
tree | 89095058cf3dd7c955cbb287d86e113516ea8498 /include/mux.h | |
parent | 0ad40b2463053947da052e74be72938fa5e4735e (diff) |
dm: board: complete the initialization of the muxes in initr_dm()
This will probe the multiplexer devices that have a "u-boot,mux-autoprobe"
property. As a consequence they will be put in their idle state.
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Diffstat (limited to 'include/mux.h')
-rw-r--r-- | include/mux.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/mux.h b/include/mux.h index 85eb7d42fc9..23844f480ac 100644 --- a/include/mux.h +++ b/include/mux.h @@ -109,6 +109,13 @@ void mux_control_put(struct mux_control *mux); */ struct mux_control *devm_mux_control_get(struct udevice *dev, const char *mux_name); +/** + * dm_mux_init() - Initialize the multiplexer controls to their default state. + * + * Return: 0 if OK, -errno otherwise. + */ +int dm_mux_init(void); + #else unsigned int mux_control_states(struct mux_control *mux) { @@ -142,6 +149,11 @@ struct mux_control *devm_mux_control_get(struct udevice *dev, { return NULL; } + +int dm_mux_init(void) +{ + return -ENOSYS; +} #endif #endif |