phy: cadence-torrent: Use key:value pair table for all settings
authorRoger Quadros <rogerq@kernel.org>
Tue, 30 May 2023 14:38:53 +0000 (16:38 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 12 Jul 2023 16:57:40 +0000 (22:27 +0530)
commitebd05f90bfef856e10fbd5da2bfb9357676a24e6
tree7edc746b9c8c395da19a03a8ca1c472a7007d242
parent16e0f0ea7f464cfc04996cf5dee879dfb856bc9a
phy: cadence-torrent: Use key:value pair table for all settings

Instead of a 3D matrix use a key:value pair table for link_cmn_vals,
xcvr_diag_vals, pcs_cmn_vals, phy_pma_cmn_vals, cmn_vals,
tx_ln_vals and rx_ln_vals. This makes it scaleable for multiple
reference clocks.

Wherever both CDNS and TI use the same settings, reuse the same data.

Introduce CLK_ANY and ANY_SSC enums which are used if the setting
is independent of clock rate or SSC type.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
Signed-off-by: Swapnil Jakhade <sjakhade@cadence.com>
Link: https://lore.kernel.org/r/20230530143853.26571-3-sjakhade@cadence.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/cadence/phy-cadence-torrent.c