summaryrefslogtreecommitdiffstats
path: root/drivers/video
Commit message (Collapse)AuthorAgeFilesLines
* ARM i.MX: get rid of imx-regs.hSascha Hauer2012-10-172-2/+1
| | | | | | | | | - remove now unused __REG definitions - include individual SoC register files instead of imx-regs.h - move IMX_GPIO_NR to generic.h - finally remove imx-regs.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX35: Cleanup remaining unprefixed registersSascha Hauer2012-10-171-2/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video i.MX: Use regular clk_[en|dis]able functionsSascha Hauer2012-10-101-39/+5
| | | | | | | | This controller has no enable bit. It is always on once the pixel clock is provided. This patch switches the driver to use regular clk functions instead of SoC specific register hacking. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* gui: move gui file to include/gui and lib/guiJean-Christophe PLAGNIOL-VILLARD2012-10-041-1/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/imx-clk'Sascha Hauer2012-10-042-4/+16
|\
| * ARM i.MX: Remove old clock supportSascha Hauer2012-10-041-1/+0
| | | | | | | | | | | | | | The old clock support is now unused. Remove it. The former i.MX clko command is superseeded by generic clock manipulation commands. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * video i.MX IPU: Switch to clock supportSascha Hauer2012-10-041-2/+8
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * video i.MX: Switch to clock supportSascha Hauer2012-10-041-1/+8
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | switch all platform_bus device/driver registering to ↵Jean-Christophe PLAGNIOL-VILLARD2012-10-046-6/+6
| | | | | | | | | | | | | | | | platform_driver/device_register now register_driver and register_device are for bus only usage. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | fb: move add param to bus probeJean-Christophe PLAGNIOL-VILLARD2012-10-041-11/+12
|/ | | | | | so the param add added only of the device successed to register. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Merge branch 'for-next/sandbox'Sascha Hauer2012-10-033-0/+106
|\ | | | | | | | | Conflicts: arch/sandbox/mach-sandbox/include/mach/linux.h
| * sandbox: add sdl video supportJean-Christophe PLAGNIOL-VILLARD2012-09-253-0/+106
| | | | | | | | | | | | | | | | | | | | | | | | This will allow speed up the dev on framebuffer. By default the resolution is VGA but this can be changed via cmdline. We use a pthread to Flip the screen every 100ms as we can not detect when barebox update it as barebox simpliy write in a buffer. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/remove-fsf-address'Sascha Hauer2012-10-033-13/+0
|\ \ | | | | | | | | | | | | | | | Conflicts: drivers/net/miidev.c include/miidev.h
| * | Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-173-13/+0
| |/ | | | | | | | | | | | | The FSF address has changed in the past. Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / fb: add it's own bus for fb devicesJean-Christophe PLAGNIOL-VILLARD2012-09-231-4/+27
|/ | | | | | | This is need for oftree device probing Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* resource: store 'end' instead of 'size' in struct resourceSascha Hauer2012-07-011-2/+2
| | | | | | | | | | Storing the size instead of the resource end in struct resource was a mistake. 'size' ranges from 0 to UINT[32|64]_MAX + 1 which obviously leads to problems. 'end' on the other hand will never exceed UINT[32|64]_MAX. Also this way we can express a iomem region covering the whole address space. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* 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>