Hi This patch fixes compilation error for au1200fb.c to replace io_remap_page_range with the io_remap_pfn_range. Also it adds new panel setting. BR, Matej
This patch: - Adds new panel setting for Prime View PM070WX1 - Replaces io_remap_page_range with the io_remap_pfn_range Signed-off-by: Matej Kupljen <matej.kupljen@xxxxxxxx> diff --git a/drivers/video/au1200fb.c b/drivers/video/au1200fb.c --- a/drivers/video/au1200fb.c +++ b/drivers/video/au1200fb.c @@ -651,6 +651,39 @@ static struct panel_settings known_lcd_p 856, 856, 480, 480, }, + [9] = { /* Prime View PM070WX1 800x480 TFT */ + .name = "PrimeView_PM070WX1", + .monspecs = { + .modedb = NULL, + .modedb_len = 0, + .hfmin = 30000, + .hfmax = 70000, + .vfmin = 60, + .vfmax = 60, + .dclkmin = 6000000, + .dclkmax = 28000000, + .input = FB_DISP_RGB, + }, + .mode_screen = LCD_SCREEN_SX_N(800) | + LCD_SCREEN_SY_N(480), + .mode_horztiming = LCD_HORZTIMING_HND2_N(43) | + LCD_HORZTIMING_HND1_N(43) | LCD_HORZTIMING_HPW_N(114), + .mode_verttiming = LCD_VERTTIMING_VND2_N(20) | + LCD_VERTTIMING_VND1_N(21) | LCD_VERTTIMING_VPW_N(4), + .mode_clkcontrol = 0x00020001, /* /4=24Mhz */ + .mode_pwmdiv = 0x8000063f, + .mode_pwmhi = 0x03400000, + .mode_outmask = 0x00fcfcfc, + .mode_fifoctrl = 0x2f2f2f2f, + .mode_toyclksrc = 0x00000004, /* AUXPLL directly */ + .mode_backlight = 0x00000000, + .mode_auxpll = 8, /* 96MHz AUXPLL */ + .device_init = board_au1200fb_panel_init, + .device_shutdown = board_au1200fb_panel_shutdown, + 800, 800, + 480, 480, + }, + }; #define NUM_PANELS (sizeof(known_lcd_panels) / sizeof(struct panel_settings)) @@ -1276,7 +1309,7 @@ int au1200fb_fb_mmap(struct fb_info *fbi vma->vm_flags |= VM_IO; - if (io_remap_page_range(vma, vma->vm_start, off, + if (io_remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, vma->vm_end - vma->vm_start, vma->vm_page_prot)) { return -EAGAIN;