xref: /aosp_15_r20/external/coreboot/src/drivers/net/phy/m88e1512/chip.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef __DRIVERS_NET_PHY_M88E1512_CHIP_H__
4 #define __DRIVERS_NET_PHY_M88E1512_CHIP_H__
5 
6 #include "m88e1512.h"
7 
8 struct drivers_net_phy_m88e1512_config {
9 	bool configure_leds;		/* Enable LED customization */
10 	unsigned char led_0_ctrl;	/* LED[0] Control */
11 	unsigned char led_1_ctrl;	/* LED[1] Control */
12 	unsigned char led_2_ctrl;	/* LED[2] Control */
13 	bool enable_int;		/* INTn can be routed to LED[2] pin */
14 	/* 1x, 2x,...8x is the number of times the PHY attempts to establish Gigabit link
15 	   before the PHY downshifts to the next highest speed. */
16 	unsigned char downshift_cnt;
17 	bool force_mos;			/* Force PMOS/NMOS manually */
18 	unsigned char pmos_val;		/* Set PMOS calibration value */
19 	unsigned char nmos_val;		/* Set NMOS calibration value */
20 };
21 
22 #endif /* __DRIVERS_NET_PHY_M88E1512_CHIP_H__ */
23