Commit Graph

2546 Commits

Author SHA1 Message Date
Matt Sealey
39e907d4bc siihdmi: move some audio muting around based on Silicon Image example code
siihdmi: don't reconfigure the SII9022 just because there was a mode change if the mode is identical
ipuv3fb: default to a real 640x480 mode and not a "dummy" xres/yres
modedb: move cea modes to an extern so it only gets included once in the kernel
also: whitespace police
2011-07-12 11:02:58 -05:00
Matt Sealey
82423290ad siihdmi: remove hotplug option, enabled by default now for everyone 2011-07-04 17:57:05 -05:00
Matt Sealey
1f0c20d638 siihdmi: backport 2.6.35 driver to .31 - hotplug is the biggest major feature 2011-07-04 14:26:27 -05:00
Matt Sealey
2e6cfa8350 IPU Triple Buffering support 2011-06-28 17:20:21 -05:00
Jason Chen
dbfb1fe4ac ENGR00141552 ipuv3: fix display pin's power leak
If you disable display, the display port's pin may keep high voltage which
may cause power leakage. Fix this issue by make all pin go into low level
after display disable.

Signed-off-by: Jason Chen <b02280@freescale.com>
(cherry picked from commit 165df9e8d525082e70a165516e2bcd1d0529b148)
2011-06-28 15:17:45 -05:00
Matt Sealey
2811c4a4ef Remove preallocation of framebuffer and GPU memory in favor of being nice and dynamic. Note that GPU memory reserved is entirely down to the MMU now, and framebuffer memory is "size of framebuffer" rounded up to 1MB block.
Everything still works.

Includes a Wild mashup of Freescale ENGR00143019 which concludes GPU MMU support for the platform.
2011-06-28 15:08:08 -05:00
Matt Sealey
54f04c4c62 ENGR00143309: fix yres_virtual to be 3*yres 2011-06-27 16:59:07 -05:00
Matt Sealey
acd39fb113 Revert "Disable IPU output format matching, will be 16-bit for every one now."
FlashPlayer 11.05 BSP has been fixed to support 32-bit modes so it will function
correctly on Smarttop now. GPU performance hit is still noticable but the extra
colour definition more than makes up for it. Smartbook is not affected.

This reverts commit 1ce3ee7a5a.
2011-06-14 14:26:41 -05:00
Matt Sealey
b5f32fb4c5 siihdmi: don't match resolution in siihdmi_find_best_mode because it breaks the preferred mode when teneighty=seventwenty=0 2011-06-13 22:13:02 -05:00
Matt Sealey
9c5512554f siihdmi: rework mode selection
* 720p and 1080p are now attempted on DVI monitors on the revelation that some DVI monitors can display real CEA-style modes
* use the fb_find_best_nearest_mode function to better select resolutions and refresh rates
* cleanups
2011-06-13 20:23:13 -05:00
Matt Sealey
058da005af fb_find_best_nearest_mode - actually pick highest refresh this time
also optimize out the abs, since mode > cmode, it will always be positive
2011-06-13 20:02:47 -05:00
Matt Sealey
5b7fe2afda fb: add a new mode matching function fb_find_best_nearest_mode
The intent is that if you have a native panel resolution of 1920x1080@60 but this cannot
be displayed, you can find the nearest resolution with the HIGHEST refresh rate (fb_find_nearest_mode
only selects the CLOSEST refresh rate). It also, by virtue of some rather unintended
side effect, picks better matches (1680x1050->1440x900) than find_nearest (1680x1050->1280x1024)
when it comes to widescreen modes.
2011-06-13 19:51:55 -05:00
Matt Sealey
54cf91e215 siihdmi: don't use fb_var_screeninfo more often than we have to, considering that we always have a valid fb_videomode
small optimizations come with this:
* no longer redundantly recalculate refresh rate just to print it when setting resolution
* can use siihdmi_dump_single_modeline to print the modeline for Setting Resolution (more descriptive)
* less variables in use where we don't need var but have mode
* less data copying where we don't need var but have mode (since fb_videomode_to_var sets ~15 fields from mode)
* more const variables passed to functions
*
2011-06-13 19:32:17 -05:00
Matt Sealey
93ea0f3a8b siihdmi: fix refresh rate calculation for vmode registers
also as a cleanliness issue, remove the redundant remainder variable and clean up some
printk arguments to remove a warning or two.
2011-06-13 18:22:22 -05:00
Matt Sealey
f71f57038f HDMI updates
* use CEA mode 4 (720p60) instead of 19 (720p50) to improve compatibility for fallback mode
* Remove IPU bandwidth warning as this has been worked around to some degree in other parts of the kernel
* Refactor CEA duplicate culling such that on DVI monitors, the CEA mode is removed instead of the IT mode
* Switch siihdmi.useitmodes=1 to force DVI culling behavior on
* Do not enforce lower_margin limit for HDMI on DVI monitors
2011-06-08 15:59:11 -05:00
Matt Sealey
fc966627ed backlight: check for framebuffer id before doing any notifier work
second step to fixing the cheese bug
2011-05-01 23:24:41 -05:00
Matt Sealey
682ab7b97d wrap framebuffer notifications in a check for the running framebuffer.
hopefully this starts to solve the "install cheese, run cheese, close cheese"
bug where the backlight gets turned off on Smartbook.
2011-05-01 23:17:58 -05:00
Steev Klimaszewski
853b854724 siihdmi: disable 1080p output by default
Due to performance issues, disable 1080p output by default, we will choose a
720p mode first, and if we can't find that, we then try to choose a native
output, and barring that, we default to 1280x720.  You should still be able to
add siihdmi.teneighty=1 to your bootargs if you wish to output in 1080p
2011-05-01 22:06:38 -05:00
Matt Sealey
2f38932613 mxc_ipuv3_fb: mask out the error init panel msg 2011-05-01 17:54:56 -05:00
Martin Krastev
6977172470 siihdmi: refresh rate fix 2011-05-01 17:53:37 -05:00
Matt Sealey
1c1a024602 Merge branch 'master' of gitorious.org:efikamx/linux-kernel 2011-04-20 10:25:17 -05:00
Andrew Kephart
6f4f7206df fbdev: Fix fb_find_nearest_mode refresh comparison
Refresh rate nearness is not calculated or reset when nearest resolution
changes.

