ARM: OMAP5: ES1: hwmod_data: Move hwmod data files to *_es1

This patch is to duplicate hwmod data and other relative 54xx
data files and their headers.

This is a temporary patch to have both es1 and es2 hwmod data
in one baseline.

After ES2 wakeup .. this patch will be removed

and moving forward,only ES2 support will be continued on this
baseline

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Change-Id: Ibd018a10ffabc522ff049da0f9a8463742756d67
ARM: OMAP5430: hwmod data: update data files to take relevant header

This patch is to update the following data files to take equivalent
header for ES1.0 instead of header files for ES2.0

clock54xx_es1_data.c,clockdomains54xx_es1_data.c,
omap_hwmod_54xx_es1_data.c,powerdomains54xx_es1_data.c

This will help in cleaning up later when ES1.0 support has to be
removed

Change-Id: I557e1c294c34f050bd6eb6fd14fb36cfd04b7116
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
ARM: OMAP5: Introduce ARCH_OMAP5_ES1: To compile ES1.0 exclusively

This patch is to introduce ARCH_OMAP5_ES1.

Need to have ES1 hwmod data forked out from ES2.

As this is only temporary and will be removed post ES2
migration.

ARCH_OMAP5_ES1 usage is inherited from all sources, where
ARCH_OMAP5 is used to identify and compile the relevant code.

Change-Id: I4f90acde11287294bad4cef7bfec0486a3c94211
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
ARM: OMAP5: hwmod data: Introduce ES2.0 initial version

This patch is to introduce the initial version of
OMAP54XX ES2.0 hwmod data.

ES1.0 and ES2.0 co-existence in a combined version of data
source is complex to do. As the amount of changes especially
involved with L4PER moving into CORE domain.

Hence using the default supported version of hwmod as for
OMAP5430 ES2.0

This patch is generated with

Author: Benoit Cousson <b-cousson@ti.com>
git: omap_autogen
branch: omap5430_for_3.8
location: outputs/omap5430/2.0/android

Change-Id: I8751644ca34a25f67ce5484885663c1a36d803ff
[porting to p-linux-omap-3.4 integrated mainline]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
[Author of the hwmod tool for ES2.0]
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
omap: defconfig: Minimal temp defconfig to support OMAP5 ES1

Have temporary omap minimal defconfig to support OMAP5 ES1.0

Usage:

Default:
OMAP2+ , OMAP5 ES2.0 : omap2plus_defconfig
OMAP4 , OMAP5 ES2.0 : omap4plus_pm_min_defconfig

Temporary:
OMAP2+ , OMAP5 ES1.0 : omap2plus_temp_defconfig
OMAP4 , OMAP5 ES1.0 : omap4plus_pm_min_temp_defconfig

Note: Temporary defconfigs will be removed after OMAP5 ES2.0 wakeup

and p-linux-omap-3.4 will not support in future  OMAP5 ES1.0

Change-Id: Ife6fba52d32dd74f27888988b4fbea4a13897151
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
OMAP4: 4430SDP: Set TWL6030/6032 MSECURE bit

Set the TWL6030/6032 secure bit to allow access to the
RTC register.

Ported from:
   p-android-omap-3.0:2c5103a80 [Dan Murphy <dmurphy@ti.com>]

Change-Id: I4c9ec299c80b8d6d3bc611c301c5bc3a1c78eb8f
Signed-off-by: Riazantsev Volodymyr <v.riazantsev@ti.com>
OMAP4: 4430SDP: Change hardware name

Change hardware name to Android specific "OMAP4 Blaze board".
This name used by Android init process for find hardware-specific
init.rc file.

Based on k3.0 commit:
p-android-omap-3.0: 1904c0434c [Dan Murphy <dmurphy@ti.com>]

Change-Id: Ie9fc4e2bfa25f7d2a24b994e753efff1c473f1c0
Signed-off-by: Alexander Savchenko <oleksandr.savchenko@ti.com>
Keypad LED Driver:Port Keypad LED k39 driver to k3.4

Port Keypad LED k39 driver to k3.4.

p-android-omap-3.0: 3c4146823f [Dan Murphy <dmurphy@ti.com>]

Change-Id: Ief32f3d8064ffb92c25892c293b85e9c68efea4a
Signed-off-by: Alexander Savchenko <oleksandr.savchenko@ti.com>
cma3000_d0x: repairs compilation error

This patch fixes compilation error:

CC      drivers/input/misc/cma3000_d0x.o
drivers/input/misc/cma3000_d0x.c:91: error: expected ')' before 'uint'
make[3]: *** [drivers/input/misc/cma3000_d0x.o] Error 1
make[2]: *** [drivers/input/misc] Error 2
make[1]: *** [drivers/input] Error 2
make[1]: *** Waiting for unfinished jobs....
  CC      kernel/module.o
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....

Change-Id: I74120df8f1511179320ad8b1d7bd8cbd85bcbfef
Signed-off-by: Alexander Savchenko <oleksandr.savchenko@ti.com>
sfh7741: move proximity driver to the right place

Moving drivers/misc/sfh7741.c to
drivers/input/misc/sfh7741.c

Change-Id: Ia57f20265225fbdab843d32bd5374c75f984530a
Signed-off-by: Alexander Savchenko <oleksandr.savchenko@ti.com>
OMAP: Enabled ambient light sensor in defconfig

Enabled ROHM BH1780GLI ambient light sensor in
android_omap_defconfig.

Change-Id: I3ee712c5b0a38ef985b928106cd693a8d5eb5344
Signed-off-by: Alexander Savchenko <oleksandr.savchenko@ti.com>
bh1780: repairs compilation error

