summaryrefslogtreecommitdiffstats
path: root/drivers/video
Commit message (Collapse)AuthorAgeFilesLines
* video/s3c24xx.c: fix doxygen comment for s3cfb_activate_var()Antony Pavlov2012-05-301-1/+0
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Fixup DRIVER_VIDEO_S3C24XX usage.Uwe Hermann2012-04-101-1/+1
| | | | | | | | | | | | From c67445d601c9332fabb71df8e41367fc104e1ac1 Mon Sep 17 00:00:00 2001 From: Uwe Hermann <uwe@hermann-uwe.de> Date: Fri, 6 Apr 2012 20:07:12 +0200 DRIVER_VIDEO_S3C was renamed to DRIVER_VIDEO_S3C24XX recently. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Juergen Beisert <jbe@pengutronix.de>
* drivers/video: remove pxafb enable on loadRobert Jarzmik2012-02-171-3/+0
| | | | | | | | | | | | | | | As pxafb can rely on a PWM to control backlight, and because driver dependencies are hard to deal with, remove automatic enable of PXAFB on probe. The user should in its environment do a : - fb0.enable=1 This way, the PWM has been probed and is ready to work, and the pxafb backlight control works. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx-ipu-fb: Add overlay supportTeresa Gámez2012-01-232-14/+147
| | | | | | | | | | | | | | Adding overlay support for i.MX3 sdc. Foreground channel only works when background is also enabled. The foreground video mode is always the same as the background. Also added alpha command to set the alpha value of the foreground. Tested on a phyCORE-i.MX35. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx-ipu-fb: Fix offset for IPU Clock.Teresa Gámez2012-01-231-1/+1
| | | | | | | | The offset for the IPU Clock in the CGR1 register is 18 not 22. See MCIMX35RM table 14-17. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx-ipu-fb: Add support for multiple video modesTeresa Gámez2012-01-231-1/+9
| | | | | | | Make support of multiple video modes possible for i.MX3 boards. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video imx: specify num_modes in platform_dataSascha Hauer2012-01-051-0/+5
| | | | | | | | Without num_modes the imx fb driver won't work. Specify this in the boards and also bail out in the driver when num_modes is unspecified. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* S3C24xx/video: fix forgotten include file name changeJuergen Beisert2012-01-041-1/+0
| | | | | | | | While we are here: do not follow the change of the file name, because there is no GPIO dependency in this driver. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MACH SAMSUNG/S3C: Separate S3C24XX clock managementJuergen Beisert2012-01-021-2/+2
| | | | | | | | | | There are major differences in the clock tree of the S3C24xx family and the more recent CPUs of the S3C family. Keep the S3C24XX clock routines separate to avoid an ifdef hell. But also use generic function names to be able to share drivers among the S3C family. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MACH SAMSUNG/S3C: Reflect the CPU name the LCD driver is forJuergen Beisert2012-01-023-4/+4
| | | | | | | | | This LCD driver is for the LCD controller in the S3C2410/S3C2440 CPUs only. Change its name to reflect its usage and free the way to add LCD controller drivers for more recent Samsung CPUs. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MACH SAMSUNG/S3C: Make it more generic for future updatesJuergen Beisert2012-01-021-1/+1
| | | | | | | Start with renaming files to share them in the S3C CPU family, Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'master' into nextSascha Hauer2011-12-153-0/+570
|\ | | | | | | | | | | | | | | | | Conflicts: arch/arm/boards/usb-a926x/init.c arch/arm/mach-pxa/include/mach/clock.h arch/arm/mach-pxa/speed-pxa27x.c Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * drivers/video: add PXA framebuffer supportRobert Jarzmik2011-12-123-0/+570
| | | | | | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | imxfb: Add support for multiple video modesChristian Hemp2011-12-131-1/+16
|/ | | | | | | | Add all available video modes to the framebuffer. devinfo fb0 shows the available modes. We can select a mode now. Signed-off-by: Christian Hemp <c.hemp@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce io.hSascha Hauer2011-09-224-4/+4
| | | | | | | To allow for some generic io accessors introduce io.h and use this instead of asm/io.h throughout the tree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: switch to "struct resource"Jean-Christophe PLAGNIOL-VILLARD2011-07-303-14/+20
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* video i.MX ipu: convert to struct resourceSascha Hauer2011-07-191-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video i.MX: convert to struct resourceSascha Hauer2011-07-191-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add support for Samsung S3C24x0 framebuffer.Alexey Galakhov2011-05-193-0/+443
| | | | | | | Heavily based on original Juergen Beisert's code. Signed-off-by: Alexey Galakhov <agalakhov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: For multiple video modes print the available modes in devinfoSascha Hauer2011-02-071-0/+38
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'next'Sascha Hauer2011-02-032-31/+36
|\
| * fb i.MX23/28: Add the reset control of LCDGregory CLEMENT2011-01-211-0/+11
| | | | | | | | | | | | | | | | | | | | Video controller of STM allow to control the reset bit of an external LCD controller. When reset_lcd is set, CTRL1_RESET bit is used to enable and disable LCD. Handle USE_LCD_RESET as a flag in imx_fb_platformdata. Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM STM/i.MX: Add possibility to choose the bit per pixel for STM video driverGregory CLEMENT2011-01-211-1/+4
| | | | | | | | | | | | | | | | When describing an new video interface, it is now possible to select the bit per pixel. If nothing is chosen 16bpp is selected by default. Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: rename STM arch to mxsSascha Hauer2011-01-201-1/+1
| | | | | | | | | | | | | | | | We never supported the sigmatel stm chips and probably never will. So do the first step and rename the architecture to mxs just like in the kernel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * fb i.MX23/28: rename imx_fb_videomode to imx_fb_platformdataSascha Hauer2011-01-201-6/+6
| | | | | | | | | | | | | | It's not a video mode, it contains video modes, so rename the struct to what it actually is. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * fb i.MX23/28: add platform data hook to enable backlightSascha Hauer2011-01-201-0/+6
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * video stm/mx2x: allow to pass in fb memory from platform dataSascha Hauer2011-01-191-2/+9
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * video stm/mx2x: simplify memory allocationSascha Hauer2011-01-191-24/+2
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | fb: When setting a mode, also update xres, yres and fb sizeSascha Hauer2011-01-191-3/+9
|/ | | | | | | Also, set size to 0 when setting up the framebuffer failed so that the user cannot write to uninitialized framebuffer memory. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: update cdev map_baseSascha Hauer2011-01-141-0/+2
| | | | | | | Calling fb_activate_var potentially changes the framebuffer address, so we have to update the fb0 cdev afterwards. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx-ipu-fb: fix printf compiler warningsSascha Hauer2011-01-071-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM STM/i.MX: Add video driver for i.MX23/i.MX28Juergen Beisert2010-12-213-0/+548
| | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add the feature to change the video mode at runtimeJuergen Beisert2010-12-211-0/+35
| | | | | | | | This patch add the possibility to change the video mode at barebox's runtime if the graphics driver in use supports it. Signed-off-by: <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Fix default framebuffer 'enable' setJuergen Beisert2010-12-211-5/+4
| | | | | | | | | | | | To setup the default 'enable' setting the "dev_set_param(dev, "enable", "0");" does not work as expected. After the call the parameter is still "<NULL>". This is due to any change of the setting is rejected, if the same setting is already active. This patch also let the default setting be successfull, but only calls the graphics backend if a change happens. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: set id for framebuffer device correctlySascha Hauer2010-11-121-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: i.MX IPU: fold mx3fb_set_par into its only userSascha Hauer2010-10-221-22/+5
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: i.MX IPU: move fb_info initialization to a single functionSascha Hauer2010-10-221-28/+35
| | | | | | | | | | The bitfield information was only added to fb_info when the framebuffer actually was enabled. That made it impossible to call 'bmp' before enabling the display. So, move all fb_info init to a single place and make it a function to better allow for multiple displays later. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: i.MX IPU: remove unnecessary printfSascha Hauer2010-10-221-2/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx-ipu-fb: set default bits per pixel at 16 for mx3Jean-Christophe PLAGNIOL-VILLARD2010-09-271-0/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx-ipu-fb: do not enable framebuffer on startupEric Bénard2010-06-301-2/+0
| | | | | | | | The board code or startup script should enable it when it actually wants to. Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx-ipu-fb: Add board specific hook to enable displayEric Bénard2010-06-301-0/+8
| | | | | Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: add a usage counter to prevent double enable/disableSascha Hauer2010-06-241-0/+5
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imxfb: do not enable framebuffer on startupSascha Hauer2010-06-241-2/+0
| | | | | | | The board code or startup script should enable it when it actually wants to. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imxfb: Add board specific hook to enable displaySascha Hauer2010-06-241-0/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rework device parametersSascha Hauer2010-06-172-17/+21
| | | | | | | | Change device parameters so that the memory management is in generic code. This also removes the need of storing statically initialized parameters as they are stored in a struct list_head for each device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX25 : add Framebuffer supportEric Benard2010-05-172-3/+20
| | | | | Signed-off-by: Eric Benard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX21: support framebufferIvo Clarysse2010-04-021-0/+9
| | | | | | | | This patch allows using the i.MX (LCDC) framebuffer driver on boards using an i.MX21 SoC. Signed-off-by: Ivo Clarysse <ivo.clarysse@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* drivers/video/Makefile: cleanup proper indentionMarc Kleine-Budde2010-02-161-2/+3
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* Fix compile time errors when DEBUG is definedJuergen Beisert2010-02-121-2/+2
| | | | | | | | If the DEBUG macro is defined the compiler complains about a missing 'ipu_base' variable. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: Add a i.MX IPU framebuffer driverJuergen nogit Beisert2009-12-093-1/+927
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>