drm: tegra: Add Tegra30 support
authorThierry Reding <thierry.reding@avionic-design.de>
Wed, 21 Nov 2012 08:50:41 +0000 (09:50 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 28 Nov 2012 10:07:02 +0000 (20:07 +1000)
Add support for host1x, the display controllers and HDMI on the Tegra30
SoC.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Tested-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Mark Zhang <markz@nvidia.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/tegra/dc.c
drivers/gpu/drm/tegra/hdmi.c
drivers/gpu/drm/tegra/host1x.c

index 54f05d887dcee690fff518fa6d1b432350e5a7cb..074410371e2a40e4af77ce196069473a53b8860f 100644 (file)
@@ -818,6 +818,7 @@ static int tegra_dc_remove(struct platform_device *pdev)
 }
 
 static struct of_device_id tegra_dc_of_match[] = {
+       { .compatible = "nvidia,tegra30-dc", },
        { .compatible = "nvidia,tegra20-dc", },
        { },
 };
index 58f55dc6d59d43b33a6691cdde870a41940523f1..ab4016412bbfea48079ca0d197fd4a85c3fbaf3b 100644 (file)
@@ -1318,8 +1318,8 @@ static int tegra_hdmi_remove(struct platform_device *pdev)
 }
 
 static struct of_device_id tegra_hdmi_of_match[] = {
-       { .compatible = "nvidia,tegra20-hdmi", },
        { .compatible = "nvidia,tegra30-hdmi", },
+       { .compatible = "nvidia,tegra20-hdmi", },
        { },
 };
 
index 1f728cd7f61a1176e0c192e8aefeb9751a625254..bdb97a564d8201fd6dc367eb15dd65551fef3cdd 100644 (file)
@@ -68,6 +68,8 @@ static int host1x_parse_dt(struct host1x *host1x)
        static const char * const compat[] = {
                "nvidia,tegra20-dc",
                "nvidia,tegra20-hdmi",
+               "nvidia,tegra30-dc",
+               "nvidia,tegra30-hdmi",
        };
        unsigned int i;
        int err;
@@ -268,6 +270,7 @@ int host1x_unregister_client(struct host1x *host1x,
 }
 
 static struct of_device_id tegra_host1x_of_match[] = {
+       { .compatible = "nvidia,tegra30-host1x", },
        { .compatible = "nvidia,tegra20-host1x", },
        { },
 };