mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 22:28:00 +00:00
drm/omap: dpi: Don't fixup video mode in dpi_set_mode()
The video mode is aleady fixed up by the .check_timings() operation, there's no need to repeat that when enabling the DPI output. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
7c27fa57ef
commit
f79fa7da6a
1 changed files with 1 additions and 11 deletions
|
@ -347,10 +347,9 @@ static int dpi_set_dispc_clk(struct dpi_data *dpi, unsigned long pck_req,
|
|||
|
||||
static int dpi_set_mode(struct dpi_data *dpi)
|
||||
{
|
||||
struct videomode *vm = &dpi->vm;
|
||||
const struct videomode *vm = &dpi->vm;
|
||||
int lck_div = 0, pck_div = 0;
|
||||
unsigned long fck = 0;
|
||||
unsigned long pck;
|
||||
int r = 0;
|
||||
|
||||
if (dpi->pll)
|
||||
|
@ -362,15 +361,6 @@ static int dpi_set_mode(struct dpi_data *dpi)
|
|||
if (r)
|
||||
return r;
|
||||
|
||||
pck = fck / lck_div / pck_div;
|
||||
|
||||
if (pck != vm->pixelclock) {
|
||||
DSSWARN("Could not find exact pixel clock. Requested %lu Hz, got %lu Hz\n",
|
||||
vm->pixelclock, pck);
|
||||
|
||||
vm->pixelclock = pck;
|
||||
}
|
||||
|
||||
dss_mgr_set_timings(&dpi->output, vm);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue