From: Matej Kupljen <matej.kupljen@ultra.si>
To: linux-mips@linux-mips.org
Subject: AU1200 fb patch
Date: Fri, 28 Oct 2005 13:48:04 +0200 [thread overview]
Message-ID: <1130500084.4785.10.camel@localhost.localdomain> (raw)
[-- 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;
next reply other threads:[~2005-10-28 11:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-28 11:48 Matej Kupljen [this message]
2005-10-28 14:36 ` AU1200 fb patch Pete Popov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1130500084.4785.10.camel@localhost.localdomain \
--to=matej.kupljen@ultra.si \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox