OMAPDSS:DISPC: Gamma feature implementation

I think this code needs more work: beta in leanKernel for now.

This patch enables the gamma table to be loaded. Gamma value
can range from 0.2 to 2.0 in steps of 0.2 and thus they have
indices from 1 to 10 correspondingly. To disable gamma, value
shall be set to zero. The different values of gamma can also
be used to alter the brightness level of image.

Change-Id: I212a33f5b87c6510ba36720594378affa9ed5bba
Signed-off-by: Sujeet Barnawal <s-baranwal@ti.com>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
mm.h: hardcode readahead to 2048Kb

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Added simple sysfs interface to force adapters that are detected as
USB to charge as AC.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Added Color Control version 1.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Added note.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Added Custom Voltage version 1

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Code cleanup.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Added support for changing the core (GPU) and IVA voltages.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
The mutex 'omap_dvfs_lock' is also locked when changing the MPU,
core or IVA voltages to prevent requested GPU and IVA OPP changes
from interfering.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Properly account for the possibility of several frequencies having the
same voltage dependency. When changing the core voltages the voltage
dependencies in the OPP of L3, GPU, FDIF and HSI are adjusted. When
changing the IVA voltages the voltage dependencies in the OPP of IVA,
DSP and AESS are adjusted.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
1. When the voltages are changed also adjust the requested voltage
   values for that domain.
2. Properly account for the possibility of the number of entries in
   the voltage dependency tables being different from the number of
   supported voltages is the corresponding domains.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Added support for changing the color multipliers.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Prevent the color multipliers from being raised above the stock values.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Added support for disabling the safety feature which prevents the color
multipliers from being raised above the factory settings.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Lock the DSI bus when updating the brightness after changing the color
multipliers or V1 gamma offsets.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Bracket the gamma reg values between 0 and 255 properly without causing
an inconsistent value shift when passing these min/max values.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>