OMAP3: HS: No Recovery From Warm Reset While In Off Mode

i537: A deadlock situation occurs if a warm reset occurs during Off
mode or after wakeup from Off but before the ROM code execution is
complete on an HS device.

Workaround: If sys_nreswarm is used as an OMAP input and is potentially
asserted while OMAP is in Off mode then the only way to recover is to
generate a power on reset. This can be programmed in the warm_reset
sequence if the TWL4030/5030 PMIC is used.

This patch modifies the warm reset sequence accordingly.  It also
corrects the delay in the All resource step to match that indicated in
the document "Configuring TWL5030 for Warm Reset Sequences" (SWCA082).

Change-Id: Idb26c44ec9e72411244966d8d2fd57a535641355
Signed-off-by: Steve Schefter <sschefter@ti.com>
Signed-off-by: Deepak Muddegowda <x0171695@ti.com>
OMAP3: GFX_FIFO_UNDERFLOW during DVFS on L3

reffered patch : http://review.omapzoom.org/#/c/13833/

Change-Id: I8360793cc2820094284eb4b378b3966c00ad306b
Signed-off-by: mbeckius <mbeckius@windriver.com>
Signed-off-by: Steve Schefter <sschefter@ti.com>
Signed-off-by: Deepak Muddegowda <x0171695@ti.com>
OMAP3: PLL: Modified min FCK per PCK in defconfig

Fine tuned the DSS_MIN_FCK_PER_PCK value to adjust dsi
fclk value for supporting video downscaling.

Change-Id: If4fc1c7bf028628f504c1daf011bead52fe8ea71
Signed-off-by: JOSEPH THOMAS <x0120311@ti.com>
OMAP3: CAMERA: Fix for crash in v4l2-ioctl

Crash was due to the missing arugment in function vidioc_default(). Added the required argument for the called function,
which matches with the function call.

Change-Id: I508c519a3cee37a41cdbe38f2749c6bbb8f7ad2f
Signed-off-by: Kirti, Badkundri <x0172620@ti.com>
OMAP3: ISPRESIZER: Added OMAP3_ISP_RESIZER_ON_720P_VIDEO flag in android_zoom3_defconfig

Change-Id: Iaaf20b465b1f71a1a0e64a0c8b5ed5d474968072
Signed-off-by: x0175457 <x0175457@ti.com>
OMAP3: ISPRESIZER: ISP Resizer changes for 720p Video playback

Added support for resizing through ISP for 720p Video playback instead of
DSS Resizer.
Configure ISP resizer usage through sysfs entry

Change-Id: I49f9968b9367daeca06c58f2bf191fa09c33fde0
Signed-off-by: x0175457 <x0175457@ti.com>
OMAP3: ISPRESIZER: Added OMAP3_ISP_RESIZER_ON_720P_VIDEO in Kconfig of dsscomp

1. Added OMAP3_ISP_RESIZER_ON_720P_VIDEO in Kconfig of dsscomp
2. Changed dsscomp makefile to compile dsscomp_ispresizer.c

Change-Id: Ie8f3c2f0431f4db2dd3c72cd45f0ded5f8fb5341
Signed-off-by: x0175457 <x0175457@ti.com>
OMAP3: Added VRFB support for video rotation

Added the required functions acquiring, using & freeing VRFB contexts.
Changed rotation type from DMA to VRFB.
Modified DSSCOMP to use acquired VRFB contexts for rotation of video.

Change-Id: Iab5c752084b0c907b14c82c3803ee3c9bd77f826
Signed-off-by: Raghavendra Rayadurga <x0171697@ti.com>
OMAP3: PVR: DDK version updated to 1.8@785978

DDK-PVR-UM has been migrated to beta version 1.8@785978, hence modified
PVR-KM version to match with the UM.

Change-Id: Ia75016b8611e82b0f77b794a811c8a281182d786
Signed-off-by: JOSEPH THOMAS <x0120311@ti.com>

Conflicts:

	drivers/gpu/pvr/pvrversion.h
OMAP3: DVFS:(iva) Enabled 660MHZ and 800MHZ for dpll2_ck(iva) in opp table

