Lines Matching +full:bus +full:- +full:addr

1 // SPDX-License-Identifier: GPL-2.0+
55 * - set RGMII receive timing to "receive clock transition when data stable"
56 * - set RGMII transmit timing to "transmit clock internally delayed"
57 * - set RGMII output impedance target to 78,8 Ohm
58 * - run output impedance calibration
59 * - set autonegotiation advertise to 1000FD only
102 * turn off SGMII auto-negotiation
120 static int process_setupcmd(const char *bus, unsigned char addr, in process_setupcmd() argument
124 u8 reg = setupcmd->reg; in process_setupcmd()
125 u16 data = setupcmd->data; in process_setupcmd()
126 u16 mask = setupcmd->mask; in process_setupcmd()
127 u32 timeout = setupcmd->timeout; in process_setupcmd()
131 debug("mii %s:%u reg %2u ", bus, addr, reg); in process_setupcmd()
133 switch (setupcmd->token) { in process_setupcmd()
135 res = miiphy_read(bus, addr, reg, &orig_data); in process_setupcmd()
144 res = miiphy_write(bus, addr, reg, data); in process_setupcmd()
147 res = miiphy_read(bus, addr, reg, &orig_data); in process_setupcmd()
151 res = -1; in process_setupcmd()
156 res = -1; in process_setupcmd()
159 res = miiphy_read(bus, addr, reg, &orig_data); in process_setupcmd()
163 res = -1; in process_setupcmd()
170 res = -1; in process_setupcmd()
177 static int process_setup(const char *bus, unsigned char addr, in process_setup() argument
184 res = process_setupcmd(bus, addr, &setupcmd[k]); in process_setup()
186 printf("mii cmd %u on bus %s addr %u failed, aborting setup\n", in process_setup()
187 setupcmd[k].token, bus, addr); in process_setup()
195 int setup_88e1518(const char *bus, unsigned char addr) in setup_88e1518() argument
199 res = process_setup(bus, addr, in setup_88e1518()
204 res = process_setup(bus, addr, in setup_88e1518()
209 res = process_setup(bus, addr, in setup_88e1518()
214 if (addr) { in setup_88e1518()
215 res = process_setup(bus, addr, in setup_88e1518()
221 res = process_setup(bus, addr, in setup_88e1518()
229 int setup_88e1514(const char *bus, unsigned char addr) in setup_88e1514() argument
233 res = process_setup(bus, addr, in setup_88e1514()
238 res = process_setup(bus, addr, in setup_88e1514()
243 res = process_setup(bus, addr, in setup_88e1514()
249 res = process_setup(bus, addr, in setup_88e1514()
255 res = process_setup(bus, addr, in setup_88e1514()
261 res = process_setup(bus, addr, in setup_88e1514()
266 if (addr) { in setup_88e1514()
267 res = process_setup(bus, addr, in setup_88e1514()
273 res = process_setup(bus, addr, in setup_88e1514()