sor: allow selection of alt sor1 tuning
This commit is contained in:
1 parent
8d227a6fbb
commit
2d503e0fb1
1 file changed
+23
-4
@@ -55,7 +55,6 @@ struct tegra_sor_hdmi_settings {
|
||||
u8 preemphasis[4];
|
||||
};
|
||||
|
||||
#if 1
|
||||
static const struct tegra_sor_hdmi_settings tegra210_sor_hdmi_defaults[] = {
|
||||
{
|
||||
.frequency = 54000000,
|
||||
@@ -134,8 +133,8 @@ static const struct tegra_sor_hdmi_settings tegra210_sor_hdmi_defaults[] = {
|
||||
.preemphasis = { 0x00, 0x00, 0x00, 0x00 },
|
||||
},
|
||||
};
|
||||
#else
|
||||
static const struct tegra_sor_hdmi_settings tegra210_sor_hdmi_defaults[] = {
|
||||
|
||||
static const struct tegra_sor_hdmi_settings tegra210_sor_hdmi_odin[] = {
|
||||
{
|
||||
.frequency = 75000000,
|
||||
.vcocap = 0x3,
|
||||
@@ -198,7 +197,6 @@ static const struct tegra_sor_hdmi_settings tegra210_sor_hdmi_defaults[] = {
|
||||
.preemphasis = { 0x02, 0x3f, 0x3f, 0x3f },
|
||||
},
|
||||
};
|
||||
#endif
|
||||
|
||||
static const struct tegra_sor_hdmi_settings tegra186_sor_hdmi_defaults[] = {
|
||||
{
|
||||
@@ -3533,6 +3531,26 @@ static const struct tegra_sor_soc tegra210_sor1 = {
|
||||
.tx_pu = tegra124_sor_tx_pu,
|
||||
};
|
||||
|
||||
static const struct tegra_sor_soc tegra210_sor1_odin = {
|
||||
.supports_lvds = false,
|
||||
.supports_hdmi = true,
|
||||
.supports_dp = true,
|
||||
.supports_audio = true,
|
||||
.supports_hdcp = true,
|
||||
|
||||
.regs = &tegra210_sor_regs,
|
||||
.has_nvdisplay = false,
|
||||
|
||||
.num_settings = ARRAY_SIZE(tegra210_sor_hdmi_odin),
|
||||
.settings = tegra210_sor_hdmi_odin,
|
||||
.xbar_cfg = tegra210_sor_xbar_cfg,
|
||||
.lane_map = tegra210_sor_lane_map,
|
||||
.voltage_swing = tegra124_sor_voltage_swing,
|
||||
.pre_emphasis = tegra124_sor_pre_emphasis,
|
||||
.post_cursor = tegra124_sor_post_cursor,
|
||||
.tx_pu = tegra124_sor_tx_pu,
|
||||
};
|
||||
|
||||
static const struct tegra_sor_regs tegra186_sor_regs = {
|
||||
.head_state0 = 0x151,
|
||||
.head_state1 = 0x154,
|
||||
@@ -3656,6 +3674,7 @@ static const struct of_device_id tegra_sor_of_match[] = {
|
||||
{ .compatible = "nvidia,tegra194-sor", .data = &tegra194_sor },
|
||||
{ .compatible = "nvidia,tegra186-sor", .data = &tegra186_sor },
|
||||
{ .compatible = "nvidia,tegra210-sor1", .data = &tegra210_sor1 },
|
||||
{ .compatible = "nvidia,tegra210-sor1-odin", .data = &tegra210_sor1_odin },
|
||||
{ .compatible = "nvidia,tegra210-sor", .data = &tegra210_sor },
|
||||
{ .compatible = "nvidia,tegra132-sor", .data = &tegra132_sor },
|
||||
{ .compatible = "nvidia,tegra124-sor", .data = &tegra124_sor },
|
||||
|
||||
Reference in new issue
Block a user