summaryrefslogtreecommitdiffstats
path: root/drivers/video
Commit message (Collapse)AuthorAgeFilesLines
* video: imx-ipu-v3: remove unneeded 'dmfc' checkSascha Hauer2014-04-231-3/+0
| | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Suggested-by: Fabio Estevam <festevam@gmail.com>
* video: displaytimings: remove two broken error messagesLucas Stach2014-04-231-6/+2
| | | | | | | | | The error messages would dereference the just checked NULL ptr. As those messages don't add much value without further info just remove them. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: Fix use of unitialized variableSascha Hauer2014-04-081-8/+7
| | | | | | | | 'ret' is only initialized when info->fbops->fb_activate_var exists, so only use it in this case. Reported-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2014-04-043-15/+0
|\
| * drivers: treewide: Kill empty remove() implementationsAlexander Shiyan2014-04-023-15/+0
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | video: i.MX IPUv3: Add hdmi supportSascha Hauer2014-03-294-0/+2333
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | video: i.MX IPUv3: Add lvds bridge supportSascha Hauer2014-03-293-0/+314
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | video: Add i.MX IPUv3 supportSascha Hauer2014-03-2914-0/+3905
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | video: Add edid supportSascha Hauer2014-03-295-3/+1065
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | video: Add display timing from devicetree helperSascha Hauer2014-03-292-0/+239
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | video: rework mode_name parameter settingSascha Hauer2014-03-291-33/+74
| | | | | | | | | | | | | | | | We have dev_add_param_enum() now, so use it for the mode_name setting. Also drop the special case for single mode framebuffers, just add the mode_name parameter for this case aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | video: introduce struct display_timingsSascha Hauer2014-03-298-27/+29
|/ | | | | | | And use it inside struct fb_info. This struct has the advantage that the supported modes can be passed around in a single pointer. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: imx: Add a name to perclkSascha Hauer2014-02-101-1/+1
| | | | | | perclk should be named 'per' to make sure we get the correct clock. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: ipufb: Use uncached memory for framebufferSascha Hauer2013-12-201-2/+7
| | | | | | Otherwise funny caching artifacts can occur on the screen. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: simplefb: Add a8r8g8b8 supportSascha Hauer2013-12-201-0/+8
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: simplefb: Add of reserve entry for framebuffer memorySascha Hauer2013-12-201-0/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: imx-ipu-fb: Allow to specify framebuffer memory size via platform_dataSascha Hauer2013-12-201-2/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: Add screen_size fieldSascha Hauer2013-12-201-0/+2
| | | | | | | | | barebox does not need the screen size directly, but we pass the framebuffer to Linux via simnplefb it is desirable to pass the full size of the framebuffer. Default to calculated values from the screen resolution. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: imx-ipu-fb: Do not modify pwm registerSascha Hauer2013-12-201-5/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: ipufb: Allow to disable fractional pixelclock dividerSascha Hauer2013-12-201-2/+9
| | | | | | | | The IPU has a fractional pixelclock divider. When used, this produces clock jitter which especially LVDS transceivers can't handle. Allow to disable it via platform_data. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: ipufb: Fix divider debug printSascha Hauer2013-12-201-1/+1
| | | | | | The fractional part is 4 bit, not 3 Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: ipufb: Fix 24bit format and implement 32bit formatSascha Hauer2013-12-201-1/+8
| | | | | | | | When requested 32bit formats the IPU generated a 24bit format instead. Implement real 32bit format (xxrrggbb) and let the IPU generate a 24bit format when requested. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: ipufb: calculate channel param fields from fb_bitfieldsSascha Hauer2013-12-201-33/+59
| | | | | | | | No need to hardcode the channel parameters for the rgb offsets, we can calculate them from the fb_bitfields. ipu_ch_param_write_field() is the same as is the mainline IPUv3 driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: ipufb: do not use bitfieldsSascha Hauer2013-12-201-142/+129
| | | | | | | | bitfields are not portable and one should make assumptions of the layout of bitfields. Replace them with the ipu_ch_param_write_field() which is already used in the mainline IPUv3 driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: ipufb: make disp_data_fmt configurableSascha Hauer2013-12-181-26/+18
| | | | | | | | With the IPU the way the display is connected is completely independent of the framebuffer pixel format. So instead of specifying a pixel width in platform_data we have to specify how the display is connected. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: set up the kernel's simple framebuffer driverAndre Heider2013-11-064-0/+182
| | | | | | | | Add support to configure the active framebuffer for the kernel through device tree. Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: add a BCM2835 framebuffer driverAndre Heider2013-11-063-0/+143
| | | | | | | | Use the mailbox driver to set up a framebuffer based on the firmware configuration. Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: add a line_length value to struct fb_infoAndre Heider2013-11-061-2/+9
| | | | | | | | | | | Add support for framebuffers with noncontiguous horizontal lines. Video drivers can set this value if the hardware requires it. In case a driver does not set it, the current value of xres * (bpp / 8) is used instead. Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video/stm: enable clock to get the display workingEric Bénard2013-09-101-0/+1
| | | | | | | | | | | | | | else the clock is not enabled : ref_pix (rate 270000000, disabled) lcdif_sel (rate 270000000, disabled) lcdif_div (rate 33750000, disabled) lcdif (rate 33750000, disabled) lcdif_comp (rate 33750000, disabled) tested on i.MX28EVK. Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video/stm: don't fail when the pixel clock is properly setEric Bénard2013-09-101-1/+1
| | | | | | | | the check is wrong as when the clock rate is correctly set the function will return 0. Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: make fb device a pure deviceSascha Hauer2013-08-071-63/+35
| | | | | | | Makes the code simpler and makes the framebuffer layer independent of initcalls. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: MXS: introduce stmp device supportSascha Hauer2013-07-231-5/+6
| | | | | | | | | | | | MXS specific devices have some common infrastructure in the kernel known as STMP devices. We have the same in barebox, but with a mxs_ prefix instead of a stmp_ prefix. As some STMP devices are also found on i.MX6 move the common infrastructure out of MXS specific files and use the stmp_ prefix. This is done in preparation for i.MX6 NAND support. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/omap'Sascha Hauer2013-07-014-0/+720
|\
| * omap-fb: add driverChristoph Fritz2013-06-244-0/+720
| | | | | | | | | | | | | | | | This patch adds omap display controller support. Currently only OMAP4 DSS is supported. Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | video: stm: switch to clk supportSascha Hauer2013-06-201-2/+7
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* driver: Attach info callback to device, not to driverSascha Hauer2013-05-303-7/+7
| | | | | | | | Since the info is device specific and not driver specific, attach the callback to the device. This makes it possible to have a info callback for a device which does not have a driver attached. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: imx-ipu-fb: Use dev_add_param_int for alpha parameterSascha Hauer2013-04-111-17/+10
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: imxfb: Use dev_add_param_int for alpha parameterSascha Hauer2013-04-111-17/+9
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: Use dev_add_param_bool for enable parameterSascha Hauer2013-04-111-21/+12
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: calculate resource endJan Weitzel2013-04-021-2/+2
| | | | | | | | commit 5f03074 changed storing struct resource end insted of size. Fix calculation of end in fb Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Use new device_platform_driver() macro for driversAlexander Shiyan2013-02-138-54/+8
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/imx'Sascha Hauer2013-02-041-7/+22
|\
| * i.MX21/27: don't enable lcd bus clocks too earlyDaniel Mierswa2013-01-171-7/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On the MX27 based board phycard-i.MX27 the display won't properly come up. Before removing imx-regs.h and the code that sets the register in the i.MX video driver, the PCCR registers were set _after_ the screen start (LSSAR) was set. This restores that old behaviour and makes the display come up properly again. I did not have a chance to test this on any other i.MX27 or i.MX21 hardware though I assume that the "old" order is required there too. Signed-off-by: Daniel Mierswa <d.mierswa@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/at91'Sascha Hauer2013-02-046-0/+920
|\ \ | |/ |/| | | | | | | | | | | Conflicts: arch/arm/boards/at91rm9200ek/init.c arch/arm/boards/pm9263/init.c arch/arm/configs/at91sam9n12ek_defconfig arch/arm/mach-at91/Kconfig
| * atmel_lcdfb: fix warning: implicit declaration of function 'clk_get_rate'Jean-Christophe PLAGNIOL-VILLARD2013-02-041-0/+1
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * video: add Atmel HLCD supportJean-Christophe PLAGNIOL-VILLARD2013-01-315-1/+308
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * atmel_lcdfb: factorise common code between lcdc and new hlcdc IPJean-Christophe PLAGNIOL-VILLARD2013-01-314-280/+380
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * video: add atmel lcdc frambuffer supportJean-Christophe PLAGNIOL-VILLARD2013-01-283-0/+512
|/ | | | | | | | | | | This IP is present on the at91sam9 until the sam9g45, on the sam9x5 we use a new IP. This driver is based on the linux one. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Fix wrong Kconfig reference to ARCH_IMX31Alexander Shiyan2012-12-081-2/+2
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Cleanup Kconfig filesAlexander Shiyan2012-12-081-1/+1
| | | | | | | | | This patch provides a global cleanup barebox Kconfig files. This includes replacing spaces to tabs, formatting in accordance format, removing extraneous lines and spaces. No functional changes. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>