This patch resets the refresh rate differential measurement whenever a
new nearest resolution is discovered.  This fixes two error cases;
first, wherein the first mode's refresh rate differential is never
calculated and second, when the closest refresh rate from a previous
nearest resolution is erroneously preserved.

Signed-off-by: Andrew Kephart <andrew.kephart@alereon.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2011-04-20 10:03:08 -05:00
Steev Klimaszewski
c6695ade2a mxc_ipuv3_fb: Change resolution to 640x480
The previous fix of 800x600 fixes the frame buffer issue, but I had the x and
y resolutions switched, and since 640x480 uses less memory, switch to that.
2011-04-14 18:22:56 -05:00
Steev Klimaszewski
f131c697b5 mxc_ipuv3_fb: Increase the size of initial fb
The initial framebuffer is set to 320x240.  This seems to cause issues with
plymouth and displaying text, so increase it to default to 800x600.  This fixes
the headless boot issue.
2011-04-12 23:02:40 -05:00
Matt Sealey
1ce3ee7a5a Disable IPU output format matching, will be 16-bit for every one now. 2011-04-11 21:30:15 -05:00
Matt Sealey
7ea11d0c97 sync minor framebuffer and overlay twiddlings to 11.01 BSP 2011-04-11 20:28:49 -05:00
Matt Sealey
eb8699da0f fix siihdmi probing. commence mild self-flagellation. 2011-03-16 00:06:52 -05:00
Matt Sealey
c6da52bf39 4 changes for HDMI
* prep for 2.6.35 and a coexisting "sii9022" driver from Freescale by calling ours "siihdmi" as per the filename
* never put the chip into D3 power off state if we cannot hotplug the chip out of it
* semi-catch setting a mode with a null fb_videomode argument, since this is impossible to perform (there may be other places this needs handling, and there should be a healthy fallback)
* don't perform fb_videomode_to_var for screen blanking, and simplify blanking functions to not require fb_videomode_to_var since they do not actually use them
2011-03-09 17:34:51 -06:00
Matt Sealey
a45e894da4 siihdmi: only enact the 1080p and 720p checks if we're on an HDMI sink, as DVI sinks are usually not going to contain 1080p and 720p modes anyway. 2011-02-28 11:47:42 -06:00
Matt Sealey
affb43356d backlight: jiggle the order of powering on backlight and deconfiguring the backlight PWM on blank/restore. Also, don't mess with the IO state of the PWM pin, if the PWM is disabled, it's disabled, all we need to do is turn the power off. 2011-02-21 18:45:31 -06:00
Matt Sealey
24d20827a9 backlight: add framebuffer notifier for blanking and registration so that the backlight turns on and off when the screen blanks again 2011-02-20 08:38:48 -06:00
Matt Sealey
14b847cc2a siihdmi: fix div0 when max_tmds_clock is not set in the EDID 2011-02-19 18:02:48 -06:00
Matt Sealey
46426dbc20 siihdmi: support CEA extended data blocks, particularly the video capability block to handle overscan/underscan properly 2011-02-19 09:32:37 -06:00
Matt Sealey
348a036758 backlight: reinstate old backlight driver, pwm_bl cleanups while we're doing it 2011-02-17 19:30:45 -06:00
Matt Sealey
d5ee5344f1 lcd platform data member name change 2011-02-17 17:06:01 -06:00
Matt Sealey
b80bc38af2 mtl017: remove backlight hacking around in the panel driver 2011-02-16 01:37:00 -06:00
Matt Sealey
90d4883d03 framebuffer: conditional so that bpp= argument to kernel will override the pixfmt check when required 2011-02-15 02:24:55 -06:00
Matt Sealey
4deabce17c framebuffer: method for selecting a close bpp by default that matches the IPU DI connected lines from platform data. MX will get 32-bit by default and SB will get 16-bit by default without much trouble 2011-02-14 02:52:44 -06:00
Matt Sealey
f984d02a5c framebuffer: stubbornly refuse to set up the panel for anything less than 12.5MHz (fixes IPU_INT_STAT on boot) 2011-02-14 02:14:33 -06:00
Matt Sealey
233491f6ae siihdmi: fix kfree/i2c_set_clientdata ordering so the driver never has a freed block as clientdata, for correctness (never happens in real life) 2011-02-14 00:24:14 -06:00
Matt Sealey
1647111d6a siihdmi: remove mx-specific timeouts so we can narrow it down (yes, it will cause IPU_INT_STAT debug on boot now, again) 2011-02-14 00:23:21 -06:00
Matt Sealey
3f0de6d7a6 mtl017: new driver, not working yet, committing to save work 2011-02-13 21:32:23 -06:00
Liu Ying
7aba289ff0 ENGR00119661 MXC IPUv3 FB:Fix arbitary bpp issue
We used to force the framebuffer bpp to be default bpp
set by the user in the kernel boot up command line.
This patch fixes this issue. This patch also
gets TVE framebuffer bpp value from IPUv3 framebuffer.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
2011-02-12 02:53:54 -06:00
Jason Chen
dd3c31bc69 ENGR00138270-3 ipuv3 fb: refine pan display method
Refine pan display method.

