Re: [PATCH v7 3/6] soc: fsl: guts: add the RCW override of the pad muxes
From: Christophe Leroy (CS GROUP)
Date: Tue Nov 17 2026 - 17:27:03 EST
Le 17/11/2026 à 22:10, Vladimir Oltean a écrit :
On Tue, Nov 17, 2026 at 03:53:13PM +0100, Vincent Jardin via B4 Relay wrote:
From: Vincent Jardin <vjardin@xxxxxxx>
fsl_guts_rcw_rmw() only serves the SerDes lane modes. Export it for
the pad-mux fields of the RCW, and for them only:
- fsl_guts_pmux_read() reads the pad-mux fields of a status register
- fsl_guts_pmux_override() changes pad-mux fields of one under
rcwcr_lock and waits for the status register to follow
- fsl_guts_pmux_override_supported() tells whether the SoC has pad-mux
fields and whether the DCSR view of DCFG, which holds the override
registers, is mapped
Each SoC lists in its fsl_soc_data the fields that can be overridden,
per RCWSR: a register or a field outside of this list is refused, so
the SerDes protocols stay with fsl_guts_lane_set_mode(). The LX2160A
lists the pad muxes of RCWSR12 to RCWSR14 and of RCWSR27.
Suggested-by: Vladimir Oltean <vladimir.oltean@xxxxxxx>
Acked-by: Frank Li <Frank.li@xxxxxxx>
Signed-off-by: Vincent Jardin <vjardin@xxxxxxx>
---
Looks good, thanks.
Reviewed-by: Vladimir Oltean <vladimir.oltean@xxxxxxx>
Acked-by: Christophe Leroy (CS GROUP) <chleroy@xxxxxxxxxx>