From e5fd91f1ef340da553f7a79da9540c3db711c937 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Tue, 8 Sep 2015 01:01:14 -0300 Subject: Linux-libre 4.2-gnu --- drivers/video/backlight/Kconfig | 8 +- drivers/video/backlight/da9052_bl.c | 2 +- drivers/video/backlight/gpio_backlight.c | 2 + drivers/video/backlight/lp855x_bl.c | 18 +- drivers/video/backlight/pwm_bl.c | 6 +- drivers/video/console/fbcon.c | 6 +- drivers/video/console/fbcon.h | 1 + drivers/video/console/newport_con.c | 6 +- drivers/video/fbdev/Kconfig | 10 +- drivers/video/fbdev/Makefile | 1 - drivers/video/fbdev/amifb.c | 8 +- drivers/video/fbdev/atafb.c | 3 +- drivers/video/fbdev/atmel_lcdfb.c | 3 +- drivers/video/fbdev/aty/aty128fb.c | 36 +- drivers/video/fbdev/aty/radeon_base.c | 29 +- drivers/video/fbdev/aty/radeonfb.h | 2 +- drivers/video/fbdev/core/Makefile | 2 +- drivers/video/fbdev/core/fb_defio.c | 2 - drivers/video/fbdev/core/fbmon.c | 4 +- drivers/video/fbdev/gbefb.c | 25 +- drivers/video/fbdev/geode/gxfb_core.c | 3 +- drivers/video/fbdev/hpfb.c | 4 +- drivers/video/fbdev/i810/i810.h | 3 +- drivers/video/fbdev/i810/i810_main.c | 11 +- drivers/video/fbdev/i810/i810_main.h | 26 - drivers/video/fbdev/imxfb.c | 2 +- drivers/video/fbdev/intelfb/intelfb.h | 4 +- drivers/video/fbdev/intelfb/intelfbdrv.c | 38 +- drivers/video/fbdev/matrox/matroxfb_base.c | 42 +- drivers/video/fbdev/matrox/matroxfb_base.h | 27 +- drivers/video/fbdev/msm/Makefile | 19 - drivers/video/fbdev/msm/mddi.c | 821 --------------------- drivers/video/fbdev/msm/mddi_client_dummy.c | 85 --- drivers/video/fbdev/msm/mddi_client_nt35399.c | 252 ------- drivers/video/fbdev/msm/mddi_client_toshiba.c | 280 ------- drivers/video/fbdev/msm/mddi_hw.h | 305 -------- drivers/video/fbdev/msm/mdp.c | 520 ------------- drivers/video/fbdev/msm/mdp_csc_table.h | 582 --------------- drivers/video/fbdev/msm/mdp_hw.h | 627 ---------------- drivers/video/fbdev/msm/mdp_ppp.c | 731 ------------------ drivers/video/fbdev/msm/mdp_scale_tables.c | 766 ------------------- drivers/video/fbdev/msm/mdp_scale_tables.h | 38 - drivers/video/fbdev/msm/msm_fb.c | 659 ----------------- drivers/video/fbdev/mxsfb.c | 2 +- drivers/video/fbdev/neofb.c | 26 +- drivers/video/fbdev/nvidia/nv_type.h | 7 +- drivers/video/fbdev/nvidia/nvidia.c | 37 +- drivers/video/fbdev/omap/Kconfig | 2 +- .../fbdev/omap2/displays-new/encoder-opa362.c | 12 +- drivers/video/fbdev/omap2/displays-new/panel-dpi.c | 13 +- .../omap2/displays-new/panel-lgphilips-lb035q02.c | 7 +- .../omap2/displays-new/panel-sharp-ls037v7dw01.c | 9 +- drivers/video/fbdev/omap2/dss/core.c | 80 +- drivers/video/fbdev/omap2/dss/dispc.c | 156 +++- drivers/video/fbdev/omap2/dss/display-sysfs.c | 2 +- drivers/video/fbdev/omap2/dss/dpi.c | 36 +- drivers/video/fbdev/omap2/dss/dsi.c | 27 +- drivers/video/fbdev/omap2/dss/dss-of.c | 4 +- drivers/video/fbdev/omap2/dss/dss.c | 232 ++++-- drivers/video/fbdev/omap2/dss/dss.h | 32 +- drivers/video/fbdev/omap2/dss/hdmi4.c | 30 +- drivers/video/fbdev/omap2/dss/hdmi4_core.c | 12 +- drivers/video/fbdev/omap2/dss/hdmi5.c | 28 +- drivers/video/fbdev/omap2/dss/hdmi5_core.c | 5 +- drivers/video/fbdev/omap2/dss/hdmi_wp.c | 16 + drivers/video/fbdev/omap2/dss/rfbi.c | 32 +- drivers/video/fbdev/omap2/dss/sdi.c | 35 +- drivers/video/fbdev/omap2/dss/venc.c | 31 +- drivers/video/fbdev/pm2fb.c | 31 +- drivers/video/fbdev/pm3fb.c | 30 +- drivers/video/fbdev/pxa3xx-gcu.c | 4 +- drivers/video/fbdev/riva/fbdev.c | 39 +- drivers/video/fbdev/riva/rivafb.h | 4 +- drivers/video/fbdev/savage/savagefb.h | 4 +- drivers/video/fbdev/savage/savagefb_driver.c | 17 +- drivers/video/fbdev/sis/sis.h | 2 +- drivers/video/fbdev/sis/sis_main.c | 27 +- drivers/video/fbdev/ssd1307fb.c | 289 ++++++-- drivers/video/fbdev/stifb.c | 40 +- drivers/video/fbdev/tdfxfb.c | 41 +- drivers/video/fbdev/uvesafb.c | 2 +- drivers/video/fbdev/vesafb.c | 80 +- drivers/video/fbdev/vt8623fb.c | 4 +- drivers/video/of_videomode.c | 4 +- 84 files changed, 977 insertions(+), 6533 deletions(-) delete mode 100644 drivers/video/fbdev/msm/Makefile delete mode 100644 drivers/video/fbdev/msm/mddi.c delete mode 100644 drivers/video/fbdev/msm/mddi_client_dummy.c delete mode 100644 drivers/video/fbdev/msm/mddi_client_nt35399.c delete mode 100644 drivers/video/fbdev/msm/mddi_client_toshiba.c delete mode 100644 drivers/video/fbdev/msm/mddi_hw.h delete mode 100644 drivers/video/fbdev/msm/mdp.c delete mode 100644 drivers/video/fbdev/msm/mdp_csc_table.h delete mode 100644 drivers/video/fbdev/msm/mdp_hw.h delete mode 100644 drivers/video/fbdev/msm/mdp_ppp.c delete mode 100644 drivers/video/fbdev/msm/mdp_scale_tables.c delete mode 100644 drivers/video/fbdev/msm/mdp_scale_tables.h delete mode 100644 drivers/video/fbdev/msm/msm_fb.c (limited to 'drivers/video') diff --git a/drivers/video/backlight/Kconfig b/drivers/video/backlight/Kconfig index 2d9923a60..0505b796d 100644 --- a/drivers/video/backlight/Kconfig +++ b/drivers/video/backlight/Kconfig @@ -36,14 +36,16 @@ config LCD_CORGI config LCD_L4F00242T03 tristate "Epson L4F00242T03 LCD" - depends on SPI_MASTER && GPIOLIB + depends on SPI_MASTER + depends on GPIOLIB || COMPILE_TEST help SPI driver for Epson L4F00242T03. This provides basic support for init and powering the LCD up/down through a sysfs interface. config LCD_LMS283GF05 tristate "Samsung LMS283GF05 LCD" - depends on SPI_MASTER && GPIOLIB + depends on SPI_MASTER + depends on GPIOLIB || COMPILE_TEST help SPI driver for Samsung LMS283GF05. This provides basic support for powering the LCD up/down through a sysfs interface. @@ -434,7 +436,7 @@ config BACKLIGHT_AS3711 config BACKLIGHT_GPIO tristate "Generic GPIO based Backlight Driver" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help If you have a LCD backlight adjustable by GPIO, say Y to enable this driver. diff --git a/drivers/video/backlight/da9052_bl.c b/drivers/video/backlight/da9052_bl.c index b1943e773..fd2be417a 100644 --- a/drivers/video/backlight/da9052_bl.c +++ b/drivers/video/backlight/da9052_bl.c @@ -152,7 +152,7 @@ static int da9052_backlight_remove(struct platform_device *pdev) return 0; } -static struct platform_device_id da9052_wled_ids[] = { +static const struct platform_device_id da9052_wled_ids[] = { { .name = "da9052-wled1", .driver_data = DA9052_TYPE_WLED1, diff --git a/drivers/video/backlight/gpio_backlight.c b/drivers/video/backlight/gpio_backlight.c index 439feb238..5fbbc2ebd 100644 --- a/drivers/video/backlight/gpio_backlight.c +++ b/drivers/video/backlight/gpio_backlight.c @@ -146,6 +146,8 @@ static struct of_device_id gpio_backlight_of_match[] = { { .compatible = "gpio-backlight" }, { /* sentinel */ } }; + +MODULE_DEVICE_TABLE(of, gpio_backlight_of_match); #endif static struct platform_driver gpio_backlight_driver = { diff --git a/drivers/video/backlight/lp855x_bl.c b/drivers/video/backlight/lp855x_bl.c index a26d3bb25..88116b493 100644 --- a/drivers/video/backlight/lp855x_bl.c +++ b/drivers/video/backlight/lp855x_bl.c @@ -257,21 +257,15 @@ static void lp855x_pwm_ctrl(struct lp855x *lp, int br, int max_br) static int lp855x_bl_update_status(struct backlight_device *bl) { struct lp855x *lp = bl_get_data(bl); + int brightness = bl->props.brightness; if (bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) - bl->props.brightness = 0; + brightness = 0; - if (lp->mode == PWM_BASED) { - int br = bl->props.brightness; - int max_br = bl->props.max_brightness; - - lp855x_pwm_ctrl(lp, br, max_br); - - } else if (lp->mode == REGISTER_BASED) { - u8 val = bl->props.brightness; - - lp855x_write_byte(lp, lp->cfg->reg_brightness, val); - } + if (lp->mode == PWM_BASED) + lp855x_pwm_ctrl(lp, brightness, bl->props.max_brightness); + else if (lp->mode == REGISTER_BASED) + lp855x_write_byte(lp, lp->cfg->reg_brightness, (u8)brightness); return 0; } diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c index 6897f1c1b..eff379b23 100644 --- a/drivers/video/backlight/pwm_bl.c +++ b/drivers/video/backlight/pwm_bl.c @@ -241,7 +241,8 @@ static int pwm_backlight_probe(struct platform_device *pdev) pb->dev = &pdev->dev; pb->enabled = false; - pb->enable_gpio = devm_gpiod_get_optional(&pdev->dev, "enable"); + pb->enable_gpio = devm_gpiod_get_optional(&pdev->dev, "enable", + GPIOD_OUT_HIGH); if (IS_ERR(pb->enable_gpio)) { ret = PTR_ERR(pb->enable_gpio); goto err_alloc; @@ -263,9 +264,6 @@ static int pwm_backlight_probe(struct platform_device *pdev) pb->enable_gpio = gpio_to_desc(data->enable_gpio); } - if (pb->enable_gpio) - gpiod_direction_output(pb->enable_gpio, 1); - pb->power_supply = devm_regulator_get(&pdev->dev, "power"); if (IS_ERR(pb->power_supply)) { ret = PTR_ERR(pb->power_supply); diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index b97210671..1aaf89300 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c @@ -402,7 +402,7 @@ static void cursor_timer_handler(unsigned long dev_addr) struct fbcon_ops *ops = info->fbcon_par; queue_work(system_power_efficient_wq, &info->queue); - mod_timer(&ops->cursor_timer, jiffies + HZ/5); + mod_timer(&ops->cursor_timer, jiffies + ops->cur_blink_jiffies); } static void fbcon_add_cursor_timer(struct fb_info *info) @@ -417,7 +417,7 @@ static void fbcon_add_cursor_timer(struct fb_info *info) init_timer(&ops->cursor_timer); ops->cursor_timer.function = cursor_timer_handler; - ops->cursor_timer.expires = jiffies + HZ / 5; + ops->cursor_timer.expires = jiffies + ops->cur_blink_jiffies; ops->cursor_timer.data = (unsigned long ) info; add_timer(&ops->cursor_timer); ops->flags |= FBCON_FLAGS_CURSOR_TIMER; @@ -1306,6 +1306,8 @@ static void fbcon_cursor(struct vc_data *vc, int mode) int y; int c = scr_readw((u16 *) vc->vc_pos); + ops->cur_blink_jiffies = msecs_to_jiffies(vc->vc_cur_blink_ms); + if (fbcon_is_inactive(vc, info) || vc->vc_deccm != 1) return; diff --git a/drivers/video/console/fbcon.h b/drivers/video/console/fbcon.h index 6bd2e0c7f..7aaa4eabb 100644 --- a/drivers/video/console/fbcon.h +++ b/drivers/video/console/fbcon.h @@ -70,6 +70,7 @@ struct fbcon_ops { struct fb_cursor cursor_state; struct display *p; int currcon; /* Current VC. */ + int cur_blink_jiffies; int cursor_flash; int cursor_reset; int blank_state; diff --git a/drivers/video/console/newport_con.c b/drivers/video/console/newport_con.c index a6ab92998..bb4e96255 100644 --- a/drivers/video/console/newport_con.c +++ b/drivers/video/console/newport_con.c @@ -687,7 +687,7 @@ static int newport_scroll(struct vc_data *vc, int t, int b, int dir, static void newport_bmove(struct vc_data *vc, int sy, int sx, int dy, int dx, int h, int w) { - short xs, ys, xe, ye, xoffs, yoffs, tmp; + short xs, ys, xe, ye, xoffs, yoffs; xs = sx << 3; xe = ((sx + w) << 3) - 1; @@ -701,9 +701,7 @@ static void newport_bmove(struct vc_data *vc, int sy, int sx, int dy, yoffs = (dy - sy) << 4; if (xoffs > 0) { /* move to the right, exchange starting points */ - tmp = xe; - xe = xs; - xs = tmp; + swap(xe, xs); } newport_wait(npregs); npregs->set.drawmode0 = (NPORT_DMODE0_S2S | NPORT_DMODE0_BLOCK | diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig index 109462303..f88856156 100644 --- a/drivers/video/fbdev/Kconfig +++ b/drivers/video/fbdev/Kconfig @@ -298,7 +298,7 @@ config FB_ARMCLCD # Helper logic selected only by the ARM Versatile platform family. config PLAT_VERSATILE_CLCD - def_bool ARCH_VERSATILE || ARCH_REALVIEW || ARCH_VEXPRESS + def_bool ARCH_VERSATILE || ARCH_REALVIEW || ARCH_VEXPRESS || ARCH_INTEGRATOR depends on ARM depends on FB_ARMCLCD && FB=y @@ -2326,13 +2326,6 @@ config FB_PRE_INIT_FB Select this option if display contents should be inherited as set by the bootloader. -config FB_MSM - tristate "MSM Framebuffer support" - depends on FB && ARCH_MSM - select FB_CFB_FILLRECT - select FB_CFB_COPYAREA - select FB_CFB_IMAGEBLIT - config FB_MX3 tristate "MX3 Framebuffer support" depends on FB && MX3_IPU @@ -2478,6 +2471,7 @@ config FB_SSD1307 select FB_SYS_IMAGEBLIT select FB_DEFERRED_IO select PWM + select FB_BACKLIGHT help This driver implements support for the Solomon SSD1307 OLED controller over I2C. diff --git a/drivers/video/fbdev/Makefile b/drivers/video/fbdev/Makefile index 1979afffc..cecea5063 100644 --- a/drivers/video/fbdev/Makefile +++ b/drivers/video/fbdev/Makefile @@ -126,7 +126,6 @@ obj-y += omap2/ obj-$(CONFIG_XEN_FBDEV_FRONTEND) += xen-fbfront.o obj-$(CONFIG_FB_CARMINE) += carminefb.o obj-$(CONFIG_FB_MB862XX) += mb862xx/ -obj-$(CONFIG_FB_MSM) += msm/ obj-$(CONFIG_FB_NUC900) += nuc900fb.o obj-$(CONFIG_FB_JZ4740) += jz4740_fb.o obj-$(CONFIG_FB_PUV3_UNIGFX) += fb-puv3.o diff --git a/drivers/video/fbdev/amifb.c b/drivers/video/fbdev/amifb.c index 35f7900a0..1d702e13a 100644 --- a/drivers/video/fbdev/amifb.c +++ b/drivers/video/fbdev/amifb.c @@ -2052,7 +2052,7 @@ static void ami_set_sprite(const struct amifb_par *par) { copins *copl, *cops; u_short hs, vs, ve; - u_long pl, ps, pt; + u_long pl, ps; short mx, my; cops = copdisplay.list[currentcop][0]; @@ -2078,7 +2078,7 @@ static void ami_set_sprite(const struct amifb_par *par) if (mod2(vs)) { lofsprite[1 << par->crsr.fmode] = spr2hw_ctl(vs, hs, ve); shfsprite[1 << par->crsr.fmode] = spr2hw_ctl(vs + 1, hs, ve + 1); - pt = pl; pl = ps; ps = pt; + swap(pl, ps); } else { lofsprite[1 << par->crsr.fmode] = spr2hw_ctl(vs, hs, ve + 1); shfsprite[1 << par->crsr.fmode] = spr2hw_ctl(vs + 1, hs, ve); @@ -3705,8 +3705,8 @@ default_chipset: * access the videomem with writethrough cache */ info->fix.smem_start = (u_long)ZTWO_PADDR(videomemory); - videomemory = (u_long)ioremap_writethrough(info->fix.smem_start, - info->fix.smem_len); + videomemory = (u_long)ioremap_wt(info->fix.smem_start, + info->fix.smem_len); if (!videomemory) { dev_warn(&pdev->dev, "Unable to map videomem cached writethrough\n"); diff --git a/drivers/video/fbdev/atafb.c b/drivers/video/fbdev/atafb.c index cb9ee2556..d6ce613e1 100644 --- a/drivers/video/fbdev/atafb.c +++ b/drivers/video/fbdev/atafb.c @@ -3185,8 +3185,7 @@ int __init atafb_init(void) /* Map the video memory (physical address given) to somewhere * in the kernel address space. */ - external_screen_base = ioremap_writethrough(external_addr, - external_len); + external_screen_base = ioremap_wt(external_addr, external_len); if (external_vgaiobase) external_vgaiobase = (unsigned long)ioremap(external_vgaiobase, 0x10000); diff --git a/drivers/video/fbdev/atmel_lcdfb.c b/drivers/video/fbdev/atmel_lcdfb.c index 94a8d04e6..abadc490f 100644 --- a/drivers/video/fbdev/atmel_lcdfb.c +++ b/drivers/video/fbdev/atmel_lcdfb.c @@ -1266,7 +1266,8 @@ static int __init atmel_lcdfb_probe(struct platform_device *pdev) goto stop_clk; } - info->screen_base = ioremap(info->fix.smem_start, info->fix.smem_len); + info->screen_base = ioremap_wc(info->fix.smem_start, + info->fix.smem_len); if (!info->screen_base) { ret = -ENOMEM; goto release_intmem; diff --git a/drivers/video/fbdev/aty/aty128fb.c b/drivers/video/fbdev/aty/aty128fb.c index 0156954bf..c42ce2fdf 100644 --- a/drivers/video/fbdev/aty/aty128fb.c +++ b/drivers/video/fbdev/aty/aty128fb.c @@ -80,10 +80,6 @@ #include #endif /* CONFIG_BOOTX_TEXT */ -#ifdef CONFIG_MTRR -#include -#endif - #include