]> git.ipfire.org Git - thirdparty/u-boot.git/commit
phy: samsung: add enum for variants based on SoCs
authorKaustabh Chakraborty <kauschluss@disroot.org>
Mon, 23 Feb 2026 14:25:23 +0000 (19:55 +0530)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 25 Feb 2026 01:46:05 +0000 (10:46 +0900)
commitae1e081f83fb4b4d79e32f1bdcea3e47519ce05c
tree412151676a35a4955642b5063ce1135df8d6356e
parent11198fa347390eb449c2a0939f5f00cf510fe285
phy: samsung: add enum for variants based on SoCs

The variant enum is used to uniquely identify which SoC the PHY block
belongs to. It is initially set in the match table, along with the
compatible string, it gets copied to driver data struct during probe.

SoC specific functions must only be called if the respective variant
enum is set. Add switch-case blocks wherever required.

Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/phy/phy-exynos-usbdrd.c