Signed-off-by: Jason Chen <b02280@freescale.com>
(cherry picked from commit b00590b8f5e964a7192d8af863a5cd4d24844d0d)
2011-02-12 02:52:06 -06:00
Jason Chen
482f5ee366 ENGR00137873 ipuv3 fb: can not set correct bpp for tve through cmdline
fb cmdline option bpp= should pass the default bpp to fb driver, for tve etc
case, it will set_var by itself, which var->bits_per_pixel = 0,
the mxcfb_check_var will then fix it to 16. It's not correct
when we need set bpp to other value.

Signed-off-by: Jason Chen <b02280@freescale.com>
(cherry picked from commit f8a69aa6bf401b5a682e88040cf7abbf53406e38)
2011-02-12 02:49:35 -06:00
Matt Sealey
de462c995e siihdmi: rename tx->enable_audio => tx->basic_audio, add audio property if our monitor supports basic_audio. Not hotplug aware! 2011-02-11 20:48:21 -06:00
Matt Sealey
52b63e7922 siihdmi: make snapping to 720p configurable ('seventwenty', enabled by default) and clean up teneighty setup. 2011-02-11 18:03:23 -06:00
Matt Sealey
481f0bd252 siihdmi: teneighty mode was picking non-1080p modes and not letting us past. Restrict it to 1920x1080 matches. 2011-02-11 17:53:29 -06:00
Matt Sealey
0a207e8028 siihdmi: make the mode culling debug more like the mode supported debug 2011-02-11 17:47:53 -06:00
Matt Sealey
63c62f4d05 siihdmi: clean up default/720p mode setting comments and code
also re-enable mode culling debug to watch this more closely
2011-02-11 15:51:38 -06:00