Revert "HACK: ARM: omap4: opp: disable MPU 1.5 GHz OPP"

This reverts commit bca4426f9b44aad21802caa7c6e29ed48de7ea57.
OMAP4460: OPP/voltage: 1.5GHz needs different SR ntarget

nTarget value for 1.5GHz uses the wrong nTarget which was meant
for 1.2GHz. this can cause instabilities all over the place.
add a 10mV to Vnom of 1.2GHz as the start voltage for 1.5GHz
and use the proper nTarget values meant for 1.5GHz.

Change-Id: Ib0a669a75675149c98a7da208e662a91a9de0b84
Reported-by: Jean-Yves Caron <j-caron@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Oleksandr Kozaruk <oleksandr.kozaruk@ti.com>

Conflicts:
	arch/arm/mach-omap2/opp4xxx_data.c
OMAP4: HACK: disable OPP 1.5 GHz on untrimmed units.

Noticed device reboots with untrimmed 1.5 GHz units.
Temporary workaround to restrict the max OPP to 1.2 GHz
to make it functional.

Change-Id: Ia254e34893e008b4a966e5987bdb7b0099793ebc
Signed-off-by: Oleksandr Kozaruk <oleksandr.kozaruk@ti.com>
MFD: Change TWL6025 references to TWL6032

The TWL6025 was never released beyond sample form and was replaced by
the PhoenixLite range of chips - TWL6032. Change the references to
reference the TWL6032 class and name the registers to twl6032 in line with
an actual released chip name to avoid confusion.

Change-Id: Idef654724fcb174bcfc59a10dea600eea80ea1f0
Signed-off-by: Graeme Gregory <gg@slimlogic.co.uk>
Signed-off-by: Volodymyr Riazantsev <v.riazantsev@ti.com>
REGULATOR: update the handling of state

TWL6032 handles state in a slightly different way than TWL6030. Fix
the state handling to deal with the TWL6032 lack of groups. This means
kernel correctly determines the state of TWL6032 regulators.

Change-Id: I58468829711e2aac4b45f949797c4b33abd92ed8
Signed-off-by: Graeme Gregory <gg@slimlogic.co.uk>
Signed-off-by: Volodymyr Riazantsev <v.riazantsev@ti.com>
OMAP4470: Added ipu_fck clock implementation specific for 4470

ipu_fck clock changed in non backward compatible way: in 4470 parent for
this clock changed from ducati_clk_mux_ck to div_core_ck. So we add new
implementation specific for 4470

Change-Id: I2a0ce961761bc966dc7fcbf61bb69d3b540c4324
Signed-off-by: Vitaly Chernooky <vitaly.chernooky@ti.com>
OMAP4470: Added iss_fck clock implementation specific for 4470

iss_fck clock changed in non backward compatible way: parent clock
changed from ducati_clk_mux_ck to div_core_ck. So we add new
implementation specific for 4470.

Change-Id: I18e5b4e2d653cbe340e85dac66af167f267f2d84
Signed-off-by: Vitaly Chernooky <vitaly.chernooky@ti.com>
OMAP4470: TEMP_SENSOR: Thermal sensor support for 4470

Thermal sensor support is required by a new chip.

Add runtime checking for 4470 to allow usage of
thermal sensor.

Change-Id: I231826df11315a27d6174a8791c578a5abbb4257
Signed-off-by: Leonid Iziumtsev <x0153368@ti.com>
OMAP4: Support for TWL6032 PMIC added

TWL6032 used as PMIC for OMAP4470 based SOMs. New specific
definitions for support TWL6032 PMIC SR-compatible resources
were been added. Settings for those resources same as for
TWL6030.

Resources_to_power-rails connection scheme for
OMAP4470 + TWL6032 is:

	TWL_6032[SMPS1] -> OMAP4470[VDD_MPU]
	TWL_6032[SMPS2] -> OMAP4470[VDD_CORE]
	TWL_6032[SMSP5] -> OMAP4470[VDD_IVA]

Change-Id: I7457e92144d1109a8a7286c07526096926a3091b
Signed-off-by: Volodymyr Riazantsev <v.riazantsev@ti.com>
OMAP4470: Added bb2d_fck clock

In 4470 introduced Bit Blitter. So we add bb2d_fck clock for them.

