OMAP4: 4430SDP: Set maximum brightness on init

This patch provides init brightness control with correct value.

Based on commit:
p-android-omap-3.4: 7daa2235af [Dan Murphy <dmurphy@ti.com>]

Change-Id: I5af8749d330ae8799320dbe751f7e913e0dd9cd1
Signed-off-by: Alexander Savchenko <oleksandr.savchenko@ti.com>
OMAP4:HDMI: Support for omap44xx HDMI

Enabling 48Mhz clock for omap44xx before reading EDID.

Change-Id: I25751797a3a25bf2588b77b35cb7919f2b8b553c
Signed-off-by: Vadym Shovkoplias <shovkoplias.vadym@ti.com>
Signed-off-by: Volodymyr Mieshkov <volodymyr.mieshkov@ti.com>
OMAPDSS: invoke dsscomp callbacks for manually updated displays

This allows callback states logic to correctly handle
DSS_COMPLETION_RELEASED state.

Change-Id: If7446a58f9e5c565eef981646b73b5e8c3192cb6
Signed-off-by: Sergiy Kibrik <sergiy.kibrik@globallogic.com>
MUSB: Disable PING for control ep in OTG host mode

We are observing that USB 3.0 hub is not supporting PING request
from OTG host device as a result it fails to enumerate. Disable
PING packet in OTG Host mode for control ep and we dont see this
issue any more. We analyzed traffic between a USB2.0 PC host and
the USB3.0 device and observed that the host does not send PING
packets during enumeration. Turning off PING packets in the OTG
host for control ep resolves this issue. Although we observed
this on a USB 3.0 hub, the issue could be there with other
USB 2.0/3.0 devices if they dont support PING protocol

Ported from:
p-android-omap-3.4: 1aaa162637 [Huzefa Kankroliwala <huzefank@ti.com>]

Change-Id: I39bd700ca2faf1f2eb11b19217f27a4c47ef8a31
Signed-off-by: Huzefa Kankroliwala <huzefank@ti.com>
Signed-off-by: Ruchika Kharwar <ruchika@ti.com>
Signed-off-by: Alexander Savchenko <oleksandr.savchenko@ti.com>
ARM: OMAP4+: Configure lowest achievable powerstate of powerdomains

Program powerstates of powerdomains to the lowest power state
allowed by spec. This lowest powerdomain is either OFF or OSWR.

Change-Id: I4a0e956374c59f04d8524f487897f99383c17ead
Signed-off-by: Mahesh Renduchintala <mahesh@ti.com>
OMAP4: 4430SDP: Invoke board-props init call

Invoke board properties initialization call for create
appropriate sysfs entry for OMAP44XX 4430SDP platform.

Based on commit:
p-android-omap-3.0: 6ce9d6b2ec [Dima Zavin <dima@android.com>]

Change-Id: Ibbac45e2ad30289d321f9b8015414a278f77c8e7
Signed-off-by: Alexander Savchenko <oleksandr.savchenko@ti.com>
OMAP4+: android: persistent ram: description initialization

Ram console driver was ported from k3.0, but implementation of the
driver has changed. The structure persistent_ram that describes
persistent ram should be initialized. Also memory reservation
is done by persistent ram driver inself.

Change-Id: I3b1f9accbce7e5643d097293ae29c3d0d9fd9f6d
Signed-off-by: Oleksandr Kozaruk <oleksandr.kozaruk@ti.com>
OMAP4: board: enable android ram console

This patch will enable support for android ram console on:

* Blaze and Blaze tablet
* Panda4
* 4430SDP

This allows saving the kernel printk messages to a buffer in RAM, so
that after a kernel panic they can be viewed in the next kernel
invocation, by accessing /proc/last_kmsg

Change-Id: Iacce386a287cbeb3316a2cff6c7716770597fd1b
Signed-off-by: Huzefa Kankroliwala <huzefank@ti.com>
Signed-off-by: Akash Choudhari <akashc@ti.com>
Signed-off-by: Ameya Palande <ameya.palande@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
[oleksandr.savchenko@ti.com: port from K3.0]
Signed-off-by: Alexander Savchenko <oleksandr.savchenko@ti.com>
Merge branch 'p-linux-omap-3.4' into p-android-omap-3.4

* p-linux-omap-3.4:
  ARM: OMAP4+: Configure lowest achievable powerstate of powerdomains
  MUSB: Disable PING for control ep in OTG host mode
  OMAP4: 4430SDP: Set maximum brightness on init

Change-Id: Iea8190676116d518be9abd95a74465710c420f94
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
mfd: twl6030: add support for power resources

TWL6030 resources are designed to be used with multiple processors
we should ideally be able to describe the way the board is wired up.

The default configuration which is almost universally used is to
connect TWL6030 only to Application Processor(example: OMAP4430/4460)
and the request lines for 2(a,b,c) and 3 are completely unused.

This patch adds ability to manage the power resources of the
TWL6030.

