diff options
author | Min-wuk Lee <mlee@nvidia.com> | 2014-01-17 16:35:30 +0900 |
---|---|---|
committer | Min-wuk Lee <mlee@nvidia.com> | 2014-02-20 18:00:07 -0800 |
commit | 99e134ae9eb37e2ec6a16701303d508cb97bddbf (patch) | |
tree | 89a89cdb0c1137ac4479f12f8b14825dc6f376ca /drivers/video/tegra/dc/of_dc.c | |
parent | a3a3f3a344f64f2f4f495ea6655d68f796a93606 (diff) |
video: tegra: dc: add two DT properties
Add two device tree properties.
1. nvidia,out-rotation to specify panel
rotation.
2. nvidia,dsi-ulpm-not-support. With
enabled, dsi do not enter ulpm mode.
Bug 1371533
Change-Id: Ie6bfb35aec5ed01f5161754873ede598b687f384
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Change-Id: I3a2fbd5e6b8335428ba9b7a0411669c918c582d1
Reviewed-on: http://git-master/r/367623
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/dc/of_dc.c')
-rw-r--r-- | drivers/video/tegra/dc/of_dc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/video/tegra/dc/of_dc.c b/drivers/video/tegra/dc/of_dc.c index 77b09e9d2db1..ff1ab674eb1c 100644 --- a/drivers/video/tegra/dc/of_dc.c +++ b/drivers/video/tegra/dc/of_dc.c @@ -260,6 +260,10 @@ static int parse_dc_default_out(struct platform_device *ndev, default_out->height = (unsigned) temp; OF_DC_LOG("out_height %d\n", default_out->height); } + if (!of_property_read_u32(np, "nvidia,out-rotation", &temp)) { + default_out->rotation = (unsigned) temp; + OF_DC_LOG("out_rotation %d\n", default_out->rotation); + } if (np_hdmi && of_device_is_available(np_hdmi) && (default_out->type == TEGRA_DC_OUT_HDMI)) { int id; @@ -1061,6 +1065,12 @@ int parse_dsi_settings(struct platform_device *ndev, dsi->power_saving_suspend); } if (!of_property_read_u32(np_panel, + "nvidia,dsi-ulpm-not-support", &temp)) { + dsi->ulpm_not_supported = (bool)temp; + OF_DC_LOG("dsi ulpm_not_supported %d\n", + dsi->ulpm_not_supported); + } + if (!of_property_read_u32(np_panel, "nvidia,dsi-video-data-type", &temp)) { dsi->video_data_type = (u8)temp; if (temp == TEGRA_DSI_VIDEO_TYPE_VIDEO_MODE) |