Change-Id: I4e520f379fa60a5cbdc15e225e61b1f8f20fc91c
Signed-off-by: Vitaly Chernooky <vitaly.chernooky@ti.com>
OMAP4: PM: Correct powerstates initialization sequence

  During initialization of new powerstate item it
should be added into list before it's configuration.

  Initialization of powerstates skiped for CORE, MPU,
CPU0, CPU1 powerdomains. Current implementation caused
incorrect initialization of powerstate at least for
GFX PWRDM because it masked by CORE PWRDM.

We should add powerstate node to list before it will
been initialized.

Change-Id: I2f9274a9ec951eb9f6b54e104a0e14921b61264e
Signed-off-by: Volodymyr Riazantsev <v.riazantsev@ti.com>
OMAP4: SAR: SAR layouts for 4470 added

 In OMAP4470 type CPUs list of devices connected to  L3 and L4
was changed. Due those changes  SAR layout also has been.

  Mappings of SAR_BANK_1 and SAR_BANK_3 for OMAP4470 are
different from other OMAP44XX family, so new specific layouts
were added.

 Mapping of SAR_BANK_2 for OMAP4470 CPU the same as for OMAP4460.
So this bank was reused.

Change-Id: Id165cb558c21398c4d075f33f478d1ea5e03cf9e
Signed-off-by: Volodymyr Riazantsev <v.riazantsev@ti.com>
OMAP4470: div_ts_ck clock modified to be ready for 4470

Auto-generated code by LDC for div_ts_ck clock for 4470 add two new
field. In case HW was not changed we improve existing implementation
by adding this two field.

Change-Id: I1c6954c1d2c9f7699d5d3ebf31ab05d0ca9a2185
Signed-off-by: Vitaly Chernooky <vitaly.chernooky@ti.com>
OMAP4470: HDMI: Audio MCLK support for 4470

Add runtime checking during core audio configuration
to enable MCLK usage.

Change-Id: Ia8a3032c3fe5338980b7af98b4bd42ed814c715e
Signed-off-by: Leonid Iziumtsev <x0153368@ti.com>
ARM: OMAP4470: DSS: AVDAC removed

The access to AVDAC registes was removed for OMAP4470.

Signed-off-by: K.Shlyakhovoy <x0155534@ti.com>
Change-Id: I4c3aa87cae8b2775f7ff2043679fd2f054754c0d

Conflicts:
	arch/arm/mach-omap2/omap4_trim_quirks.c
OMAP4: PM: fix for "re-factor configuring pwrst setting"

The error has been admitted in merge branch 3ae032677.
The additional source code in function pwrdms_setup(...)
was added in patch "OMAP4: PM: Re-factor configuring pwrst
settings" commitId faa96477.

Change-Id: Ie0d5efbaa41e7b5eab361292d621b8fe98bd69ec
Signed-off-by: Eugen Mandrenko <ievgen.mandrenko@ti.com>
OMAP4430: i723 fix. Reconfigure ABE DPLL on early kernel init

Avoid crashes during warm reboot due to DPLL ABE not relocking.
Based on commit 9b3b50a2b381902710166f736110f81230ab931e
from branch p-android-omap-2.6.35.

Change-Id: I29a7694e5e35cabda98306a82c260fb0c3656a57
Signed-off-by: Andrii Tseglytskyi <andrii.tseglytskyi@ti.com>
rpmsg: omx: add return values to the pa to da convert function

This patch adds return values to the pa to da conversion function.
This will help in propagation of proper error codes to the calling
functions.

Change-Id: Ie547f7b7e7c51eff4b7998cbd336a61663995708
Signed-off-by: Subramaniam C.A <subramaniam.ca@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
OMAP4470: Memory timings fix for LPDDR2 466 MHz

Fixed memory timings for LPDDR2 466MHz according to
hardware recommendations.

Change-Id: I07e821c8fafc1b559b61a443083fc9c1acddc87a
Signed-off-by: Mykola Oleksiienko <x0174904@ti.com>
Initial Open Color format Definitions (OCD).

OCD is a set of Open Color format Definitions.  Color formats
are used in everything from BLTers to video codecs,
and from cameras to displays.  But although there are
plenty of common formats, the definition of the code specifying
them is never the same.

OCD attempts to solve this problem.  It provides logical color
format codes, and is extensible.

Change-Id: I21efada119207773c10f9b199b7a7ca0f1aa60d2
Signed-off-by: Rick Tillery <rtillery@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>