tuna: 11 MB framebuffer is really enough
ARM: OMAP4: omap-twl: Fix setting VSEL code for max_voltage

Errata ProDB00121179 says voltage overshoot may occur if
switch from DVS to non-DVS ranges on TWL6032.
 - DVS range VSEL codes     0x01-0x39
 - non-DVS range VSEL codes 0x3A-0x3E

Max_volt settings (1.418V) were converted to VSEL=0x3A.
This VSEL code is in non-DVS range while all other codes
are in DVS range. Thus using this code leads to voltage
overshoot due to errata.
Now max_volt 1.418V is converted to code VSEL=0x39
which corresponds to 1.417960V and is in the safe range.
The voltages higher than 1.418V aren't used for both 6030 and 6032.
Thus replacing VSEL code 0x3A by 0x39 does not impact performance.
If used SMPS_OFFSET=0 (default only for twl6030 es1.0 and
is not used on twl6032) the max voltage of 1.35V is
recalculated to VSEL=0x3A and is not affected by the patch.

Change-Id: I5e992be09899f520c1635fe3c268cbfdedc4caf4
Signed-off-by: Oleg_Kosheliev <oleg.kosheliev@ti.com>
OMAP4: DPLL cascading: remove unused CM_SHADOW_FREQ_CONFIG2

The value from CM_SHADOW_FREQ_CONFIG2 can't be applied because
GPMC is always active and can't be entered in idle state.

The GPMC is always active because on OMAP4, CPU accesses on
unmapped addresses are redirected to GPMC by L3 interconnect.
CPU is speculative nature and such accesses are possible which
can lead to indirect access to GPMC and if it's clock is
not running, it can result in hang/abort on the platform.
See path d60565948468b for more information.

Change-Id: Ia62d8bf8c59ac3a06445b6f5f9e08ad0c9369c5b
Signed-off-by: Eugen Mandrenko <ievgen.mandrenko@ti.com>
OMAP4: EMIF: code cleanup and clarification

Removed unused fields of emif_regs structure and
functions that initialize or change them.

Also changed few names of emif_regs members
to match register names.

This made the code easier to understand and read
as well as made it a little bit faster

Change-Id: I0485a01b7f03e922b5a2e69bfb03c2ed941fcf3b
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
OMAP4430/60: EMIF: errata: Prohibit usage of Power-Down mode

A ZQ calibration long command is issued every time on exit
from active power-down and precharge power-down modes
when EMIF is configured to use Power-down mode
(EMIF_PWR_MGMT_CTRL.REG_LP_MODE=0x4).

Due to very short periods of power-down cycles, ZQ calibration
overhead creates bandwidth issues and increases overall system
power consumption.

As result, the guideline is to not allow Power-down mode and,
therefore, to not have set the
EMIF_PWR_MGMT_CTRL[10:8] REG_LP_MODE bit field to 0x4.

TI Errata i743; IMPACTED: OMAP4430/60 all revisions

Change-Id: Ib82f28e6e0c6c046ea277b90a78dc82c1ee82417
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Vitaly Chernooky <vitaly.chernooky@ti.com>
OMAP4: EMIF: LPDDR interface configuration update

In latest TRMs for OMAP4 family LPDDR recommended
setting have been changed. This patch does
corresponding changes in the code.

Change-Id: Ibd81b8196db74df5a7c3e29788c72a7b3628a22c
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>