Change-Id: I1a099577bca3c73d0332259b0f15b4bdd9633457
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Ambresh K <ambresh@ti.com>
Signed-off-by: Baek.Kyung-Han <wildtaz.sec@gmail.com>
[oleksandr.dmytryshyn@ti.com: ported from K3.0]
Signed-off-by: Oleksandr Dmytryshyn <oleksandr.dmytryshyn@ti.com>
ARM: OMAP4: twl-common: Move common board data to "twl-common.c"

Move common platform initialisation data for regulators (vaux1,
vusim) and madc from separate board files (board-4430sdp.c,
board-44xx-tablet.c) to common file "twl-common.c".
Board file "board-omap4panda.c" doesn't contains init data for
this regulators because they are not used in panda board.

Regulator vaux1 provides consumer supply "vmmc" in
blaze/tablet boards.

Change-Id: I7b09244884e189184ec4379adf5ce88fcbef40ad
Signed-off-by: Oleksandr Tyshchenko <oleksandr.tyshchenko@ti.com>
ARM: OMAP4: twl-common: Add board data for common resources

Added platform initialisation data for resources: sysen,
clk32kaudio and regen1. This resources is common resources
for TWL6030 and TWL6032 PMIC.

Change-Id: Ic58eaf2f2b6be3eafe195d208cac438d7551603c
Signed-off-by: Volodymyr Riazantsev <v.riazantsev@ti.com>
[oleksandr.tyshchenko@ti.com: ported from K3.0]
Signed-off-by: Oleksandr_Tyshchenko <oleksandr.tyshchenko@ti.com>
ARM: OMAP4: PM: Add support for OMAP4470 power supplier scheme

Added support for OMAP4470 power supplier scheme.  TWL6032 used
as PMIC for OMAP4470 based SOMs.  It has different LDO and SMPS
regulators. Added board data for correct initialization TWL6032
regulators.

Change-Id: Iccc8f84189ca4edf9a659588d946a69d36fa83de
Signed-off-by: Volodymyr Riazantsev <v.riazantsev@ti.com>
[oleksandr.tyshchenko@ti.com: ported from K3.0]
Signed-off-by: Oleksandr Tyshchenko <oleksandr.tyshchenko@ti.com>
Regulator: TWL6032: Add external regulator V2V1

In TWL6030 reference design V2V1 rail is supplied
by internal V2V1 SMPS.
But TWL6032 doesn't have suitable internal
regulator to supply V2V1 rail, so external one
is used. It is controlled by TWL SYSEN signal.

External V2V1 regulator is board specific and
normally should be defined in board file.
But there are a few requirements which prevents
the right way:
1) External regulator is controlled by SYSEN,
   so it should be registered after SYSEN
   regulator.
2) It supplies a few other TWL6032 regulators
   (LDO6 and LDOLN), so it should be registered
   before them.

This patch adds regulator V2V1 for TWL6032
which represents external regulator.

Change-Id: Iea1ed8b2f74a7b24e567ec326ced222c9f8eb271
Signed-off-by: Oleksandr Tyshchenko <oleksandr.tyshchenko@ti.com>
ARM: OMAP4: twl-common: Add external regulator V2V1 configuration

Added platform initialisation data for
external regulator V2V1.

In reference design board on TWL6032 PMIC
this regulator supplies the regulators
LDO6 and LDOLN and it is generated outside
PMIC from external regulator (supplement to
PMIC), which is controlled by a signal
SYSEN from PMIC.

          TWL6032
        +----------+         EXT REG
        |          | SYSEN  +-------+
        |    SYSEN |------->| EN    |
        |          | V2V1   |       |
        |  LDO6_IN |<-+-----| OUT   |
        | LDOLN_IN |<-+     +-------+
        |          | VCXIO
        |     LDO6 |--------->
        |          | VDAC
        |    LDOLN |--------->
        +----------+

Change-Id: I0a765fa803a522bbff04d6911b7d77a12cd38a6f
Signed-off-by: Oleksandr Tyshchenko <oleksandr.tyshchenko@ti.com>
mfd: twl-core: Make CLK32KG common for TWL6030/32

CLK32KG resource is present in both TWL6030 and TWL6032,
so move it to common registration.

Change-Id: I15aaf492fd9d44a36199e6756fcb183f38265a94
Signed-off-by: Riazantsev Volodymyr <v.riazantsev@ti.com>
Merge branch 'p-linux-omap-3.4' into p-android-omap-3.4

* p-linux-omap-3.4:
  mfd: twl-core: Make CLK32KG common for TWL6030/32
  ARM: OMAP4: twl-common: Add external regulator V2V1 configuration
  Regulator: TWL6032: Add external regulator V2V1
  ARM: OMAP4: PM: Add support for OMAP4470 power supplier scheme
  ARM: OMAP4: twl-common: Add board data for common resources
  ARM: OMAP4: twl-common: Move common board data to "twl-common.c"
  mfd: twl6030: add support for power resources

Conflicts:
	arch/arm/mach-omap2/board-44xx-tablet.c

Change-Id: I34787f6020b5931aa29bff01b35d85c18f5bf244
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>