ARM: omap4: tuna: fix JIG attach/detach handling

If a JIG cable is attached and then detached an OTG_EVENT_NONE
event will be sent to the USB driver on the detach.  This creates
an inbalance in the USB driver's PM usage count.  This change
tracks when a JIG cable is attached so that the event will not be
generated on detach.

Change-Id: I6f0e992f557299662201f98e802d65e1780ab01e
Signed-off-by: Adam Hampson <ahampson@sta.samsung.com>
ARM: omap4: tuna: add mhl charging to board files

Change-Id: I2a7352529d2382458dd4760fce63da905c7485ad
Signed-off-by: hs46.jeong <hs46.jeong@samsung.com>
ARM: omap4: tuna: USB/UART Manual Mode Support

Provide sysfs entries for manual mux configuration for UART and
USB cables.

This allows for diagnostic software to communicate with the modem
parts on the device.

Change-Id: I1cb344d2f091e59176f6472d666569c16d4c11f0
Signed-off-by: YoungMok <ym48.kim@samsung.com>
Signed-off-by: Adam Hampson <ahampson@sta.samsung.com>
TUNA:HDMI: set hpd_gpio and max pixel clock via board file.

These are now configured via the board file.

Change-Id: I3b4d60ff2b0f6f03be949837a45da602f3028fe3
Signed-off-by: Lajos Molnar <molnar@ti.com>
Revert "OMAP4 Tuna Display: Enable Writeback Buffer usage for GFX Fifo"

This reverts commit 051f471f059eb91068cf6c59d466a0ef805fb0e9.
ARM: omap4: tuna: Add ACL parameters.

change list.
- It is ACL 55% to 45% parameter table.
- It is reduce LCD panel current consumption.

Change-Id: I94a1bd03395e9bc756d59c1165f002f3a2ff26fd
Signed-off-by: swin.kim <swin.kim@samsung.com>
ARM: omap4: tuna: update ACL parameters.

change list.
 -. use 45% decrease rate in 300 to 41 cd.
 -. use 43% decrease reat in 40 to 0 cd.
 -. remove bl_acl_off.
 -. It makes more brighter in high brightness level.

Change-Id: Iedc39bc23efb9aa9e66089ca717e22d80433004b
Signed-off-by: swin.kim <swin.kim@samsung.com>
tuna: display: Drop brightness by 6.67%

Drop max brightness from 300cd/m2 to 280cd/m2 by adjusting
the calibration multipliers down by 6.67%.

Change-Id: I28af23e064a592bdc405915c124c4922c91001c4
Signed-off-by: Todd Poynor <toddpoynor@google.com>
OMAP4: tuna: enable skip_init in board-tuna-display

Change-Id: I0e85542a781b09ac5f58833ee369cbc991ed3702
Signed-off-by: Erik Gilling <konkers@android.com>
ARM: omap4: tuna: Update s6e8aa0 initial setting value for sm2 panel.

change list.
- It support M3/SM2 sRGB panel.
- Update sRGB, 6500K gamma value for sm2.
- elvss_con bit set for use dynamic elvss in sm2.
- add elvss parameters.

Change-Id: Ibe49911e54e0779072c9822650b50958943df634
Signed-off-by: Marty Fouts <mfouts@sta.samsung.com>
ARM: omap4: tuna: Set acl average parameter to 20 frames.

Change-Id: I5ac186bf8dbb91eb6787d3e6f373e8b982515329
Signed-off-by: Arve Hjønnevåg <arve@android.com>
ARM: omap4: tuna: Update gamma table for sm2 panel

Use a gamma table based on measurements of the reference panel
instead of the first panel we received.

Change-Id: I90f5f3b5994241a7ff4c3cf8a1842d1b7e71b7d0
Signed-off-by: Arve Hjønnevåg <arve@android.com>
TUNA: Add panel dimensions to board file

This is needed for FB and DSSCOMP.

Change-Id: I1d659530ce262136d9d3fd44c7ab3e5a663b621a
Signed-off-by: Lajos Molnar <molnar@ti.com>
ARM: omap4: tuna: Add 5ms delay after Sleep-Out command

According to the datasheet it is not safe to send other
commands in the first 5ms after a sleep-out commend.

Change-Id: Ib2e2814f57c710df52cc1c579468be6a09192b33
Signed-off-by: Arve Hjønnevåg <arve@android.com>
ARM: omap4: tuna: Modify LCD refresh rates to 48hz.

change list.
-. 48hz F8h panel condition cmd set add to compansate brightness.
-. modify dsi pll regm value to set 48hz.
-. modify lp_clk_div value to fix dsi error.

Change-Id: I9bd1d2bfac4dd2379635c97d7e133c26de9d7df0
Signed-off-by: swin.kim <swin.kim@samsung.com>
Revert "ARM: omap4: tuna: Modify LCD refresh rates to 48hz."

This reverts commit 823e156d325e6208dfbf5e45f65a17fad3cb3260.
ARM: omap4: tuna: Modify LCD refresh rates to 48hz.

change list.
-. 48hz F8h panel condition cmd set add to compansate brightness.
-. modify dsi pll regm value to set 48hz.
-. modify lp_clk_div value to fix dsi error.

Change-Id: I9bd1d2bfac4dd2379635c97d7e133c26de9d7df0
Signed-off-by: swin.kim <swin.kim@samsung.com>
Revert "ARM: omap4: tuna: Modify LCD refresh rates to 48hz."

This reverts commit 7119a8d9185f0d11c32811e83085944016708aad.
ARM: omap4: tuna: Modify F8h panel conition cmd set for 59hz.

Change-Id: I89303e445799cd6d719d810711fee825930642a9
Signed-off-by: swin.kim <swin.kim@samsung.com>
ARM: omap4: tuna: Add panel configration for SM2A2 Line support.

change list.
 -. SM2A2 Panel Id value is '0xA2'.
 -. Add factory info for SM2A2 line panel.
 -. Add panel data for SM2A2.

Change-Id: I82addbf29bab4533845caf632676592d11d9950d
Signed-off-by: swin.kim <swin.kim@samsung.com>