Skip to content

Commit 8e29b78

Browse files
jonasjelonekhauke
authored andcommitted
realtek: pcs: add CMU management SerDes ops
Add new SerDes ops for CMU management to be able to share common behavior of CMU configuration for RTL930x and RTL931x while still covering variant specifics. Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com> Link: openwrt/openwrt#22198 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
1 parent c4a3a07 commit 8e29b78

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,14 @@ struct rtpcs_serdes_ops {
179179
int (*set_autoneg)(struct rtpcs_serdes *sds, unsigned int neg_mode,
180180
const unsigned long *advertising);
181181
void (*restart_autoneg)(struct rtpcs_serdes *sds);
182+
183+
/* CMU management */
184+
int (*get_pll_select)(struct rtpcs_serdes *sds, enum rtpcs_sds_pll_type *pll);
185+
int (*set_pll_select)(struct rtpcs_serdes *sds, enum rtpcs_sds_mode hw_mode,
186+
enum rtpcs_sds_pll_type pll);
187+
int (*reset_cmu)(struct rtpcs_serdes *sds, enum rtpcs_sds_pll_type pll);
188+
/* online reconfiguration of a running SerDes to another PLL */
189+
int (*reconfigure_to_pll)(struct rtpcs_serdes *sds, enum rtpcs_sds_pll_type pll);
182190
};
183191

184192
struct rtpcs_sds_reg_field {

0 commit comments

Comments
 (0)