ARM: omap4: tuna: Update gamma table for sm2 panel

Use a gamma table based on measurements of the reference panel
instead of the first panel we received.

Change-Id: I90f5f3b5994241a7ff4c3cf8a1842d1b7e71b7d0
Signed-off-by: Arve Hjønnevåg <arve@android.com>
OMAP4: SMC: Enable SMC default for tuna platform

This patch is to enable SMC driver  <Security Middleware Component>
as part of default configuration for tuna.

Change-Id: Icf0509a641d9b8e1ba5d75b1d621ab854e1c34cd
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Signed-off-by: Bryan Buckley <bryan.buckley@ti.com>
TUNA: Add panel dimensions to board file

This is needed for FB and DSSCOMP.

Change-Id: I1d659530ce262136d9d3fd44c7ab3e5a663b621a
Signed-off-by: Lajos Molnar <molnar@ti.com>
Revert "ARM: omap: tuna: Set OMAP_WAKEUP_EN to wlan irq pin"

This reverts commit 96eedbdd43bdb1bbe5cefb6c02d1fdb7b3ed844c.

The wlan wakeup issue is fixed by setting the GPIO as edge
detect instead of level only. That is addressed on the
previous GPIO patches. We don't need to set pad wakeup for
GPIOs that are in wakeup power domain. These GPIOs should
wake us up and not the control PAD.

Change-Id: I199914fb11434c7144b886165676582b48678114

Signed-off-by: Axel Haslam <axelhaslam@ti.com>
ARM: OMAP4: tuna: turn off IO wakeup on touch screen IRQ pin

The relevant non-wakeup GPIO block is clocked when a GPIO
is being actively used, on idle path, this implies that
these blocks don't need wakeup_en setup for waking up (since
the block is clocked), Since we configure wakeup event,
in addition to touchscreen GPIO IRQ, we also receive
control module's I/O event.

Turning off IO wakeup on touch screen IRQ pin can reduce
the redundant IO interrupts, especially when we hold the
touch screen GPIO.

Change-Id: I12aeb03a55d461d577225a1ca8ca31ae7fc42f26
Signed-off-by: Wenbiao Wang <wwang@ti.com>
Revert "ARM: OMAP4: tuna: set WAKEUPENABLE bit for power button"

This reverts commit 129387864d8c9296a43d4521829ae79f7e478cf4.

We don't need to set pad wakeup for GPIOs that are in wakeup power
domain. The wakeup GPIO block should wake us up and not the
control PAD. Since power button belongs to wakeup GPIO block,
revert the wakeup event on control PAD.

Change-Id: Ib5fcb43dafbf3c6f51c70253b34cb2d237f97d96
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
tuna: mfd: twl6030: Fix voltage reported for VBATMIN_THRESHOLD

Change-Id: Iea7b71f854fb9cccf51ad5b6869f0f60f5e16e07
Signed-off-by: Todd Poynor <toddpoynor@google.com>

Conflicts:
	drivers/mfd/twl6030-irq.c
tuna_defconfig: disable connection tracking on SIP

Apparently some SIP packets are disliked and are getting dropped.
For now, we just ignore connection tracking on SIP.

Change-Id: I3c3677bd63595fc214b767e17a31df9f970a870c
Signed-off-by: JP Abgrall <jpa@google.com>
OMAP: tuna: sensors: Configure YAS530 reset pin

RSTN pin should be set to high before it is initialized.
YAS530 was in unknown state as RSTN was not configured at any place.

Change-Id: I9a5ae2a56fd48cbe721105abb3c643ed596cbc6e
Signed-off-by: Jinkyu Song <jksong@sta.samsung.com>
TUNA: add nonsecure TILER carveout

Add a 32MB nonsecure TILER carveout to be used by framebuffer.

Change-Id: I4a0d739e7beb8d8e0fe9aed956f3697c78208337
Signed-off-by: Lajos Molnar <molnar@ti.com>
ARM: omap: tuna: enable/disable clk32kaudio for wlan

Wlan needs the clk32kaudio clk to be enabled for it
to function in low power modes. It has been observed
that during OFF mode if this clk is turned off, WLAN
will not wake up. We use the regulator framework to
enable and disable the clk32kaudio clk when WLAN is
turned ON/OFF.

Change-Id: I6662a67055000b167ec32bdd4df2ed9304a0a687
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
ARM: omap4: tuna: hold clk32kaudio for BT

BlueTooth needs the clk32kaudio clk to be on
to be able to work properly. This clock may go
off in OFF in off mode, and when the clk32kaudio clk
was introduce as a resource may go off when wlan
is switched off.

Turn on clk32kaudio clk if BT is on.

Change-Id: I1f4a5202978112eb49da0aa8035047cf73db5fc8
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
OMAP4: tuna: Add CLK32KAUDIO supply for TWL6040

TWL6040 requires an external 32kHz clock as the source for
the Low-Power PLL. Tuna device supplies that external clock
from TWL603O CLK32KAUDIO.

Change-Id: Ibbfabfa670ad3c9d311c14de935fdc388039fbf3
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
ASoC: Tuna: Enable/disable TWL6040 external 32kHz clock

TWL6040 requires an external 32kHz clock as a supply for its
Low-Power PLL. When TWL6040 enters into Sleep state, the
external 32kHz clock can be disabled and TWL6040 can use its
internal 32kHz oscillator instead. However, the internal
oscillator cannot be used for any multimedia usecases.

Change-Id: I14953138147fb0a7ee3ba960edd820e00b2503bb
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: Axel Haslam <axelhaslam@ti.com>

Conflicts:
	include/linux/mfd/twl6040-codec.h
	sound/soc/omap/sdp4430.c
ARM: omap4: tuna: Add support for POGO detection

Change-Id: Iaf0559b73f8a5c6f943350a8dc8350a40e63ab51
Signed-off-by: Adam Hampson <ahampson@sta.samsung.com>
Signed-off-by: Rom Lemarchand <rlemarchand@sta.samsung.com>
ARM: omap4: tuna: change adc range of 3 way buttons.

send-end key: 0 ~ 93
previous key: 94 ~ 198
next key:     199 ~ 370

Change-Id: I8279c25efe9b463a4786147bdbd86938c5a1a4e2
Signed-off-by: UK KIM <w0806.kim@samsung.com>
ARM: omap4: tuna: enable HDCP in defconfig

Change-Id: I2abcd9ef1bfdda355bef6f645cb607dca549f79e
Signed-off-by: Erik Gilling <konkers@android.com>
OMAP4: tuna: power: Update for battery temperature interface changes

Change-Id: I09c499a490f6cdd14de535f265d3bebb68199d58
Signed-off-by: Todd Poynor <toddpoynor@google.com>
ARM: omap2: tuna: Postpone wlan regulator_get() call till the driver init

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
OMAP: tuna: sensors: Added a correction matrix for soft iron effect

Yamaha provided a correction matrix for toro device, which has
soft iron effect around YAS530 compass part.

Change-Id: I858315de8c870e3b71385f804806b760a048911e
Signed-off-by: Jinkyu Song <jksong@sta.samsung.com>