Toro: Update USB gadget for DM feature

1. Add RNDIS+DM composite for modem logging
2. Add f_dm.c to support DM port

Change-Id: I195f7654efe9e0fb5d4b32abd10768605c6cf8cd
Signed-off-by: sujin119.kim <sujin119.kim@samsung.com>
video: omap2: add s6e8aa0 panel support

Change-Id: I10c7be4414f1848cfca59ca5ee1661c84138431e
Signed-off-by: Erik Gilling <konkers@android.com>

Conflicts:
	drivers/video/omap2/displays/Kconfig
OMAP: DSS: update panel-s6e8aa0 for new dss

Change-Id: I76d695126f9531d9657fb0984614fce0fa9dfb78
Signed-off-by: Erik Gilling <konkers@android.com>
OMAP: DSS: remove duplicate dsi enable in s6e8aa0 panel init

Change-Id: I22361cab0985874e86f867f3c2828552029995c0
Signed-off-by: Dima Zavin <dima@android.com>
OMAP: DSS: panel-s6e8aa0: Port brightness code from Nexus-S

Change-Id: I2b32bb9ace5b3be5f78e0fdd4de3696b92dd3b8c
Signed-off-by: Arve Hjønnevåg <arve@android.com>
OMAP: DSS: panel-s6e8aa0: Move initial setting data to board file.

Removes initial cmd in panel driver.

Change-Id: I365c7b3eac1968317b2a1742038304dda016751e
Signed-off-by: swin.kim <swin.kim@samsung.com>
Signed-off-by: Arve Hjønnevåg <arve@android.com>
OMAP: DSS: panel-s6e8aa0: Rearrange gamma code and fix v15 calculations

Pull adjustment value to/from voltage conversions and register
locations into helper functions.

The V15 adjustment value starts at 20, not 65 like other
adjustments points.

Change-Id: I9cb97e9eaf5b4c457ba7c379ca9b5e6d5f929265
Signed-off-by: Arve Hjønnevåg <arve@android.com>
OMAP: DSS: panel-s6e8aa0: Add debug function to read current gamma correction registers

Change-Id: If51ee191b65037463a671792f254f0510a46b041
Signed-off-by: Arve Hjønnevåg <arve@android.com>
OMAP: DSS: panel-s6e8aa0: Speed up brightness update

Use dsi_vc_dcs_write_nosync when writing gamma registers since
the folowing write to 0xF7 will block anyway.

Change-Id: I45b81fe1b1c1666faf36350a220f5037a66f3ec0
Signed-off-by: Arve Hjønnevåg <arve@android.com>
OMAP: DSS: panel-s6e8aa0: Remove v0 and v255 gamma_adj_points

Change-Id: I22c4a39bfae421d933eae7b88e2bbedcc06b13d3
Signed-off-by: Arve Hjønnevåg <arve@android.com>
OMAP: DSS: panel-s6e8aa0: Add two stage gamma table

Replace color_mult with a brightness to modified-brightness table.
This allows use of more than one factory calibration point.

Change-Id: I3b91a598010bbfddbe8499c66d38407aa553a1a2
Signed-off-by: Arve Hjønnevåg <arve@android.com>
OMAP: DSS: panel-s6e8aa0: Recompute voltage from register value

v15-v171 each depend on the next adjustment point so errors will
accumulate if we use the requested voltage instead of the actual
voltage.

Change-Id: Ief7ad8c0a29ab41d1fc9a3da53f8cf42e532ff4b
Signed-off-by: Arve Hjønnevåg <arve@android.com>
OMAP: DSS: panel-s6e8aa0: Compute pentile gamma table

Allows 31 adjustment points to the gamma curve instead of 6.

Change-Id: I969244ed0425f7dc948154c8676b39fae3801d98
Signed-off-by: Arve Hjønnevåg <arve@android.com>
OMAP: DSS: panel-s6e8aa0: Add debugfs file to adjust gamma table

Adds a new debugfs file, gamma_correction, which reads and writes
the first stage gamma table. This table was initialized by the
factory calibration data at boot and is used to modify the
brightness value before looking up the voltage in gamma table
provided in the platform data.

Change-Id: I537ece3e3a8a5da474b76f88beec2ea589b5b3d4
Signed-off-by: Arve Hjønnevåg <arve@android.com>
OMAP: DSS: panel-s6e8aa0: fix locking around panel start/stop

Moved the s6->lock mutex taking to outside of start/stop since the
dssdev->state variable was being modified without the lock held. The
backlight driver is relying on this state to know when the panel
is active so that it is safe to send commands over the MIPI link.

Change-Id: Idf2ea9547203829e7b18a272601f3f52a5d31cf5
Signed-off-by: Dima Zavin <dima@android.com>
OMAP: DSS: panel-s6e8aa0: Add acl control function for reduce power consumption.

change list.
 -. It reduce lcd power consumption.
 -. It affect to the brightness.

Change-Id: I75d76b84378eaf48de9f821c19e44b39fb07cc75
Signed-off-by: swin.kim <swin.kim@samsung.com>
OMAP: DSS: panel-s6e8aa0: Add sysfs entry for 'acl_set' control.

Change-Id: I9a4a58fa8e48d8a66e5eacb297e312a02259b82c
Signed-off-by: swin.kim <swin.kim@samsung.com>
OMAP: DSS: panel-s6e8aa0: update ACL control function

change list.
 -. If change acl regs, write acl on cmd always.
 -. 'acl_set' sysfs permission change to 0644.
 -. Write acl regs when turning the display on

Change-Id: I1a91c85eecc6af17e576b7144d99a86e54ae240f
Signed-off-by: Marty Fouts <mfouts@sta.samsung.com>
[OMAP4-DSS] s6e8aa0: revent Panel reset and config at bootup

    Once CONFIG_FB_OMAP_BOOTLOADER_INIT flag is set, bootloader
    already has configured the display panel.

    This patch skipp Panel configuration and initialization at bootup.

    Note: This patch assume proper DSS settings set from bootloader (here Tuna bootloader is considered)

Change-Id: Ib796f25da88cac76b2d2073c805f5ca4d2afd24b
Signed-off-by: Gilles-Arnaud Bleu-Laine <gilles@ti.com>
[OMAP4-DSS]: s6e8aa0: Set first_vsync flag during panel poweron()

During poweron(), the first_vsync has not been received yet,
hence set the flag as false.

Change-Id: I8d398ce6c63eb11ada313d2d279e2af567314fe1
Signed-off-by: Gilles-Arnaud Bleu-Laine <gilles@ti.com>