+
+static const struct phy_mpll_config_tab PHY_MPLL_TABLE[] = { //opmode: 0:HDMI1.4 1:HDMI2.0
+// |pixclock|pixrepet|colordepth|prepdiv|tmdsmhl|opmode|fbdiv2|fbdiv1|ref_cntrl|nctrl|propctrl|intctrl|gmpctrl|
+ {27000000, 0, 8, 0, 0, 0, 2, 3, 0, 3, 3, 0, 0},
+ {74250000, 0, 8, 0, 0, 0, 1, 3, 0, 2, 5, 0, 1},
+ {148500000, 0, 8, 0, 0, 0, 1, 1, 0, 1, 7, 0, 2},
+ {297000000, 0, 8, 0, 0, 0, 1, 0, 0, 0, 7, 0, 3},
+ {297000000, 0, 16, 3, 3, 1, 1, 1, 0, 0, 5, 0, 3},
+ {594000000, 0, 8, 0, 3, 1, 1, 0, 0, 0, 3, 0, 3},
+};
+
+const struct phy_mpll_config_tab* get_phy_mpll_tab(int pixClock, char pixRepet, char colorDepth)
+{
+ int i;
+
+ if(pixClock == 0)
+ return NULL;
+
+ for(i = 0; i < ARRAY_SIZE(PHY_MPLL_TABLE); i++)
+ {
+ if((PHY_MPLL_TABLE[i].pix_clock == pixClock) && (PHY_MPLL_TABLE[i].pix_repet == pixRepet)
+ && (PHY_MPLL_TABLE[i].color_depth == colorDepth))
+ return &PHY_MPLL_TABLE[i];
+ }
+ return NULL;
+}
+
+