tegra: dc: Check DC max pixel clock supported
authorPankaj Dabade <pdabade@nvidia.com>
Fri, 19 Dec 2014 06:32:40 +0000 (11:32 +0530)
committerMatthew Pedro <mapedro@nvidia.com>
Thu, 1 Jan 2015 02:38:59 +0000 (18:38 -0800)
commit0c7b62fa9cede7057bf066d9d7150ad6f0a4af5f
tree2bdf9d1db583be36b289993e248f17c2efdfabea
parent21b1a6009bb0e9d9510eab7e6e27a0999bf742f4
tegra: dc: Check DC max pixel clock supported

Check max clock supported by DC before programming it with
that mode. If the requested pixel clock is greater than the
maximum supported then fall back to default mode: 640x480.

Bug 200031813

Change-Id: Icf1f91fe36e29f2c8c6aefe34d3952948743c3a8
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/666089
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/video/tegra/dc/dc.c