ARM: ux500: cpuidle_dbg: Remove unused debug code

Remove debug code that has not been used for a long time.

ST-Ericsson Linux next: ER338824
ST-Ericsson ID: ER338876
ST-Ericsson FOSS-OUT ID: Trivial

Change-Id: I9c2e977c4d61d1909cfd832085110a47423f7962
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23623
Reviewed-by: QATEST
Reviewed-by: Rickard ANDERSSON <rickard.andersson@stericsson.com>
u5500: add all clocks to debug

ST-Ericsson Linux next: -
ST-Ericsson ID: WP332185
ST-Ericsson FOSS-OUT ID: Trivial

Change-Id: Icf952ee5c34f1149da11fbb2c95dd99ff9a35627
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23970
Tested-by: Rabin VINCENT <rabin.vincent@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Reviewed-by: QATEST
Reviewed-by: Mattias NILSSON <mattias.i.nilsson@stericsson.com>
mach-ux500: Regulator: ExtSupply3LPn in Low Power

This patch set the ExtSupply3LPn in Low Power mode at startup.
ExtSupply3LPn can control the ExtSmps4 and ExtSmps3.
On HREF the ExtSupply3LPn is configured to not control ExtSmps3,
only ExtSmps4.

ST-Ericsson ID: ER337978
ST-Ericsson Linux next: na
ST-Ericsson FOSS-OUT ID: Trivial

Change-Id: I793209c7ed104199976c5d35858058e9a49eae16
Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23944
Reviewed-by: QATEST
Reviewed-by: Martin PERSSON <martin.persson@stericsson.com>
Reviewed-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com>
hwmon: lsm303dlh_m: Fix ifdefs

ST-Ericsson Linux next: Not tested, ask SSM for ER
ST-Ericsson ID: -
ST-Ericsson FOSS-OUT ID: Trivial

Change-Id: I085ff9f7e54491b6dde56c956dada8ebd6c7d8a1
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23698
hwmon: lsm303dlh_a: Fix ifdefs

ST-Ericsson Linux next: Not tested, ask SSM for ER
ST-Ericsson ID: -
ST-Ericsson FOSS-OUT ID: Trivial

Change-Id: Ia2cdb2cde8f0baffe5b8f5847754780068153d9e
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23697
hwmon: l3g4200d: Fix ifdefs

ST-Ericsson Linux next: Not tested, ask SSM for ER
ST-Ericsson ID: -
ST-Ericsson FOSS-OUT ID: Trivial

Change-Id: Ie228d5ac6533ff74d103a79ef379137428e92652
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23696
regulators: Added get_optimum_mode on regulators with idle mode

With this change, Vtvout, Vintcore12, Vaux1, 2 and 3 regulators
support DRMS (Dynamic Regulator Mode Switching) which will
dynamically handle requests for max current consumption from
several consumers and select a suitable regulator mode.

ST-Ericsson Linux next: N/A
ST-Ericsson ID: CR339486
ST-Ericsson FOSS-OUT ID: Trivial

Change-Id: Icdaed40df47859eb3e9701da296a814b38a48b56
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23859
Reviewed-by: Mattias WALLIN <mattias.wallin@stericsson.com>
Reviewed-by: QATEST
ARM: ux500: Update suspend GPIO force comments

Update the comments for the GPIO force code.

ST-Ericsson Linux next: -
ST-Ericsson ID: ER342202
ST-Ericsson FOSS-OUT ID: Trivial
Signed-off-by: Rickard Andersson <rickard.andersson@stericsson.com>

Change-Id: Iaacb204a588ded1928b26823c57fca82289ab959
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24070
Tested-by: Rickard ANDERSSON <rickard.andersson@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
arm: ux500: common dbx500 prcmu driver api

This patch updates the PRCMU driver API to be the same
(as far as possible) in U8500 and U4500.

- <mach/prcmu-fw-api.h> has been renamed <mach/prcmu.h>.
- The platform specific APIs have moved to <mach/prcmu-db5500.h>
  and <mach/prcmu-db8500.h> (but these should not be directly
  included).
- The PRCMU QoS API has been put in <mach/prcmu-qos.h>.

ST Ericsson ID: 334772
ST Ericsson FOSS-OUT ID: trivial
ST Ericsson Linux next: 318371

Change-Id: I6ce117ec35ebf2e987178ccacce09afb554d2736
Signed-off-by: Mattias Nilsson <mattias.i.nilsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23863
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
ab8500-gpio: Allow initial configuration of GPIO registers

Allows the setting of the initial GPIO direction & pullup registers.

ST-Ericsson Linux next: Ported & patch created
ST-Ericsson ID: 334609
ST-Ericsson FOSS-OUT ID: Trivial

Change-Id: I676ed8129a96a2fe41865117e4c864edc09d01ce
Signed-off-by: Chris Kimber <chris.kimber@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23339
Reviewed-by: Andrew LYNN <andrew.lynn@stericsson.com>
lsm303dlh: adding functions under CONFIG_SENSORS_INPUT_DEVICE

Functions that are called only when CONFIG_SENSORS_INPUT_DEVICE is
enabled are put under the same switch

