ARM: OMAP: id: Add missing break statement in omap3xxx_check_revision

Add missing break statement, which somehow got removed from
omap3xxx_check_revision function inside AM335x switch case,
resulting into wrong omap/cpu_rev configuration.
ARM: OMAP: io: Add check_revision/feature calls for am33xx_init
ARM: OMAP: am335xevm: Fix pruss clock alias error

Due to changes in clock tree the name of the clock has
changed, so TEMP create new alias entry for pruss.

NOTE: Revisit this commit/patch, based on final clock tree.
AM335x: Add option to configure CONSISTENT_DMA_SIZE

This is temporary workaround patch required for SGX model as it fails to
get DMA memory using get_free_pages. So patch configures CONSISTENT_DMA_SIZE
via configurable option FB_DA8XX_CONSISTENT_DMA_SIZE.

Signed-off-by: Manjunathappa, Prakash <prakash.pm@ti.com>
video:da8xx: Reverting patch to use dma_alloc_coherent instead
get_free_pages

Reverting "video:da8xx: Replace dma_alloc_coherent tp get_free_pages
(f482ac5b63e0fc84c546cb463e4dea5e02682516)" as SGX model fails do alloc
of DMA memory using get_free_pages. This patch is dependent on "AM335x:
Add option to configure CONSISTENT_DMA_SIZE" patch to increase
CONSISTENT_DMA_SIZE for successful allocation of memory >2MB.

Signed-off-by: Manjunathappa, Prakash <prakash.pm@ti.com>
ARM: OMAP: AM33XX: Disable self-refresh upon resume

During suspend, we put the SDRAM in self-refresh mode.
If we don't clear this mode in the resume path SDRAM
can automatically enter self-refresh when the CPU is idle.

While this looks to be right behavior, this causes flickers
on the LCD specifically on ICS. So, when coming out of
suspend disable self-refresh mode.

Signed-off-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
am335x: regulator: tps65217 fix for BeagleBone A3 and greater

This patch fixes the problem that tps65217B regulator support
is applicable only for BeagleBone A3 and greater. And tps65217B
regulator is not applicable for the BeagleBone's whose revision
verion is < A3

Signed-off-by: AnilKumar Ch <anilkumar@ti.com>
arm:omap:am33xx - drive Haptics motor using eHRPWM's sysfs interface.

Since Haptics doesn't have its own driver(yet), currently Haptics can
be tested using eHRPWM's sysfs interface.

This patch adds support for driving Haptics motor connected to
eHRPWM Instance 2 channel 2.

According to datasheet, the Haptic Motors Max RPM is 15000 RPM. Driving
the Motor above MAX RPM may spoil the Motor.
This patch limits the eHRPWM max freq to 250Hz. This can be changed
from platform data.

Signed-off-by: Philip, Avinash <avinashphilip@ti.com>
arm: omap: am335x: Add gpio entries in mux file

This pacth adds gpio in mode7 for all
the mux entries of am335x

Signed-off-by: Patil, Rachna <rachna@ti.com>
arm:omap:am335x:remove duplicated code in mux file

GPMC_CLK was declared twice, corrected the same

Signed-off-by: Patil, Rachna <rachna@ti.com>
arm: omap: am335x: corrected mmc1 pin mux naming

Signed-off-by: Patil, Rachna <rachna@ti.com>
PWM:eCAP: Reconfigure only if frequency has changed

PWM needs to be reconfigured during cpufreq transition
only if input clock frequency has changed. Change notifier
accrodingly.

This prevents flickering during cpufreq transitions. It is
suspected that as PWM frequency is set to a low value,
reconfiguring PWM is causing flicker observable to naked
eye. Irrespective of this fact, this change removes
unnecessary reconfiguration of PWM.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
arm:omap:am33xx - add missing i2c pin mus details

Add all references to i2c pins in mux file. These pins may be used in
different board configurations.

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
arm:omap:am33xx - add i2c2 hwmod data

i2c2 buss is used in beaglebone board. Add necessary i2c2 hwmod data

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
arm:omap:am33xx : register i2c2 for beaglebone

Beaglebone uses i2c2 to detect expansion cards. This patch registers
i2c2 device along with setting up pin-muxes

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
arm: omap: am33xx: update TSC hwmod data

Sysconfig register bits are updated for TSC
hwmod. TSC supports idle mode at bit position 2&3,
hence following omap4 IP's.

Signed-off-by: Patil, Rachna <rachna@ti.com>
ARM: OMAP: AM33XX: Keep the CLKDIV32K module enabled

One of the 32K clocks for the RTCSS is obtained from
CLKDIV32K module. Till the dependencies are fully sorted
out in the clock tree keep this module enabled.

Signed-off-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
arm:omap:am33xx: Check device features

Read device feature register and record features
on SOC. Currently only SGX is checked.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
arm:omap:am33xx: Register SGX device

If SGX is enabled in hardware (information obtained from
device feature register) register SGX platform device.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Revert "usb: musb_gadget: cppi41: Use pio for interrupt transfer"

This reverts commit fe055e40c74fb24d8d86aae49b0f9a15a25f388b.

This patch is breaking RNDIS ping test with XP PC.