phy: marvell: cp110: let the firmware configure the comphy
authorGrzegorz Jaszczyk <jaz@semihalf.com>
Sun, 18 Oct 2020 14:11:11 +0000 (17:11 +0300)
committerStefan Roese <sr@denx.de>
Thu, 29 Oct 2020 07:00:12 +0000 (08:00 +0100)
commitb24bb99df10542bd4ec3cfa310e28b4544fbc847
treeac2e30880cdb0f116ce719b0d792617aec36fa1e
parent81a659e10a10020cfb03abd4794103194add1f3a
phy: marvell: cp110: let the firmware configure the comphy

Replace all comphy initialization with appropriate smc calls. It will
result with triggering synchronous exception that is handled by Secure
Monitor code in EL3. Then the Secure Monitor code will dispatch each smc
call (by parsing the smc function identifier) and triggers appropriate
comphy initialization.

This patch reworks serdes handling for: SATA, SGMII, HS-SGMII and SFI
interfaces.

Signed-off-by: Grzegorz Jaszczyk <jaz@semihalf.com>
Reviewed-by: Igal Liberman <igall@marvell.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
drivers/phy/marvell/comphy_cp110.c