diff options
author | Ovidiu Panait <ovidiu.panait@windriver.com> | 2020-11-28 10:43:17 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-01-15 14:36:12 -0500 |
commit | c65abc70fb7212301b70c6ab05ba2aa22c31c69e (patch) | |
tree | 1e21ec4d13ceeabbbc63bc979adb729873b046dc /include/miiphy.h | |
parent | ce41e735231f350722221b10bb81408f88235d1d (diff) | |
download | u-boot-c65abc70fb7212301b70c6ab05ba2aa22c31c69e.tar.gz |
common: board_r: Drop initr_bbmii wrapper
Add a return value to bb_miiphy_init and use it directly in the
post-relocation init sequence, rather than using a wrapper stub.
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/miiphy.h')
-rw-r--r-- | include/miiphy.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/miiphy.h b/include/miiphy.h index 61c136b114..8b77bac01e 100644 --- a/include/miiphy.h +++ b/include/miiphy.h @@ -81,7 +81,15 @@ struct bb_miiphy_bus { extern struct bb_miiphy_bus bb_miiphy_buses[]; extern int bb_miiphy_buses_num; -void bb_miiphy_init(void); +/** + * bb_miiphy_init() - Initialize bit-banged MII bus driver + * + * It is called during the generic post-relocation init sequence. + * + * Return: 0 if OK + */ +int bb_miiphy_init(void); + int bb_miiphy_read(struct mii_dev *miidev, int addr, int devad, int reg); int bb_miiphy_write(struct mii_dev *miidev, int addr, int devad, int reg, u16 value); |