summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-09-23u5500: usb: ISR return type corrected for usb hostu8500-android-2.3_v4.1Ravikant Singh
return type changed to irqreturn_t from void for function ab5500_usb_host_disconnect_irq() ST-Ericsson ID: 352334 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: NA Signed-off-by: Ravikant Singh <ravikant.singh@stericsson.com> Signed-off-by: Avinash Kumar <avinash.kumar@stericsson.com> Change-Id: I85819cb20418fc39e1febb7b1ea1a1211f825fb2 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31867 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-09-23mach-ux500: revert the wrong merge of headsmp.Ssrinidhi kasagar
The commit 8a95c3f51896af123cd160880e70be4cda30d1bc " Author: Philippe Langlais <philippe.langlais@linaro.org> Date: Tue Apr 12 12:53:13 2011 +0200 mach-ux500: full alignment with 2.6.35 " reverts the mainline commit 78368c79944b12f91bcacb0b0b030c36016264e8 which is wrong. Fix it to align with mainline code ST-Ericsson ID: - ST-Ericsson Linux next: - ST-Ericsson FOSS-OUT ID: - Signed-off-by: srinidhi kasagar <srinidhi.kasagar@stericsson.com> Change-Id: I8be9a030e8a827ebb9da7c298c7c291dab160ef7 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31872 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-09-23mmc: mmci: Change vdd_handler to a generic ios handlerUlf Hansson
The purpose of the vdd_handler does not make sense. We remove it and use a more generic approach instead. A new "ios" handler is thus added, the purpose of which e.g. can be to control GPIO pins to a levelshifter. Previously the vdd_handler was also used for making additional changes to the MMCIPOWER register bits. This option is now removed. This patch is based upon a patch from Sebastian Rasmussen. Change-Id: I250c7d243946acd9cc9da2d4d18394db1256cd27 Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com> Signed-off-by: Sebastian Rasmussen <sebastian.rasmussen@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31883
2011-09-23mmc: mmci: Provide option to configure bus signal directionUlf Hansson
The ST Micro variant supports bus signal direction indication. A new member in the variant struct is added for this. Moreover the actual signal direction configuration is board specific, thus the amba mmci platform data is extended with a new member to be able provide mmci with these specific board configurations. This patch is based upon a patch from Sebastian Rasmussen. Change-Id: I430ff6469ec1546b0ee438c1629c6a07fdade5f7 Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com> Signed-off-by: Sebastian Rasmussen <sebastian.rasmussen@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31882
2011-09-23dma40: fix DMA API usage for LLIsRabin Vincent
Map and unmap the LLIs and use dma_sync_single_for_device() appropriately instead of mapping and never unmapping them. Change-Id: Iabd78760a6adfa4b637e1db8943f6b93bc318a5f Acked-by: Per Forlin <per.forlin@stericsson.com> Acked-by: Jonas Aaberg <jonas.aberg@stericsson.com> Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31863 Tested-by: Narayanan GOPALAKRISHNAN <narayanan.gopalakrishnan@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-09-23dma40: fix DMA API usage for LCLARabin Vincent
Map the buffer once and use dma_sync*() appropriately instead of mapping the buffer over and over without unmapping it. Change-Id: I4a16dc96409ba657b4994329e53668320393e0e0 Acked-by: Per Forlin <per.forlin@stericsson.com> Acked-by: Jonas Aaberg <jonas.aberg@stericsson.com> Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31856 Tested-by: Narayanan GOPALAKRISHNAN <narayanan.gopalakrishnan@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-09-23dma40: use helpers for error functionsRabin Vincent
Almost every use of dev_err in this driver prints the function name. Abstract out wrappers to help with this and reduce code duplication. Change-Id: I7ba0ef93da329737aec777489c82907d9c58027a Acked-by: Per Forlin <per.forlin@stericsson.com> Acked-by: Jonas Aaberg <jonas.aberg@stericsson.com> Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31853 Tested-by: Narayanan GOPALAKRISHNAN <narayanan.gopalakrishnan@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-09-23mach-ux500: enable fix for ARM errata 754322srinidhi kasagar
This applies ARM errata fix 754322 for all ux500 platforms. ST-Ericsson ID: 325188 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: Mainlined Change-Id: Ia600bd9ce11407ff91b33a45a1f58705e8c1ea34 Signed-off-by: srinidhi kasagar <srinidhi.kasagar@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/29327 Reviewed-by: QATEST Reviewed-by: Staffan MANSSON <staffan.mansson@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31843
2011-09-23ux500:USB:Fix for Build issue of HTML DocsSakethram Bommisetti
"pubfunctions" is required in the .tmpl file as the compiler uses it. Adding "pubfunctions" in ux500_usb.tmpl file. ST-Ericsson ID: NA ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: NA Signed-off-by: Sakethram Bommisetti <sakethram.bommisetti@stericsson.com> Change-Id: Ic927f2001e9d0fff070a7d7b9b9871c011905aef Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31845 Reviewed-by: Praveena NADAHALLY <praveen.nadahally@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-09-23video: mcde: Add channel statesJimmy Rubin
Replace MCDE transactionids with a per channel state to guard against concurrent access to MCDE HW. ST-Ericsson ID: 358524 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I827009d8113675cb5cc388ed41f9239fce3bf43f Signed-off-by: Jimmy Rubin <jimmy.rubin@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31802 Reviewed-by: Per PERSSON <per.xb.persson@stericsson.com>
2011-09-23arm: ux500: Configure dsi clocks and regulatorsJimmy Rubin
Removes dsi clock, dsi lp clock and VANA regulator if MCDE_DISPLAY_DSI is not set. Adds return value for enable_dsi_pll. ST-Ericsson ID: 343541 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Icf16af2318abe73d41e5cb026e0cbe4e7b7b5949 Signed-off-by: Jimmy Rubin <jimmy.rubin@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31801 Reviewed-by: Per PERSSON <per.xb.persson@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-09-23video: mcde: Correct DSI startup sequenceJimmy Rubin
The VANA regulator and the dsi and dsi lp clocks must be enabled before the DSI PLL is enabled. ST-Ericsson ID: 343541 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: If7a4687d086b51b68be426e6eeaaffc6523a2dea Signed-off-by: Jimmy Rubin <jimmy.rubin@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31800 Reviewed-by: Per PERSSON <per.xb.persson@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-09-23dma40: use helper for channel registers baseRabin Vincent
The register offset computation for accessing channel registers is copy/pasted in several places. Create a helper function to do it. Change-Id: If40e4cb06ef7f218edac5ab349a3e17d91010e1b Acked-by: Per Forlin <per.forlin@stericsson.com> Acked-by: Jonas Aaberg <jonas.aberg@stericsson.com> Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31815 Tested-by: Narayanan GOPALAKRISHNAN <narayanan.gopalakrishnan@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-09-23dma40: remove unnecessary ALIGN()sRabin Vincent
ALIGN(x * y, y) == x * y ALIGN(aligned + x * y, y) == aligned + x * y Acked-by: Per Forlin <per.forlin@stericsson.com> Acked-by: Jonas Aaberg <jonas.aberg@stericsson.com> Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Change-Id: I913881ee95c8ec2ca9b88fc9ba2b288df22c0be7 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31814 Tested-by: Narayanan GOPALAKRISHNAN <narayanan.gopalakrishnan@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-09-23U9500: cryp: Disable u8500 crypto hardwareYann Gautier
This patch disable the crypto hardware in u9500. It aligns u9500_defconfig file on u8500 ST-Ericsson ID: 363148 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I5f2a63edef326a8cbf976799d176dd81fef10bba Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31807 Reviewed-by: Yann GAUTIER <yann.gautier@stericsson.com> Tested-by: Yann GAUTIER <yann.gautier@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-09-22ux500 cryp: Disable u8500 crypto hardwareu8500-android-2.3_v4.0Joakim Bech
This patch disable the crypto hardware in u8500. ST-Ericsson ID: 363148 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I20da80897c88e7e1ff3b53e8c549dd4bd3b4e84a Signed-off-by: Joakim Bech <joakim.xx.bech@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31788 Reviewed-by: Berne HEBARK <berne.hebark@stericsson.com>
2011-09-22input:misc: Add accessory driverVirupax Sadashivpetimath
Add driver for the accessory detection block of the ab5500 PMIC. The common functions from the 8500 accessory driver are moved to abx500-accdet generic driver. This generic driver uses callbacks registerd from the 8500 and 5500 specific driver to work as a accessory driver for a perticluar platform. ST Ericsson ID: 353610 ST Ericsson FOSS-OUT ID: Trivial ST Ericsson Linux next: NA Change-Id: Ifb06f9c9dd0dc59cbc071198c9e244a422a63af0 Signed-off-by: Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>
2011-09-22CAIF : coverity issuesDurga Prasada Rao BATHINA
free phy_driver memory and initialize linkid to 0. ST-Ericsson ID: 358047 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: NA Change-Id: Icb295648b23bd836b9f5a40a0b605e4792a8511d Signed-off-by: Durga Prasada Rao BATHINA <durgaprasadarao.b@stericcson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31751 Reviewed-by: Bibek BASU <bibek.basu@stericsson.com> Tested-by: Bibek BASU <bibek.basu@stericsson.com>
2011-09-22CAIF SHM: coverity issuesDurga Prasada Rao BATHINA
dereferencing NULL pointer,if skb_dequeue returns NULL. ST-Ericsson ID: 358051 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: NA Change-Id: Ib88648e68c631cc8eaf839f96af7e847c12922b1 Signed-off-by: Durga Prasada Rao BATHINA <durgaprasadarao.b@stericcson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31750 Reviewed-by: Bibek BASU <bibek.basu@stericsson.com> Tested-by: Bibek BASU <bibek.basu@stericsson.com>
2011-09-22staging: camera_flash: Enable FLASH_MODE_NONERajat Verma
FLASH_MODE_NONE should be enabled by flash clients to put the flash IC in sleep mode, dropping the input current to less that 45 microamperes. ST-Ericsson ID: 361897 ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Rajat Verma <rajat.verma@stericsson.com> Change-Id: I5ff4e409344578043b2f35e19474e215ddde2e44 Signed-off-by: Rajat Verma <rajat.verma@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31744 Reviewed-by: Bibek BASU <bibek.basu@stericsson.com> Tested-by: Bibek BASU <bibek.basu@stericsson.com>
2011-09-22mbox: optimize tx path and fix bug in rx pathArun Murthy
During tx, in the work function check for if any messages are pending to be transmitted, if so, re-transmit. If in rx path work function is queued twice then the work is executed only once so the other message will be lost. Hence check if work has been queued and if so read the next message. ST-Ericsson Linux next: NA ST-Ericsson ID: 357703 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I7f3a18947e36cae30da8ca391d10ed5d3ac0eb03 Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31742 Reviewed-by: Bibek BASU <bibek.basu@stericsson.com> Tested-by: Bibek BASU <bibek.basu@stericsson.com>
2011-09-22u5500: enable vibrator when new timeout is requestedAvinash A
with this patch new timeout value will be accepted/updated even if vibrator is already executing. ST-Ericsson ID: 360178 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: Ifeead439633c789e61887f9b74ef7462e58bbdfa Signed-off-by: Avinash A <Avinash.a@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31739 Reviewed-by: Avinash A <avinash.a@stericsson.com> Tested-by: Avinash A <avinash.a@stericsson.com>
2011-09-22mfd: ab8500-gpadc: Change to mdelayJonas Aaberg
The resolution of msleep is related to HZ, so with HZ set to 100 any msleep of less than 10ms will become ~10ms. ST-Ericsson ID: - ST-Ericsson Linux next: Not tested ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Change-Id: I3b70c983f332605eea5826ca76bb2a8995de9d3b Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31735 Reviewed-by: Bibek BASU <bibek.basu@stericsson.com> Tested-by: Bibek BASU <bibek.basu@stericsson.com>
2011-09-22power: ab8500_bm: Add interface to reinit FG algorithmKalle Komierowski
A function has been added to enable reinitialisation of the fuel gauge algorithm. This can be used to to reinitialise with a different battery voltage at start-up, for verification reasons. ST-Ericsson ID: 357480 ST-Ericsson Linux next: Not tested ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I1ba9775e3c26f49fe746e56c01dce0d5ba8384b3 Signed-off-by: Kalle Komierowski <karl.komierowski@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31676 Reviewed-by: Bibek BASU <bibek.basu@stericsson.com> Tested-by: Bibek BASU <bibek.basu@stericsson.com>
2011-09-22regulator: Do not disable Vext3 during suspendBengt Jonsson
Do not disable Vext3 during suspend because it is needed by 3 V SIM. This is a temporary change, to be changed so it takes into account if the SIM is 1.8 V or 3 V. ST-Ericsson ID: 351937 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: - Change-Id: Id4739d32185e8381bbc8925aaa1b92fb7d3b51b8 Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31722 Reviewed-by: Bibek BASU <bibek.basu@stericsson.com> Tested-by: Bibek BASU <bibek.basu@stericsson.com>
2011-09-22power: ab5500-bm: update usb state change interface to otg notifierArun Murthy
Remove usb_state_changed() exported function. Replace it with otg notifier call. This makes static_di redundant so it is removed. Moreover, there is no need to protect usb_state.usb_changed with usb_lock. So usb_lock is removed as well. Usb state is fabricated based on the reported mA. State is not as accurate as reading it directly from the usb controller. This should not matter as battery- manager driver should care more about mA than the state anyway. Change-Id: I180062a87ca773b5c215aee3ef1c60315d309d42 Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31577 Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2011-09-22mach-ux500: Enable Camera PMIC for S5500V2 BoardNikhil Bhandary
ST-Ericsson Id: 351836 ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Nikhil Bhandary <nikhil.bhandary@stericsson.com> Change-Id: I8968c6741692ded9fc57b550db4617533b0a3a1f Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30969 Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2011-09-22U5500: Add VAPE as supply regulator for EPODSVijaya Kumar Kilari
Added VAPE as supply regulator for MM EPODS. Avoids ApSleep when EPOD regulators are ON ST-Ericsson Linux next: - ST-Ericsson ID: 356729 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ieba7c30fff4d29c3c47373c8e4f55ea502ad9efa Signed-off-by: Vijaya Kumar Kilari <vijay.kilari@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30723 Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
2011-09-22U5500: PRCMU MBOX4 support for Hotdog and hotmonVijaya Kumar Kilari
PRCMU driver interface for thermal management of DB5500. MBOX4 supports to - configure hotmon period - configure hotdog ranges - read current temperature ST-Ericsson Linux next: - ST-Ericsson ID: 334775 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: If25acd1d500800053bd6c511a64c9e5726c69647 Signed-off-by: Vijaya Kumar Kilari <vijay.kilari@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/28334 Reviewed-by: QABUILD Reviewed-by: QATEST Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2011-09-22u5500: prcmu: implement DDR OPP handlingRabin Vincent
ST-Ericsson ID: 348762 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: I26770ee6151f91c70eebba1c1c460e7cdedd43e1 Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30502 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Vijaya Kumar K-1 <vijay.kilari@stericsson.com> Reviewed-by: Mattias NILSSON <mattias.i.nilsson@stericsson.com> Reviewed-by: QATEST
2011-09-22dma40: Add support to use lcla area from esramNarayanan G
This patch provides an option of having the lcla in ESRAM instead of allocating it. The bool value (use_esram_lcla) in the stedma40_platform_data if set to true, then the lcla address would be taken from platform resources. This patch does not enable the feature, as the other dependencies related to keeping the esram34 regulator on, changes in mcde for releasing 8k from esram bank4 and the changes needed in cmdma have to be merged. ST-Ericsson ID: 362066 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: I590751f732021c5f2f4da9b7d51ae5dc10087be7 Signed-off-by: Narayanan G <narayanan.gopalakrishnan@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31123 Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
2011-09-22ARM: ux500: pm: Workaround for MMC performanceJohan Rudholm
This is a temporary workaround for supervising and boosting MMC performance. The workaround is implemented in a common file for similar supervisors which may need to increase the platform performance. This is configurable via CONFIG_UX500_PM_PERFORMANCE. ST-Ericsson ID: 348349 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Depends-On: Ic7bf069aa199ff6436b52192898c09d8fffb82bf Signed-off-by: Johan Rudholm <johan.rudholm@stericsson.com> Change-Id: I630deebc62e506fe80d1ef241c1a193294c29538 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30087 Tested-by: Johan RUDHOLM <johan.rudholm@stericsson.com> Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Sebastian RASMUSSEN <sebastian.rasmussen@stericsson.com>
2011-09-22ux500: regulator: add debugging support for dbx500 regulatorsMian Yousaf Kaukab
ST-Ericsson ID: 360515 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Id4c33c776e54abc23df9243996d1cfa749e1e679 Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30359 Tested-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com> Reviewed-by: QABUILD Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
2011-09-22arm: ux500: implement clk_set_rate for some multimedia clocksMattias Nilsson
This patch implements clk_set_rate (and clk_round_rate) for lcdclk, tvclk, and hdmiclk, as well as some infrastructure needed by this and coming changes. ST Ericsson ID: 343004, 359227 ST Ericsson FOSS-OUT ID: trivial ST Ericsson Linux next: - Change-Id: I4caabc881d3785771827319fe062d62d6ada7938 Signed-off-by: Mattias Nilsson <mattias.i.nilsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30913 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-09-22u8500: change clk_get_rate for prcmu clocksMattias Nilsson
This patch changes the implementation of clk_get_rate for PRCMU clocks, so that it returns a rate according to the hardware settings instead of a hardcoded value. ST Ericsson ID: 343004, 359227 ST Ericsson FOSS-OUT ID: trivial ST Ericsson Linux next: - Change-Id: I28c050f3263cf013bb7b7730a9affe66229e9180 Signed-off-by: Mattias Nilsson <mattias.i.nilsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30744 Reviewed-by: QABUILD Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-09-22U5500: Disable the unused clocks at startupRanjan Kumar
Disables some of the peripheral clocks which are not required at the startup. Mainly added a function init_clock_states() which does this job. ST-Ericsson Linux next: NA ST-Ericsson ID: 358241 ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Ranjan Kumar <ranjan.kumar@stericsson.com> Change-Id: Ice4f355b9cb8f2d885b603fafdd84cd8affa8ae5 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30259 Tested-by: Ranjan KUMAR <ranjan.kumar@stericsson.com> Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
2011-09-22dma40: make init function staticRabin Vincent
Acked-by: Per Forlin <per.forlin@stericsson.com> Acked-by: Jonas Aaberg <jonas.aberg@stericsson.com> Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Change-Id: I4124016624c79babfa65f87d3c551568678c77a3 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31719 Tested-by: Narayanan GOPALAKRISHNAN <narayanan.gopalakrishnan@stericsson.com>
2011-09-22ux500: sw reset: Changes in reset reasonsJurijs Soloveckis
Removed duplications in the reset reasons, new code for the reset recovery is added. ST-Ericsson ID: 355901 ST-Ericsson Linux next: N/A ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Iaf74ac5cffc9c28df84af5c6cecf1dbaa0bb7567 Signed-off-by: Jurijs Soloveckis <jurijs.soloveckis@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30847 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-09-22mach-ux500: Functions to check for S5500 BoardNikhil Bhandary
ST-Ericsson Id: 351836 ST-Ericsson FOSS-OUT ID:Trivial Signed-off-by: Nikhil Bhandary <nikhil.bhandary@stericsson.com> Change-Id: I198445098f72bdca440a340f800a764ed83cc10c Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30968 Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2011-09-22ARM: u8500: Update reboot reasonsChris Kimber
Make it possible to determine between a cold and warm start so the appropriate charging action can be taken. ST-Ericsson ID: 356867 ST-Ericsson Linux next: - ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ibb979fa45753d85bc89f6319ee318d7b6893fdc6 Signed-off-by: Chris Kimber <chris.kimber@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30745 Reviewed-by: QABUILD Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Reviewed-by: Andrew LYNN <andrew.lynn@stericsson.com>
2011-09-22dma40: fix DMA_SG capability and channelsRabin Vincent
The DMA_SG cap is enabled on the wrong channel, and the pointers are repeatedly set incorrectly. Fix it and combine the ops settings to a common function. Change-Id: I93644620f54c8773405a54dbcfc7f2c59af73d00 Acked-by: Per Forlin <per.forlin@stericsson.com> Acked-by: Jonas Aaberg <jonas.aberg@stericsson.com> Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31683 Tested-by: Narayanan GOPALAKRISHNAN <narayanan.gopalakrishnan@stericsson.com>
2011-09-22Ux500 ASoC:To decrease noise in Audio playbackkumar km
This patch addresses loud noise that heard at the start and end of audio plaback. This patch enables DC offset cancellation and negative charge pump voltage selection. ST-Ericsson Linux next: Not tested, ER 342775 ST-Ericsson ID: 342775 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10006 Signed-off-by: kumar km <kumar.km@stericsson.com> Change-Id: I2d11d60f8ddf14a7fa02981ece78699f62e932af Signed-off-by: kumar km <kumar.km@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31696 Reviewed-by: Avinash A <avinash.a@stericsson.com> Tested-by: Avinash A <avinash.a@stericsson.com>
2011-09-22sound: asoc: ab5500: Fix to set correct DAI formatShyam Krishnan M
This fixes the DAI format when the stream doesnot set it properly ST-Ericsson Linux next: NA ST-Ericsson ID: 348589 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10006 Change-Id: I059921538565075b35bd533a88d7448a80823d24 Signed-off-by: Shyam Krishnan M <shyam.moni@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31695 Reviewed-by: Avinash A <avinash.a@stericsson.com> Tested-by: Avinash A <avinash.a@stericsson.com>
2011-09-22Ux500 ASoC: Fix to set max/min in h/w settingShyam Krishnan M
The maximum and minimum value in snd_pcm_hw_constraint_minmax is not checked when the maximum goes less than minimum. This check is put in place ST-Ericsson Linux next: NA ST-Ericsson ID: 348589 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10006 Change-Id: I3abc645d64c0c7f9914609468e74b5256495bda6 Signed-off-by: Shyam Krishnan M <shyam.moni@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31694 Reviewed-by: Avinash A <avinash.a@stericsson.com> Tested-by: Avinash A <avinash.a@stericsson.com>
2011-09-22Align u9500_defconfig on 8500Yann Gautier
Change-Id: I288ea800be0a6acf7b31a4e247a0dd703ab97277 Change-Id: Iae584f8558f571952c6805ba3788f7241db70636 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31536 Reviewed-by: Yann GAUTIER <yann.gautier@stericsson.com> Tested-by: Yann GAUTIER <yann.gautier@stericsson.com> Reviewed-by: Christopher BLAIR <chris.blair@stericsson.com>
2011-09-21MMCI: Put power register deviations in variant data.Sebastian Rasmussen
Use variant data to store hardware controller deviations concerning power registers to improve readability of the code. ST-Ericsson ID: ER282562 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I6285df49bc4dceb443df5af618ee980b0e62f59f Signed-off-by: Sebastian Rasmussen <sebastian.rasmussen@stericsson.com> Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/12543 Reviewed-by: QATOOLS Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31644
2011-09-21arm: u5500_defconfig: enable battery driverArun Murthy
Change-Id: I2bdb4f72b0988b42382994171284cb41ceacc819 Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31573 Reviewed-by: Rajanikanth H V <rajanikanth.hv@stericsson.com>
2011-09-21security: Fix build issue when ANDROID_PARANOID_NETWORK is disabled.Hemant Ramdasi
Change-Id: I3fcd52239ce5e526b2a4210b9ea393829dbea494 Signed-off-by: Hemant Ramdasi <hemant.ramdasi@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31542 Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2011-09-21u8500: defconfig: Disable ANDROID_PARANOID_NETWORKHemant Ramdasi
Change-Id: Iecd7131d84b30eecb1fac35f9f74a23c80da4126 Signed-off-by: Hemant Ramdasi <hemant.ramdasi@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31541 Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2011-09-21ux500: u8500: Change DMA configuration for SD-cardUlf Hansson
This patch is a mixture of two earlier patches: By Sebastian Rasmussen: ux500: Use other logical DMA channel for SD-card Previously PoP eMMC SDI has been in the same event group as SD-card SDI, which means that they have been sharing the same physical DMA channels. Moreover one of those channels was reserved for other purposes, causing transfers for each interface to compete for the same physical DMA channel. In addition there appears to be a HW issue that causes data to be lost in the middle of DMA transfers, which ended up with DMAC and MMCI not agreeing on how much data was still to be transferred, thereby resulting in a hang and eventually in a crash. This patch moves SD-card DMA transfers to another event group which means that it no longer competes for the same physical DMA channel. This results in that no data is lost in the transfers and no hang is observed. By Rabin Vincent: ux500: mop500: force SD/MMC and MSP2 TX onto different channels SD/MMC with event line 1 can be in channel 0 or 1. Force both Rx and Tx onto channel 0. Both will anyway not used at the same time, and with this change channel 1 will be available for MSP2 Tx without sharing. Change-Id: I72c254b3258615755fb050595a4d82e4f76d2098 Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31603