Linux MIPS Architecture development
 help / color / mirror / Atom feed
* AU1200 fb patch
@ 2005-10-28 11:48 Matej Kupljen
  2005-10-28 14:36 ` Pete Popov
  0 siblings, 1 reply; 2+ messages in thread
From: Matej Kupljen @ 2005-10-28 11:48 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 157 bytes --]

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

[-- Attachment #2: linux-2.6.14-rc2-prime_view-PM070WX1.patch --]
[-- Type: text/x-patch, Size: 1790 bytes --]

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@ultra.si>

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;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: AU1200 fb patch
  2005-10-28 11:48 AU1200 fb patch Matej Kupljen
@ 2005-10-28 14:36 ` Pete Popov
  0 siblings, 0 replies; 2+ messages in thread
From: Pete Popov @ 2005-10-28 14:36 UTC (permalink / raw)
  To: Matej Kupljen; +Cc: 'linux-mips@linux-mips.org'

On Fri, 2005-10-28 at 13:48 +0200, Matej Kupljen wrote:
> 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.

Thanks. There are some other small cleanups I have to do so I'll take
care of it at the same time.

Pete

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-28 14:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-28 11:48 AU1200 fb patch Matej Kupljen
2005-10-28 14:36 ` Pete Popov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox