Commit Graph

159761 Commits

Author SHA1 Message Date
Matt Sealey
15c4470a5a checkpatch: egregious bump to the version from kernel 3.4rc1 2012-04-19 15:03:09 -05:00
Matt Sealey
af99f78e82 siihdmi: updated checkpatch run, fix a few other things including a serious memset argument order problem (argh!)
scripts/checkpatch.pl -f drivers/video/mxc/siihdmi.c --ignore=LONG_LINE,C99_COMMENTS
total: 0 errors, 0 warnings, 1555 lines checked

NOTE: Ignored message types: C99_COMMENTS LONG_LINE

drivers/video/mxc/siihdmi.c has no obvious style problems and is ready for submission.
2012-04-19 15:02:30 -05:00
Matt Sealey
c00322177f siihdmi: fix some checkpatch errors and realign some stuff to reduce warnings. Now we're only guilty of going over 80 columns, but Camelot is a silly place. 2012-04-19 14:43:34 -05:00
Matt Sealey
64cf5e0b27 siihdmi: downgrade to 640x480 output while getting EDID to match HDMI specification 2012-04-19 14:03:47 -05:00
Matt Sealey
9960ff68e1 siihdmi: clarify power modes debug 2012-04-19 14:01:42 -05:00
Matt Sealey
37cd50e9ff siihdmi: strncmp against modedb instead of structure memcmp to save time and effort matching CEA VIC 2012-04-19 13:59:01 -05:00
Matt Sealey
ddc6441e13 siihdmi: fix a division by zero when HDMI VSDB gives out 0 as the maximum TMDS clock capability 2012-04-19 13:55:52 -05:00
Matt Sealey
37c5293a2e siihdmi: comment about setting up interrupt service 2012-04-19 13:52:43 -05:00
Matt Sealey
d78c91e816 siihdmi: do the same msecs_to_jiffies for the identify timeout to match the DDC timeout 2012-04-19 13:49:56 -05:00
Matt Sealey
2bba60824f siihdmi: correct bus timeouts to convert ms to jiffies for the time_after function 2012-04-19 13:49:00 -05:00
Matt Sealey
badb686329 siihdmi: only mark insufficient margin in the mode list for 800x600 as all other modes tested actually seem to work okay. 2012-04-19 13:46:11 -05:00
Matt Sealey
1327336167 siihdmi: correct debug not to show display "power" on or off but more directly refer to "receiver sense" active or inactive. Also distinguish between the debug in the hotplug service loop and the almost identical output in the display setup code 2012-04-19 13:42:23 -05:00
Matt Sealey
a39558634a siihdmi: use SIIHDMI_NAME for driver data too 2012-04-19 13:39:15 -05:00
Matt Sealey
7c070eb308 siihdmi: rework debug statements not to redefine DEBUG, and use SIIHDMI_NAME 2012-04-19 13:37:00 -05:00
Matt Sealey
21371b733b siihdmi: add definition of driver name to simplify debug statements (header) 2012-04-19 13:24:59 -05:00
Matt Sealey
89e13e660a efikamx: correct IPU version and don't want 600ms for SIIHDMI reset (it doesn't take that long) 2012-04-19 13:23:30 -05:00
Matt Sealey
39a894043f build: workaround for Linaro gcc-4.6 cross compilers 2012-03-26 17:34:03 -05:00
Zeng Zhaoming
4fdaa5078c ENGR00144281 SDMA: System hangs in bootup when kernel_preempt not enable
When kernel_preempt not enable in configure, system bootup hangs
in sdma initialization.

This is caused by sdma initialization waiting for channel0 complete loading
script in queue, and arch_idle happens with action to disable some clocks,
if DDR clock disabled, script loading will failed and SoC hangs.

Solve it by make sure DDR clock is enabled during sdma initialization.

Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
2012-03-10 11:29:35 -06:00
Matt Sealey
3337202afe efikamx: fix post-build-test and pre-commit accidental typo 2012-03-08 15:28:36 -06:00
Matt Sealey
4fa3f18a58 ipu: add platform data method to determine pixel clock accuracy (external or internal).
If the internal clock is deadly accurate for the desired mode, that will be used instead
(the accuracy is set to within 1/200th which is well within VESA standards of 1/50th) to
save power.

efikamx changes: for HDMI, try external clock when necessary. For LVDS, don't since there
is some weird clock mess with the binary blob for the LCD panels in the mtl017 driver
which we think is derived from the lack of external clock support in more ancient kernels.
It is fudging the values to both correct some kind of panel EDID bug and also to fix the
potential deviation in clock, but since it's a binary blob it's kind of hard to change.
2012-03-08 15:22:33 -06:00
Matt Sealey
92645ae481 pata_fsl: use with-irqs version of PIO data transfer for a noticable speedup 2012-03-08 15:20:21 -06:00
Matt Sealey
a460028c64 ipu: backport of IPU clock handling
* improve clock accuracy check from 1/16 to 1/200 of intended clock rate
* properly round pixel clock to the parent and not against a hardcoded 150MHz max rate
* properly fix di external clock divisor to a maximum of 8
2012-02-20 09:29:48 -06:00
Matt Sealey
3345610229 put hex_to_bin back 2011-12-20 21:38:23 -06:00
Matt Sealey
ded72a8511 gsl: fix typo in error message 2011-12-19 12:37:28 -06:00
Matt Sealey
f8f8789037 whitespace cleanups? 2011-12-15 13:38:28 -06:00
Matt Sealey
fe21c0fe94 gsl: add/improve ioctl entry/exit debugging, but disable it. 2011-12-15 13:37:26 -06:00
Matt Sealey
38e736cbad cleanup 2011-12-15 13:36:34 -06:00
Matt Sealey
e2740bfd48 Revert "audio: keep SGTL5000 clock on as the same clock is used for SPDIF 48Khz capability"
This actually didn't help anything as somehow the SPDIF and SGTL5000 just stopped working..

This reverts commit 2e1c46fb5c.
2011-12-02 20:29:01 -06:00
Matt Sealey
47980f1946 make-deb: use the default config for EfikaMX if there isn't one already 2011-12-02 18:42:42 -06:00
Matt Sealey
3884134c16 Scripts to ease building the kernel and debian packages for the kernel 2011-12-02 18:41:23 -06:00
Matt Sealey
0d89a534b1 siihdmi: optional AV Mute, internal register helpers, fill out AVI InfoFrame better (supply VIC for VIC modes) 2011-11-10 11:55:21 -06:00
Matt Sealey
2e1c46fb5c audio: keep SGTL5000 clock on as the same clock is used for SPDIF 48Khz capability 2011-11-10 11:34:57 -06:00
Matt Sealey
0522664753 pmic,mmc: make VGEN2 and VSD regulators always pump 3.15V (3.3V is not possible apparently). VSD doesn't seem to be connected to anything on any EfikaMX board so it is debatable whether it needs to be turned on at all.. 2011-11-03 12:50:45 -05:00
Matt Sealey
8681692d25 siihdmi: reduce resolution stabilize time to minimum of 50ms
Since there isn't a noticable effect on display compatibility in higher values, we may as well not waste time idling for something that already has taken effect.
Net benefit of this is that DVI monitors, due to not requiring an InfoFrame drain time, now change resolution much, much faster than HDMI monitors (which may now take about 50ms longer, but this isn't noticable in benchmarks)
2011-10-26 13:49:16 -05:00
Matt Sealey
0aa62f7f4d siihdmi: improvements targeted at greater display compatibility
* siihdmi.dvi=1 switch for kernel command line (and sysfs) which will force an HDMI display into DVI sink mode (will disable audio!)
* EDID handling reworked to better match the operational mode described in the manual, and to streamline the DDC bus locking (it will now lock the bus once instead of twice, and get all EDID data while the lock is held instead of trying twice once it realises there is an extension
* more consistently set the DVI/HDMI operational mode every type the System Control register is touched
* set Power Control to "D0" after setting the DVI/HDMI operational mode as a 0x00 write here seems to help latch the previous register set
* misc: renumber "steps" to enable display to match the manual
* only delay for InfoFrame drain time if it's an HDMI sink (DVI sinks do not get sent InfoFrames so there is nothing to drain)
* add a "resolution stabilization" delay (currently 255ms, manual states 50-500ms) in case the IPU is not sending data yet (will be ratcheted down later to make resolution changing faster)

HDMI compatibility has improved somewhat (no more pink lines) and as far as tested with all the test monitors, no breakages have occurred.
Monitor resolution change time has increased due to the stabilization delay, which may not actually be necessary as by the time we have gotten to this point to change resolution it could be assumed the notification through the Linux framebuffer subsystem is more than long enough. Your mileage may vary.
2011-10-26 07:46:46 -05:00
Matt Sealey
b763d6b7a3 pmic,mmc: sacrifice a little battery life for improved SD card compatibility
* bump regulator to 3.3V
* this is safe for all SD cards up to standard
* unfortunately letting it drop to 1.8V is not a workable solution on systems with multiple SD card slots unless they all agree on a low voltage (and currently there is no way for them to communicate this requirement)
2011-10-25 13:51:39 -05:00
Matt Sealey
b6277489e0 siihdmi: add CEC register set for later development 2011-10-24 11:50:10 -05:00
Matt Sealey
f750dd8890 siihdmi: don't wait for receiver sense to setup display
* do not power down the chip just because the monitor is still in standby and waking up
* EDID will be requested but if the monitor has not properly powered yet then it will give a default mode
* also fix the symlink error (try remove device vs. make new phys-link, both are phys-link now, so it will remove the phys-link attribute before recreating it)
2011-10-24 11:48:10 -05:00
Matt Sealey
d2849443a0 usb: restrict mass storage ATA passthrough for several disk chassis/controllers (Launchpad #431963 etc.) 2011-10-24 09:42:54 -05:00
Matt Sealey
84401a30c1 pmic,mmc: bump regulator voltage to 3.3V for quirky SD cards
3.0V may let most work but in using two cards together it seems that's not enough voltage for
some. Since the regulator can be dropped to 1.8V this won't bode well for two cards with
different capabilities but the regulator probably won't be changed by the current driver in
use. All SD cards regardless of type absolutely must be able to run at 3.3V so this is not a
dangerous change and can only improve the situation, although mileage as always can vary..
2011-10-24 09:30:23 -05:00
Matt Sealey
115caa61fa bump to .27 for development. Planned fixes;
* siihdmi power off on missed receiversense
 * usb storage oddness with JMicron/LaCie
 * possible SD card refinement (3.3V regulator issue)
2011-10-24 09:21:13 -05:00
Matt Sealey
5f793fd361 bump for release (.26) 2011-09-21 13:09:50 -05:00
Sammy He
df8868e307 ENGR00151762 vpu: Fix system hang due to long time video playback on mx51
Fix system hang due to long time video playback. This issue is only
on i.MX51 platfrom due to changing vpu clock parent in vpu_enable/
disable. Set vpu clock parent to axi_a forever to fix it.

Signed-off-by: Sammy He <r62914@freescale.com>
2011-09-21 10:38:44 -05:00
Matt Sealey
680b24818e siihdmi: make 1080p and 720p autodetection a little more panel-friendly
Essentially where before we simply picked a 1080p or 720p mode and then fall back to
EDID preferred mode, now we basically do

if (teneighty)
	if (native is 1680x1050, 1440x900) return native
	if (1080p) return 1080p

if (seventwenty)
	if (native is 1366x768, 1360x768, 1280x768, 1280x800, 1024x768) return native
	if (720p) return 720p

fallback: use preferred mode

This means far more "close to 720p" modes for plasmas are used instead of 720p with
a scaler, and for monitors that SAY they can do 1080p (but it's actually scaled down
or overscanned because native res is smaller) then use panel native instead for a
much better experience.

Tested on every monitor we have available and matches native res on most, and the
best mode fallback is used as per previous mode selection on the few fringe cases
left. Experience is crisper displays.

Note that if teneighty is selected, the modes returned absolutely will suck at video
playback performance - mfw_v4lsink will fail to fullscreen at anything above 1366x768
due to lack of bandwidth. 1440x900 may work if you're lucky. mfw_xvimagesink simply
cannot convert YV12 to YUY2 fast enough to work (and double buffering seems broken).
It is therefore still disabled by default.

Also: add a siihdmi.vic= option, so you can give it any CEA VIC from the CEA spec
(look for an entry in drivers/video/cea861_modes.c and use that number) if it's
still in the modelist.

Requesting specific video modes requires some duplication of option parsing and I
feel that's really not going to give people a reasonable experience, so it's not
being done right now. Investigation into exactly what the mitigating factor for
a lower_margin < 2 actually working is underway so we can cull less modes and give
people much better monitor experience once we get XRandR working.
2011-09-16 21:38:49 -05:00
Matt Sealey
632be9672e Add use counter to the overlay (inspired by a BoundaryDevices patch) 2011-09-16 21:25:40 -05:00
Matt Sealey
3635f6cf83 vpu: bump driver as close to 11.08 as possible without breaking anything 2011-09-15 23:39:51 -05:00
Matt Sealey
ddad8c0105 siihdmi: remove broken _remove_mode function in favor of the original, working open-coded solution 2011-09-15 23:14:27 -05:00
Matt Sealey
7d1449b512 Use IT modes over CEA modes by default 2011-09-14 12:25:27 -05:00
Troy Kisky
6a1c89a3c6 SPI fixes from BoundaryDevices. Re-enable MTD! 2011-09-12 11:26:33 -05:00
Troy Kisky
8b89e62c2a Several SGTL5000 fixes from BoundaryDevices 2011-09-12 10:20:19 -05:00