Change-Id: I892c1a80388d9663d7a774e4aabc607d24d74e96
Signed-off-by: pradeepd <x0172708@ti.com>
OMAP3: DVFS: Enabled 800 MHz and 1Ghz for dpll1_ck in OPP table

Change-Id: Ic4b785d3302cf1147b482c015c87f48b4a77b9d6
Signed-off-by: Deepak Muddegowda <x0171695@ti.com>
OMAP3 : DVFS: Defined round_rate and set_rate function for l3_ick clock

Defined the round_rate and set_rate function for l3_ick clock
which will be called during the l3 frequency transitions.

If we use dpll3_m2_ck clock in OPP table then we have to multiply
the rates with l3_div factor, because dpll3_m2_ck will run at
200MHz and 400MHz which is a not a proper implementation.

Change-Id: Ie5adf3c6e6ba9a7922d665b83e79092e07485da0
Tested-by: Deepak Muddegowda <x0171695@ti.com>
Signed-off-by: Deepak Muddegowda <x0171695@ti.com>
Signed-off-by: Ambresh K <ambresh@ti.com>
OMAP3: DVFS: Using the l3_ick for core in OPP Table

Instead of using dpll3_m2_ck to scale core between opp50 and  opp100,
use l3_ick clock reference in table.

Change-Id: Ifb1762a84c9db19297c1d910b97918d504f355d1
Tested-by: Deepak Muddegowda <x0171695@ti.com>
Signed-off-by: Deepak Muddegowda <x0171695@ti.com>
Signed-off-by: Ambresh K <ambresh@ti.com>
OMAP3 : added support for invalidate all cache

added PROC_WRBK_INV_ALL support to invalidate all cache

Change-Id: I121bdcd4013517da96b7d312a09c8d292b661c66
Signed-off-by: pradeepd <x0172708@ti.com>
OMAP3: Removing unnecessary default machine configs in defconfig

Change-Id: I14188a9b5ce23e4da25706850e1308e5d0050626
Signed-off-by: Deepak Muddegowda <x0171695@ti.com>
OMAP3: Disabling DEBUG_LL in android_zoom3_defconfig

Change-Id: Icdde47567b1de2cf556a4446321e6a2e448a392a
Signed-off-by: Deepak Muddegowda <x0171695@ti.com>
OMAP3: USB-EHCI :Work Around for errata i464

Workaround for EHCI suspend-resume and suspend-remote-wakeup

We need to halt the EHCI controller before clearing the resume bit.
This allows the local and global framecounters to be synced up. The
controller is unhalted immediately after clearing the resume bit in
PORTSC_i.

This covers both suspend-resume and suspend-remote-wakeup cases

reffered patch : http://review.omapzoom.org/#/c/1293/1

Change-Id: I912d261ec9c9b7cf162dda7d96dbcb5d42ed78cd
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Signed-off-by: Deepak Muddegowda <x0171695@ti.com>
OMAP3: GPIO: Fix for GPIO glitches in GPIO outputs during off-mode

Fix for Errata ID: i468, When OMAP is entering or exiting the system OFF mode,
a spurious transition may occur on the pads internally muxed to a GPIO.

To overcome this implemented save and restore pad configuration.

Change-Id: I9b4e2dfa0043f73d4d16dde24ac27abb7bad0f9a
Signed-off-by: Raviraj N. Somnache <x0172606@ti.com>
OMAP3: PM: Adding iva2_pwrdm check to avoid conflict between PM and bridge.

Bridge pm handles dsp hibernation hence sleep switch is performed for IVA
which is not necessary in omap_set_pwrdm_state(). This causes conflict
between PM and bridge hence adding iva2_pwrdm check to avoid conflict
between PM and bridge.

Change-Id: Idf45b573235fc46577e3c8301003681d06cadf7c
Signed-off-by: Raviraj N. Somnache <x0172606@ti.com>
OMAP3:WLAN:Fix for WEP and TKIP connection.

Change-Id: Ic277592bf3eb3c5fc93bebb8a0b9e3eff6fcd90e
Signed-off-by: Ravichandra <x0172623@ti.com>
Signed-off-by: bharath <x0172602@ti.com>