imx framebuffer | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
Hi all
I am facing problem when using framebuffer in mx1ads board with
linux.2.6.12. After search over web i found some patch on imx processor
and the problem happen with set_imx_fb_info function. It seem that
arch/arm/mach-imx/mx1ads.c does not intialize the framebuffer setting.
Is it still developing?
After modify with patch-2.6.12-mx1ads_fb , i still can not get the
lcd work. Is there any problem in my patch?
the reference patch:
http://www.pengutronix.de/software/linux-i.MX/download/v2.6/linux-2.6.12-imx1.diff
Thanks for helping
best regard
Mike,Lee
--- arch/arm/mach-imx/mx1ads.c 2005-07-20 16:38:22.528378632 +0800
+++ ../linux-2.6.12/arch/arm/mach-imx/mx1ads.c 2005-06-18 03:48:29.000000000 +0800
@@ -27,7 +27,6 @@
#include <linux/interrupt.h>
#include "generic.h"
#include <asm/serial.h>
-#include <asm/arch/imxfb.h>
static struct resource mx1ads_resources[] = {
[0] = {
@@ -59,50 +51,12 @@
&mx1ads_device,
};
-static void mx1ads_lcd_power(int on)
-{
- if(on)
- DR(2) |= 0x00010000;
- else
- DR(2) &= ~0x00010000;
-}
-
-static struct imxfb_mach_info mx1ads_fb_info __initdata = {
- .pixclock = 62500, .bpp = 16,
- .xres = 240, .yres = 320,
-
- .hsync_len = 1, .vsync_len = 1,
- .left_margin = 14, .upper_margin = 9,
- .right_margin = 6, .lower_margin = 7,
-
- /* The following settings work with Sharp TFT LQ035Q7DB02
- * For new LCD, we need "active low" pixel polarity.
- * If you are using an old LCD, please comment out PCR_PIXPOL.
- */
- .pcr = PCR_TFT | PCR_COLOR | PCR_PBSIZ_8 | PCR_BPIX_16 | PCR_PIXPOL | \
- PCR_ACD_SEL | PCR_ACD(11) | PCR_SHARP | PCR_PCD(2),
-
- /* For new LCD, we need to enable the constrast control.
- * If you are using an old LCD, please comment out PWMR_CC_EN.
- */
- .pwmr = PWMR_CLS(169) | PWMR_CC_EN | PWMR_PW(0xB0),
- .lscr1 = LSCR1_PS_RISE_DELAY(0) | LSCR1_CLS_RISE_DELAY(9) |
- LSCR1_REV_TOGGLE_DELAY(3),
-
- .lcd_power = mx1ads_lcd_power,
-};
-
static void __init
mx1ads_init(void)
{
#ifdef CONFIG_LEDS
imx_gpio_mode(GPIO_PORTA | GPIO_OUT | GPIO_GPIO | 2);
#endif
- /* This pin enables the Sharp TFT Display */
- imx_gpio_mode(GPIO_PORTC | GPIO_GPIO | GPIO_OUT | GPIO_PF | 16);
- set_imx_fb_info(&mx1ads_fb_info);
- mx1ads_lcd_power(1);
-
platform_add_devices(devices, ARRAY_SIZE(devices));
}
------------------------------------------------------------------- List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
[Site Home] [IETF Annouce] [Security] [Bugtraq] [Linux] [Linux ARM Kernel] [Linux MIPS] [ECOS] [Tools] [DDR & Rambus] [Monitors]