Change-Id: If652e8ab2ca0d3482d24145bb5d908f5dbacf965
Signed-off-by: Chethan Krishna N <chethan.krishna@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23882
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
cryp: Session handling for software context

 - Add a session id to the software crypto context in ux500 crypto
   driver.

 - Add a static global session id which is a counter that increases when
   a new job is started (it is ok that this variable loop back to
   zero when it reach the maximum value).

 - These session id's will be used to decide if the hardware registers
   needs be restored or not for continous jobs. As a result we gain
   performance when we don't need to restore hardware registers.

ST-Ericsson ID: 342659
ST-Ericsson Linux next: Not tested, ER 320876
ST-Ericsson FOSS-OUT ID: Trivial

Change-Id: I1a1f508e9969e438204d1b4a803f1d637c1e0d60
Signed-off-by: Joakim Bech <joakim.xx.bech@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24019
Reviewed-by: QATOOLS
Reviewed-by: QATEST
Reviewed-by: Berne HEBARK <berne.hebark@stericsson.com>
ux500: mcde: Use 24 bpp overlay for HDMI

This patch will change the framebuffer bpp from 16 to 24.

ST-Ericsson ID: 326691
ST-Ericsson Linux next: Not tested, ER 282779
ST-Ericsson FOSS-OUT ID: Trivial

Change-Id: I094c3845803f4c969b0f19bdae007aa85bebd495
Signed-off-by: Jimmy Rubin <jimmy.rubin@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23411
Reviewed-by: QATOOLS
Reviewed-by: QATEST
Reviewed-by: Per-Daniel OLSSON <per-daniel.olsson@stericsson.com>
Reviewed-by: Marcel TUNNISSEN <marcel.tuennissen@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
U5500: Add support for PLL and EPOD Power mgmt

PLL and EPOD support added in PRCMU driver
Regulator and clock framework driver updated

ST-Ericsson Linux next: -
ST-Ericsson ID: WP334772
ST-Ericsson FOSS-OUT ID: Trivial

Change-Id: I134fe00df12788476e840a9c3f44dc0e39570fa9
Signed-off-by: Vijaya Kumar K <vijay.kilari@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23962
Reviewed-by: Mattias NILSSON <mattias.i.nilsson@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
hwmon: ab8500: Add BatCtrl thermal sensor

Support for monitoring BatCtrl in AB8500 has been added

ST-Ericsson Linux next: ER282986
ST-Ericsson ID: CR339643
ST-Ericsson FOSS-OUT ID: Trivial

Change-Id: I71cfa8b8ecaeae9291d910bc1928ad0e36834709
Signed-off-by: Huan DUAN <huan.duan@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23986
Reviewed-by: QATEST
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Reviewed-by: Martin PERSSON <martin.persson@stericsson.com>
u5500: add dummy prcmu_enable_wakeups() to fix build

pm/suspend.c:67: undefined reference to `prcmu_enable_wakeups'
pm/suspend.c:153: undefined reference to `prcmu_enable_wakeups'

ST-Ericsson Linux next: -
ST-Ericsson ID: WP334772
ST-Ericsson FOSS-OUT ID: Trivial

Change-Id: I7ac2abfd2ebf431f7571f7a656521e7d083649d9
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24186
Reviewed-by: Vijaya Kumar K-1 <vijay.kilari@stericsson.com>
Reviewed-by: QATEST
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
u5500: add ePOD consumers

ST-Ericsson Linux next: -
ST-Ericsson ID: WP332185
ST-Ericsson FOSS-OUT ID: Trivial

Change-Id: I57ec184ff8288acdf83adae575c2856f02f41dcb
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24181
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
ARM: ux500: cpuidle: Kconfig for ApDeepIdle

Add Kconfig Kconfig option to enable ApDeepIdle.
Default is disabled.

ST-Ericsson Linux next: ER338824
ST-Ericsson ID: ER338876
ST-Ericsson FOSS-OUT ID: Trivial

Change-Id: Ie54a3ca8da460346ac48d421cb38ebb7fd732c8e
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23705
ARM: ux500: context: readb to readl

Fix typo where readl accidentially was readb

ST-Ericsson Linux next: ER338824
ST-Ericsson ID: ER342698
ST-Ericsson FOSS-OUT ID: Trivial

Change-Id: Idbcf1ed8788ce40d8157d420a2112ca8b260badd
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24141
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
Reviewed-by: QATEST
Reviewed-by: Rickard ANDERSSON <rickard.andersson@stericsson.com>
ARM: ux500: cpuidle: Update enter/exit latencies

Update exit/enter latencies for ApDeepSleep, plus correct
latencies for ApSleep.
Also fix wake latency measurements.

ST-Ericsson Linux next: ER338824
ST-Ericsson ID: -
ST-Ericsson FOSS-OUT ID: Trivial

Change-Id: Ie24e591072ff50b2fd3c1570466f15c714aef154
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24042
Reviewed-by: QATEST
Reviewed-by: Rickard ANDERSSON <rickard.andersson@stericsson.com>