ARM: omap4: tuna: emif: provide self-refresh timing

Define timing for Tuna DDR to be in a safe value which
is recommended to be 16 DDR clk cycles.

Change-Id: Id840d67d497cc60c5984db18638dde1ad96b2543
Signed-off-by: Gilles-Arnaud Bleu-Laine <gilles@ti.com>
ARM: omap4: tuna: emif: increase memory self refresh idle time

Increase the emif idle time before putting the memory into self
refresh from 80 ns to 5.12 us (2048 ddr cycles @ 400 MHz) when
the memory is at full speed.  The lower idle time causes
significant performance issues.

Change-Id: Idb49b93c4b33d260b8a20e866b2eb33e75342232
Signed-off-by: Colin Cross <ccross@android.com>
ARM: omap4: tuna: emif: use device level self refresh timing

Use a single self refresh time param for the entire device.

Increase selfrefresh time to 262144 cycles from 2048.

Change-Id: Iaac85c50a4fdacc228f955e650e096919c33fb27
Reported-by: Vinay Amancha <vinaykumar@ti.com>
Reported-by: Vinay Chaurasia <vinaych@ti.com>
Signed-off-by: Girish S G <girishsg@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
ARM: omap4: tuna: Invert power button

Power button is active high

Change-Id: I6fd1ac8bce355979ab51086d0169fb9ed94c5a0f
Signed-off-by: Colin Cross <ccross@android.com>
ARM: omap4: tuna: Add support for Tuna lunchbox volume keys

Change-Id: I72b77f51103ad406e59c0bf6b80ec2c00188d0dc
Signed-off-by: Colin Cross <ccross@android.com>
ARM: omap4: tuna: enable MMS touchscreen

Change-Id: Ib0225e3c1db788e68bdc357fee4ab41e319a7735
Signed-off-by: Colin Cross <ccross@android.com>
ARM: omap4: tuna: Move TOUCH_EN gpio for post-lunchbox tunas

Change-Id: I2298332c8889df10f017a8fad913b26e2149d6f6
Signed-off-by: Colin Cross <ccross@android.com>
ARM: omap4: tuna: update platform data for new touch fw

Change-Id: Icdf3876c935d715b9e42f43042ca3cc6cf0b0721
Signed-off-by: Dima Zavin <dima@android.com>
ARM: omap4: tuna: add pinmuxing support for touch fw flash

Change-Id: I1bd34c61c73803757a6539df9975d98800031fac
Signed-off-by: Dima Zavin <dima@android.com>
ARM: omap4: tuna: fix build due to renamed struct

Change-Id: If4376d9bad49af2b9baa7c835941692fab002b5c
Signed-off-by: Dima Zavin <dima@android.com>
ARM: omap4: tuna: update board support for touch fw reflash

Changed the way we dynamically mux the pins to make sure they
work after initialization is done (omap_mux_init_XXX get
discarded after init).

Change-Id: If810e3311a15d5a6a2caff59469b1f7c6cd092b4
Signed-off-by: Dima Zavin <dima@android.com>
ARM: omap4: tuna: Remove prelunchbox touchscreen and volume buttons

Change-Id: I21820aac5632225e59075fbf610a0b8a048bddc8
Signed-off-by: Colin Cross <ccross@android.com>
ARM: omap2: tuna: ensure that touch irq can wake from oswr

Change-Id: I9254efe4a1f9824864a1393ddad2f33b05d99c8a
Signed-off-by: Dima Zavin <dima@android.com>
ARM: omap4: tuna: Set power button as wakeup

By default buttons are not wakeup anymore
we have to set the no_suspend flag so gpio_event
driver will set power button as wakup.

Change-Id: Ie337be68284bf286de058bcd2ee493dd64f2f6d1
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
ARM: omap4: tuna: specify the touch fw filename based on panel_id

The bootloader provides a panel_id to specify which display/touch
panel hardware board is in the device. Use that info to select the
correct touch firmware.

Change-Id: I913c0da85a71e3bc6d644029b38232771e17f7c7
Signed-off-by: Dima Zavin <dima@android.com>
ARM: omap4: tuna: configure volume keys as wakeup capable

Change-Id: Ib4dbe45749ef6c93eefff0d21efcc674afa401f7
Signed-off-by: Simon Wilson <simonwilson@google.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>
ARM: omap4: tuna: Add debounce time for power and volume keys

Change-Id: I8c7cd2e8c2f406e020e5c503c04ec21ff17befb1
Signed-off-by: tyoony <tyoony.yoon@samsung.com>
ARM: omap4: tuna: change key debounce time to 2ms

Change-Id: Id22f726d7b74182663b0ca81bef1696f972bde2a
Signed-off-by: tyoony <tyoony.yoon@samsung.com>
ARM: omap4: tuna: Add new panel_id to specify touch firmware

Change-Id: I0f0c587f02e25931f86c2da5f173fe720d8541f6
Signed-off-by: tyoony <tyoony.yoon@samsung.com>