Merge tag 'fbdev-updates-for-3.4' of git://github.com/schandinat/linux-2.6
Pull fbdev updates for 3.4 from Florian Tobias Schandinat: - drivers for Samsung Exynos MIPI DSI and display port - i740fb to support those old Intel chips - large updates to OMAP, viafb and sh_mobile_lcdcfb - some updates to s3c-fb and udlfb, few patches to others Fix up conflicts in drivers/video/udlfb.c due to Key Sievers' fix making it in twice. * tag 'fbdev-updates-for-3.4' of git://github.com/schandinat/linux-2.6: (156 commits) Revert "video:uvesafb: Fix oops that uvesafb try to execute NX-protected page" OMAPDSS: register dss drivers in module init video: pxafb: add clk_prepare/clk_unprepare calls fbdev: bfin_adv7393fb: Drop needless include fbdev: sh_mipi_dsi: add extra phyctrl for sh_mipi_dsi_info fbdev: remove dependency of FB_SH_MOBILE_MERAM from FB_SH_MOBILE_LCDC Revert "MAINTAINERS: add entry for exynos mipi display drivers" fbdev: da8xx: add support for SP10Q010 display fbdev: da8xx:: fix reporting of the display timing info drivers/video/pvr2fb.c: ensure arguments to request_irq and free_irq are compatible OMAPDSS: APPLY: fix clearing shadow dirty flag with manual update fbdev: sh_mobile_meram: Implement system suspend/resume fbdev: sh_mobile_meram: Remove unneeded sanity checks fbdev: sh_mobile_meram: Don't perform update in register operation arm: mach-shmobile: Constify sh_mobile_meram_cfg structures fbdev: sh_mobile_lcdc: Don't store copy of platform data fbdev: sh_mobile_meram: Remove unused sh_mobile_meram_icb_cfg fields arm: mach-shmobile: Don't set MERAM ICB numbers in platform data fbdev: sh_mobile_meram: Allocate ICBs automatically fbdev: sh_mobile_meram: Use genalloc to manage MERAM allocation ...
这个提交包含在:
@@ -157,7 +157,7 @@ static struct platform_device nand_flash_device = {
|
||||
#define PORT_DRVCRA 0xA405018A
|
||||
#define PORT_DRVCRB 0xA405018C
|
||||
|
||||
static int ap320_wvga_set_brightness(void *board_data, int brightness)
|
||||
static int ap320_wvga_set_brightness(int brightness)
|
||||
{
|
||||
if (brightness) {
|
||||
gpio_set_value(GPIO_PTS3, 0);
|
||||
@@ -170,12 +170,12 @@ static int ap320_wvga_set_brightness(void *board_data, int brightness)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int ap320_wvga_get_brightness(void *board_data)
|
||||
static int ap320_wvga_get_brightness(void)
|
||||
{
|
||||
return gpio_get_value(GPIO_PTS3);
|
||||
}
|
||||
|
||||
static void ap320_wvga_power_on(void *board_data, struct fb_info *info)
|
||||
static void ap320_wvga_power_on(void)
|
||||
{
|
||||
msleep(100);
|
||||
|
||||
@@ -183,7 +183,7 @@ static void ap320_wvga_power_on(void *board_data, struct fb_info *info)
|
||||
__raw_writew(FPGA_LCDREG_VAL, FPGA_LCDREG);
|
||||
}
|
||||
|
||||
static void ap320_wvga_power_off(void *board_data)
|
||||
static void ap320_wvga_power_off(void)
|
||||
{
|
||||
/* ASD AP-320/325 LCD OFF */
|
||||
__raw_writew(0, FPGA_LCDREG);
|
||||
@@ -211,21 +211,19 @@ static struct sh_mobile_lcdc_info lcdc_info = {
|
||||
.fourcc = V4L2_PIX_FMT_RGB565,
|
||||
.interface_type = RGB18,
|
||||
.clock_divider = 1,
|
||||
.lcd_cfg = ap325rxa_lcdc_modes,
|
||||
.num_cfg = ARRAY_SIZE(ap325rxa_lcdc_modes),
|
||||
.lcd_size_cfg = { /* 7.0 inch */
|
||||
.width = 152,
|
||||
.lcd_modes = ap325rxa_lcdc_modes,
|
||||
.num_modes = ARRAY_SIZE(ap325rxa_lcdc_modes),
|
||||
.panel_cfg = {
|
||||
.width = 152, /* 7.0 inch */
|
||||
.height = 91,
|
||||
},
|
||||
.board_cfg = {
|
||||
.display_on = ap320_wvga_power_on,
|
||||
.display_off = ap320_wvga_power_off,
|
||||
.set_brightness = ap320_wvga_set_brightness,
|
||||
.get_brightness = ap320_wvga_get_brightness,
|
||||
},
|
||||
.bl_info = {
|
||||
.name = "sh_mobile_lcdc_bl",
|
||||
.max_brightness = 1,
|
||||
.set_brightness = ap320_wvga_set_brightness,
|
||||
.get_brightness = ap320_wvga_get_brightness,
|
||||
},
|
||||
}
|
||||
};
|
||||
|
@@ -310,14 +310,14 @@ static const struct fb_videomode ecovec_dvi_modes[] = {
|
||||
},
|
||||
};
|
||||
|
||||
static int ecovec24_set_brightness(void *board_data, int brightness)
|
||||
static int ecovec24_set_brightness(int brightness)
|
||||
{
|
||||
gpio_set_value(GPIO_PTR1, brightness);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int ecovec24_get_brightness(void *board_data)
|
||||
static int ecovec24_get_brightness(void)
|
||||
{
|
||||
return gpio_get_value(GPIO_PTR1);
|
||||
}
|
||||
@@ -327,17 +327,15 @@ static struct sh_mobile_lcdc_info lcdc_info = {
|
||||
.interface_type = RGB18,
|
||||
.chan = LCDC_CHAN_MAINLCD,
|
||||
.fourcc = V4L2_PIX_FMT_RGB565,
|
||||
.lcd_size_cfg = { /* 7.0 inch */
|
||||
.panel_cfg = { /* 7.0 inch */
|
||||
.width = 152,
|
||||
.height = 91,
|
||||
},
|
||||
.board_cfg = {
|
||||
.set_brightness = ecovec24_set_brightness,
|
||||
.get_brightness = ecovec24_get_brightness,
|
||||
},
|
||||
.bl_info = {
|
||||
.name = "sh_mobile_lcdc_bl",
|
||||
.max_brightness = 1,
|
||||
.set_brightness = ecovec24_set_brightness,
|
||||
.get_brightness = ecovec24_get_brightness,
|
||||
},
|
||||
}
|
||||
};
|
||||
@@ -1118,8 +1116,8 @@ static int __init arch_setup(void)
|
||||
/* DVI */
|
||||
lcdc_info.clock_source = LCDC_CLK_EXTERNAL;
|
||||
lcdc_info.ch[0].clock_divider = 1;
|
||||
lcdc_info.ch[0].lcd_cfg = ecovec_dvi_modes;
|
||||
lcdc_info.ch[0].num_cfg = ARRAY_SIZE(ecovec_dvi_modes);
|
||||
lcdc_info.ch[0].lcd_modes = ecovec_dvi_modes;
|
||||
lcdc_info.ch[0].num_modes = ARRAY_SIZE(ecovec_dvi_modes);
|
||||
|
||||
gpio_set_value(GPIO_PTA2, 1);
|
||||
gpio_set_value(GPIO_PTU1, 1);
|
||||
@@ -1127,8 +1125,8 @@ static int __init arch_setup(void)
|
||||
/* Panel */
|
||||
lcdc_info.clock_source = LCDC_CLK_PERIPHERAL;
|
||||
lcdc_info.ch[0].clock_divider = 2;
|
||||
lcdc_info.ch[0].lcd_cfg = ecovec_lcd_modes;
|
||||
lcdc_info.ch[0].num_cfg = ARRAY_SIZE(ecovec_lcd_modes);
|
||||
lcdc_info.ch[0].lcd_modes = ecovec_lcd_modes;
|
||||
lcdc_info.ch[0].num_modes = ARRAY_SIZE(ecovec_lcd_modes);
|
||||
|
||||
gpio_set_value(GPIO_PTR1, 1);
|
||||
|
||||
|
@@ -251,8 +251,7 @@ static void display_on(void *sohandle,
|
||||
write_memory_start(sohandle, so);
|
||||
}
|
||||
|
||||
int kfr2r09_lcd_setup(void *board_data, void *sohandle,
|
||||
struct sh_mobile_lcdc_sys_bus_ops *so)
|
||||
int kfr2r09_lcd_setup(void *sohandle, struct sh_mobile_lcdc_sys_bus_ops *so)
|
||||
{
|
||||
/* power on */
|
||||
gpio_set_value(GPIO_PTF4, 0); /* PROTECT/ -> L */
|
||||
@@ -273,8 +272,7 @@ int kfr2r09_lcd_setup(void *board_data, void *sohandle,
|
||||
return 0;
|
||||
}
|
||||
|
||||
void kfr2r09_lcd_start(void *board_data, void *sohandle,
|
||||
struct sh_mobile_lcdc_sys_bus_ops *so)
|
||||
void kfr2r09_lcd_start(void *sohandle, struct sh_mobile_lcdc_sys_bus_ops *so)
|
||||
{
|
||||
write_memory_start(sohandle, so);
|
||||
}
|
||||
@@ -327,12 +325,12 @@ static int kfr2r09_lcd_backlight(int on)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void kfr2r09_lcd_on(void *board_data, struct fb_info *info)
|
||||
void kfr2r09_lcd_on(void)
|
||||
{
|
||||
kfr2r09_lcd_backlight(1);
|
||||
}
|
||||
|
||||
void kfr2r09_lcd_off(void *board_data)
|
||||
void kfr2r09_lcd_off(void)
|
||||
{
|
||||
kfr2r09_lcd_backlight(0);
|
||||
}
|
||||
|
@@ -148,13 +148,11 @@ static struct sh_mobile_lcdc_info kfr2r09_sh_lcdc_info = {
|
||||
.interface_type = SYS18,
|
||||
.clock_divider = 6,
|
||||
.flags = LCDC_FLAGS_DWPOL,
|
||||
.lcd_cfg = kfr2r09_lcdc_modes,
|
||||
.num_cfg = ARRAY_SIZE(kfr2r09_lcdc_modes),
|
||||
.lcd_size_cfg = {
|
||||
.lcd_modes = kfr2r09_lcdc_modes,
|
||||
.num_modes = ARRAY_SIZE(kfr2r09_lcdc_modes),
|
||||
.panel_cfg = {
|
||||
.width = 35,
|
||||
.height = 58,
|
||||
},
|
||||
.board_cfg = {
|
||||
.setup_sys = kfr2r09_lcd_setup,
|
||||
.start_transfer = kfr2r09_lcd_start,
|
||||
.display_on = kfr2r09_lcd_on,
|
||||
|
@@ -113,8 +113,7 @@ static const unsigned short magic3_data[] = {
|
||||
0x0010, 0x16B0, 0x0011, 0x0111, 0x0007, 0x0061,
|
||||
};
|
||||
|
||||
int migor_lcd_qvga_setup(void *board_data, void *sohandle,
|
||||
struct sh_mobile_lcdc_sys_bus_ops *so)
|
||||
int migor_lcd_qvga_setup(void *sohandle, struct sh_mobile_lcdc_sys_bus_ops *so)
|
||||
{
|
||||
unsigned long xres = 320;
|
||||
unsigned long yres = 240;
|
||||
|
@@ -246,9 +246,9 @@ static struct sh_mobile_lcdc_info sh_mobile_lcdc_info = {
|
||||
.fourcc = V4L2_PIX_FMT_RGB565,
|
||||
.interface_type = RGB16,
|
||||
.clock_divider = 2,
|
||||
.lcd_cfg = migor_lcd_modes,
|
||||
.num_cfg = ARRAY_SIZE(migor_lcd_modes),
|
||||
.lcd_size_cfg = { /* 7.0 inch */
|
||||
.lcd_modes = migor_lcd_modes,
|
||||
.num_modes = ARRAY_SIZE(migor_lcd_modes),
|
||||
.panel_cfg = { /* 7.0 inch */
|
||||
.width = 152,
|
||||
.height = 91,
|
||||
},
|
||||
@@ -260,13 +260,11 @@ static struct sh_mobile_lcdc_info sh_mobile_lcdc_info = {
|
||||
.fourcc = V4L2_PIX_FMT_RGB565,
|
||||
.interface_type = SYS16A,
|
||||
.clock_divider = 10,
|
||||
.lcd_cfg = migor_lcd_modes,
|
||||
.num_cfg = ARRAY_SIZE(migor_lcd_modes),
|
||||
.lcd_size_cfg = { /* 2.4 inch */
|
||||
.width = 49,
|
||||
.lcd_modes = migor_lcd_modes,
|
||||
.num_modes = ARRAY_SIZE(migor_lcd_modes),
|
||||
.panel_cfg = {
|
||||
.width = 49, /* 2.4 inch */
|
||||
.height = 37,
|
||||
},
|
||||
.board_cfg = {
|
||||
.setup_sys = migor_lcd_qvga_setup,
|
||||
},
|
||||
.sys_bus_cfg = {
|
||||
|
@@ -182,12 +182,10 @@ static struct sh_mobile_lcdc_info lcdc_info = {
|
||||
.chan = LCDC_CHAN_MAINLCD,
|
||||
.fourcc = V4L2_PIX_FMT_RGB565,
|
||||
.clock_divider = 1,
|
||||
.lcd_size_cfg = { /* 7.0 inch */
|
||||
.panel_cfg = { /* 7.0 inch */
|
||||
.width = 152,
|
||||
.height = 91,
|
||||
},
|
||||
.board_cfg = {
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
@@ -890,12 +888,12 @@ static int __init devices_setup(void)
|
||||
|
||||
if (sw & SW41_B) {
|
||||
/* 720p */
|
||||
lcdc_info.ch[0].lcd_cfg = lcdc_720p_modes;
|
||||
lcdc_info.ch[0].num_cfg = ARRAY_SIZE(lcdc_720p_modes);
|
||||
lcdc_info.ch[0].lcd_modes = lcdc_720p_modes;
|
||||
lcdc_info.ch[0].num_modes = ARRAY_SIZE(lcdc_720p_modes);
|
||||
} else {
|
||||
/* VGA */
|
||||
lcdc_info.ch[0].lcd_cfg = lcdc_vga_modes;
|
||||
lcdc_info.ch[0].num_cfg = ARRAY_SIZE(lcdc_vga_modes);
|
||||
lcdc_info.ch[0].lcd_modes = lcdc_vga_modes;
|
||||
lcdc_info.ch[0].num_modes = ARRAY_SIZE(lcdc_vga_modes);
|
||||
}
|
||||
|
||||
if (sw & SW41_A) {
|
||||
|
在新工单中引用
屏蔽一个用户