Skip to content

Commit b46e2c9

Browse files
jernejskmripard
authored andcommitted
drm/sun4i: Add support for A64 HDMI PHY
PHY is the same as in H3, except it can switch between two clock parents. Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180625120304.7543-21-jernej.skrabec@siol.net
1 parent c891a65 commit b46e2c9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,14 @@ static struct regmap_config sun8i_hdmi_phy_regmap_config = {
396396
.name = "phy"
397397
};
398398

399+
static const struct sun8i_hdmi_phy_variant sun50i_a64_hdmi_phy = {
400+
.has_phy_clk = true,
401+
.has_second_pll = true,
402+
.phy_init = &sun8i_hdmi_phy_init_h3,
403+
.phy_disable = &sun8i_hdmi_phy_disable_h3,
404+
.phy_config = &sun8i_hdmi_phy_config_h3,
405+
};
406+
399407
static const struct sun8i_hdmi_phy_variant sun8i_a83t_hdmi_phy = {
400408
.phy_init = &sun8i_hdmi_phy_init_a83t,
401409
.phy_disable = &sun8i_hdmi_phy_disable_a83t,
@@ -410,6 +418,10 @@ static const struct sun8i_hdmi_phy_variant sun8i_h3_hdmi_phy = {
410418
};
411419

412420
static const struct of_device_id sun8i_hdmi_phy_of_table[] = {
421+
{
422+
.compatible = "allwinner,sun50i-a64-hdmi-phy",
423+
.data = &sun50i_a64_hdmi_phy,
424+
},
413425
{
414426
.compatible = "allwinner,sun8i-a83t-hdmi-phy",
415427
.data = &sun8i_a83t_hdmi_phy,

0 commit comments

Comments
 (0)