This patch fixes compilation error:
rivers/input/misc/bh1780gli.c:56: error: expected ')' before 'uint'
drivers/input/misc/bh1780gli.c: In function 'bh1780_init':
drivers/input/misc/bh1780gli.c:459: error: 'THIS_MODULE' undeclared (first use in this function)
drivers/input/misc/bh1780gli.c:459: error: (Each undeclared identifier is reported only once
drivers/input/misc/bh1780gli.c:459: error: for each function it appears in.)
drivers/input/misc/bh1780gli.c: At top level:
drivers/input/misc/bh1780gli.c:470: error: expected declaration specifiers or '...' before string constant
drivers/input/misc/bh1780gli.c:470: warning: data definition has no type or storage class
drivers/input/misc/bh1780gli.c:470: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'
drivers/input/misc/bh1780gli.c:470: warning: function declaration isn't a prototype
drivers/input/misc/bh1780gli.c:471: error: expected declaration specifiers or '...' before string constant
drivers/input/misc/bh1780gli.c:471: warning: data definition has no type or storage class
drivers/input/misc/bh1780gli.c:471: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
drivers/input/misc/bh1780gli.c:471: warning: function declaration isn't a prototype
drivers/input/misc/bh1780gli.c:472: error: expected declaration specifiers or '...' before string constant
drivers/input/misc/bh1780gli.c:472: warning: data definition has no type or storage class
drivers/input/misc/bh1780gli.c:472: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
drivers/input/misc/bh1780gli.c:472: warning: function declaration isn't a prototype
make[3]: *** [drivers/input/misc/bh1780gli.o] Error 1
make[2]: *** [drivers/input/misc] Error 2
make[1]: *** [drivers/input] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs...

Change-Id: Ie07ce81e3c57a54f5c94dceb7c166cead45a523e
Signed-off-by: Alexander Savchenko <oleksandr.savchenko@ti.com>
OMAP: 4430SDP: Enabled keypad led in defconfig

Enables support for keypad LEDs on the OMAP4430 SDP.

Change-Id: I79126ef99da01ddeacd87209359869b5653f3c27
Signed-off-by: Alexander Savchenko <oleksandr.savchenko@ti.com>
OMAP: Enabled CMA3000 accelerometer in defconfig

Enabled VTI CMA3000 Tri-axis accelerometer with I2C bus connection
support in android_omap_defconfig.

Change-Id: I00681fe645b58c58b9ef4a76b7ed7642e43fa9bb
Signed-off-by: Alexander Savchenko <oleksandr.savchenko@ti.com>
OMAP: Enabled proximity sensor in defconfig

Enabled SFH7741 Proximity sensor in android_omap_defconfig

Change-Id: I73e7d699e2a47a7849f09d6809979caa19446a4f
Signed-off-by: Alexander Savchenko <oleksandr.savchenko@ti.com>
OMAP: Enabled Synaptic TM12xx touchscreen in defconfig

Enabled Synaptic TM12xx touchscreen in android_omap_defconfig

Change-Id: Ia507cc11f91e3dd899dbbb47d546d99b67992d55
Signed-off-by: Alexander Savchenko <oleksandr.savchenko@ti.com>
OMAP4:Platform: Add OMAP44XX Tablet HDMI support

Adding HDMI support for OMAP44XX Tablet

The code is reused from board-4430sdp.c file,
author is Santosh Shilimkar <santosh.shilimkar@ti.com>.

Authors of HDMI support code are:
 - Mythri P K <mythripk@ti.com>, commit 9a901683
 - Tomi Valkeinen <tomi.valkeinen@ti.com>, commit 78a1ad8f

Change-Id: I50bd6d90901791c4cdae11f9ee5d5b5260cb3aed
Signed-off-by: Mythri P K <mythripk@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Volodymyr Mieshkov <volodymyr.mieshkov@ti.com>
ARM: OMAP4: Tablet: Add nfcwilink device initialization

This patch adds nfcwilink device initialization for
OMAP4 Tablet platform.

Change-Id: I52b805c3c96147d6190e63c219f5b174f196f8e0
Signed-off-by: Oleksandr Dmytryshyn <oleksandr.dmytryshyn@ti.com>
Merge branch 'p-linux-omap-3.4' into p-android-omap-3.4

* p-linux-omap-3.4:
  OMAP4: 4430SDP: Set TWL6030/6032 MSECURE bit
  omap: defconfig: Minimal temp defconfig to support OMAP5 ES1
  ARM: OMAP5: hwmod data: Introduce ES2.0 initial version
  ARM: OMAP5: Introduce ARCH_OMAP5_ES1: To compile ES1.0 exclusively
  ARM: OMAP5430: hwmod data: update data files to take relevant header
  ARM: OMAP5: ES1: hwmod_data: Move hwmod data files to *_es1

Conflicts:
	arch/arm/mach-omap2/board-4430sdp.c

Change-Id: I5cb01a4cfb943f7b32a0187c9f9e79c216cc3385
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
android_defconfig: OMAP5: Have seperate defconfig for ES1 and ES2

ARCH_OMAP5_ES1 depends on ARCH_OMAP5

ARCH_OMAP5_ES1 differs in selecting hwmod data files

clock54xx_es1_data.c clockdomains54xx_es1_data.c cm1_54xx_es1.h
cm2_54xx_es1.h cm-regbits-54xx_es1.h omap_hwmod_54xx_es1_data.c
powerdomains54xx_es1_data.c prm54xx_es1.h prm-regbits-54xx_es1.h

instead of the regular data files in same location

Usage:
For OMAP54XX ES1.0 : arch/arm/configs/android_omap5_es1_defconfig
For OMAP54XX ES2.0 : arch/arm/configs/android_omap_defconfig

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