summaryrefslogtreecommitdiffstats
path: root/drivers/video
Commit message (Collapse)AuthorAgeFilesLines
* sandbox: allow "make ARCH=sandbox allyesconfig"Holger Schurig2014-07-221-0/+1
| | | | | | | | | | | | | Compiling the tree with allyesconfig is helpful because different compilers (gcc, clang) or static checkers (e.g. clang's scan-build) can then process and check more code. This patch introduces two new configuration symbols that Kconfig files can depend on. That way, code that is only working where a cache or DMA implementation exists can be opted out. Signed-off-by: Holger Schurig <holgerschurig@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide: remove address of the Free Software FoundationAntony Pavlov2014-06-113-12/+0
| | | | | | | | | | | | | | | | | | The FSF address has changed; The FSF site says that address is Free Software Foundation 51 Franklin Street, Fifth Floor Boston, MA 02110-1301 USA (see http://www.fsf.org/about/contact/) Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/imx'Sascha Hauer2014-06-042-1/+59
|\ | | | | | | | | Conflicts: arch/arm/configs/tx25stk5_defconfig
| * video: i.MX IPUv3 ldb: implement i.MX53 supportSascha Hauer2014-05-091-1/+30
| | | | | | | | | | | | Configure the clock path correctly for i.MX53. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * video: i.MX IPUv3: Implement i.MX5 IPU reset supportSascha Hauer2014-05-091-0/+29
| | | | | | | | | | | | Needed to make the IPU driver work on i.MX5 Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | devinfo: make the output of "devinfo DEVICE" nicerHolger Schurig2014-06-021-5/+2
|/ | | | | | | | | | | | | | | * some output sections started with "foo: bar", some with "foo = bar". Unify this. * there was a fixed size to the "foo =" parameters, which wasn't fitting, this was especially visible at "devinfo global" * don't output "resources:", "driver:" and "bus:" lines if there are none resources, drivers or busses involved. * remove some empty lines * harmonize differentiation between headlines (e.g. "resources:") and values by indenting values slightly * uppercase some texts Signed-off-by: Holger Schurig <holgerschurig@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: i.MX IPUv3: Print error as stringSascha Hauer2014-05-081-2/+2
| | | | | | And add a missing newline. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: i.MX IPUv3: remove debug leftoverSascha Hauer2014-05-081-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* 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
|\