summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-harmony.c
AgeCommit message (Collapse)Author
2012-07-31ARM: tegra: harmony: get rid of tegra_gpio_enable()Laxman Dewangan
The gpio mode of pin is configured when setting direction and hence this call is no more required. Change-Id: Ic36636535be7be9b799b9f6bf0c56aac89675e63 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
2012-07-27ARM: tegra: integration of slave mode support.Ankit Gupta
Add configurability support for i2s parameters accross all board. ARM: tegra: board: add i2s params Add configurability support for i2s parameters accross all board files. Signed-off-by: Ankit Gupta <ankitgupta@nvidia.com> Change-Id: If58788b5126280b7e1dc8c66e9c96d0e71229b5e Reviewed-on: http://git-master/r/111476 (cherry-picked from commit cac52867b0a0cad3b3c5bf46f08b0b94d0be2e02) ARM: tegra: include: add configurability support for i2s params. Add several variables for i2s configuration in platform data structure. Signed-off-by: Ankit Gupta <ankitgupta@nvidia.com> Change-Id: Iea3930f308954471f170513234c2c02a8559ef98 Reviewed-on: http://git-master/r/111473 (cherry picked from commit 35e749770f6046fc82860f1152db2f5f579b9508) Reviewed-on: http://git-master/r/118071 Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Scott Peterson <speterson@nvidia.com>
2012-06-19arm: Tegra: Harmony: highspeed uart enableRamalingam C
Based on the kernel command line argument, this change will register the UARTD for the tegra_uart driver, instead of the serial8250. Hence we can put the harmony for the UART automation test. Bug 991545 Change-Id: I5e637c73f4ce352fb615453121d14e2874e51a53 Signed-off-by: Ramalingam C <ramalingamc@nvidia.com> Reviewed-on: http://git-master/r/106755 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Mursalin Akon <makon@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2012-05-24usb: tegra: modify USB platform data structuresRakesh Bodla
Modify USB structures of platform data. Based on the new platform data structures modifying the initialization in board files. Bug 887361 Change-Id: Ie6347a078c9a596a4debe21a353e127ddde35220 Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/103597 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-04-17tegra: fix typo in pre-power wifi codeMursalin Akon
fix typo in pre-power wifi code Bug 956238 Change-Id: Iee794da508d39131e3166bba71b1c46c60d19a3b Signed-off-by: Mursalin Akon <makon@nvidia.com> Reviewed-on: http://git-master/r/96821 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Allen Martin <amartin@nvidia.com>
2012-04-16arm:tegra[3]: power up wifi chip at bootMursalin Akon
power up WiFi chip, if Kconfig option TEGRA_PREPOWER_WIFI is turned on. Bug 956238 Change-Id: I26ef92fee30f8d18a47c3968b9b01b97e52a9382 Signed-off-by: Mursalin Akon <makon@nvidia.com> Reviewed-on: http://git-master/r/90671 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-02-15ARM: tegra: harmony: Update pm_power_off registrationDan Willemsen
Opt into the tps6586x registering the pm_power_off handler instead of doing it ourselves. Change-Id: I7859530c0c88de860c617a1a185f9cf6e8f046c5 Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com> Reviewed-on: http://git-master/r/83602 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
2012-02-13arm: tegra: harmony: add tegra avp devicePreetham Chandru
Register tegra avp platform device from harmony board file. Bug 932463 Change-Id: I83294a4f402ee0f16433998b9f756240c1ed07d4 Signed-off-by: Preetham Chandru R <pchandru@nvidia.com> Reviewed-on: http://git-master/r/79482 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Shashank Sharma <shashanks@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-12arm: tegra: harmony: added I2S2 and BT_DIT devicesShashank Sharma
SOC Soundcard WM8903 Driver Needs tegra_i2s_device2 and bluetooth_dit_device for different DIGITAL AUDIO INTERFACES(DAIs). bug 921806 Change-Id: I3b81553d17de4321741d039af6d4d7506fbed8e6 Signed-off-by: Shashank Sharma(shashanks@nvidia.com) Reviewed-on: http://git-master/r/73010 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-01-06arm: tegra: Enable HDMI for harmonyPreetham Chandru
Enabled HDMI support for harmony. Bug: 911662 Change-Id: I50d513dc0705fb64fc3946c1518b60b885d6194e Signed-off-by: Preetham Chandru R <pchandru@nvidia.com> Reviewed-on: http://git-master/r/72611 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-01-04arm: tegra: fix for spurious INT on PNP of uartRamalingam C
On Harmony during PNP of UART console, spurious interrupts are triggered continuously. Hence kernel/irq/spurious.c will disable the interrupt. To avoid the trigger of spurious interrupts, this patch disables the modem status interrupts. Bug: 909044 Change-Id: I00529ed16503d2c29f377e558b90f2c379e8b624 Signed-off-by: Ramalingam C <ramalingamc@nvidia.com> Reviewed-on: http://git-master/r/72751 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2011-12-22arm: tegra: harmony: add pm_power_off method for harmonyBill Huang
implement pm_power_off with tps6586x's power off routine. Change-Id: I20b818816982bad97daae1d8961aade4b6a0e6c4 Signed-off-by: Bill Huang <bilhuang@nvidia.com> Reviewed-on: http://git-master/r/71139 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2011-12-22arm: tegra: harmony: add suspend support for harmonyBill Huang
enable suspend for harmony and set suspend mode to lp0 bug 911107 Change-Id: I59d412ab991fa86fedac12f0981bf93e26f8810a Signed-off-by: Bill Huang <bilhuang@nvidia.com> Reviewed-on: http://git-master/r/70270 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2011-12-21arm: tegra: harmony: add spdif driver supportBill Huang
bug 911107 Change-Id: Iaf463f44d56942b181ae48b5b8e464e5b9164687 Signed-off-by: Bill Huang <bilhuang@nvidia.com> Reviewed-on: http://git-master/r/70965 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2011-12-21arm: tegra: harmony: enable power key to wake up the systemBill Huang
enable power button for waking up harmony bug 911107 Change-Id: Id69204a904cafa4186cbac201830ac6d1e5a81b1 Signed-off-by: Bill Huang <bilhuang@nvidia.com> Reviewed-on: http://git-master/r/70274 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2011-12-21arm: tegra: harmony: add backlight and pwm supportBill Huang
enable backlight and pwm device for harmony bug 911107 Change-Id: Ib77d759f3248590a4a8d5b609068a3be97015b29 Signed-off-by: Bill Huang <bilhuang@nvidia.com> Reviewed-on: http://git-master/r/70286 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Jon Mayo <jmayo@nvidia.com>
2011-12-15arm: tegra: cardhu: pcie support for cardhu bspJay Agarwal
Enabling PCIE support in cardhu board. Fixes bug: 637871 Reviewed-on: http://git-master/r/34474 (cherry picked from commit bde3e58d998b6e76934152219b8803327cea2fad) Change-Id: I18c548b458ad3d17ec07d2ec5b16fd83897b44b1 Signed-off-by: Krishna Kishore <kthota@nvidia.com> Reviewed-on: http://git-master/r/62072 Reviewed-by: Lokesh Pathak <lpathak@nvidia.com> Tested-by: Lokesh Pathak <lpathak@nvidia.com>
2011-12-08tegra: harmony: wifi: add board support for WiFiPreetham Chandru
The SDIO WiFi module requires power from external PMU and 1.2V regulator. The module gets powered on if - (1) all power sources are enabled, and (2) power (down) and reset (down) pins are enabled as per spec. To enable mmc/SDIO driver to detect the WiFi hardware, the WiFi chip has to be powered-up before mmc driver does probing. So, steps should be as following: (1) required regulators are on, (2) power/reset of WiFi are enabled, (3) mmc does probing. Later time, when WiFi driver module is loaded and registers with SDIO, the SDIO driver knows which H/W the driver has to be associated with. Bug: 908534 Change-Id: I6510bced5fa9b8b3314c00180f2694903b23145c Reviewed-on: http://git-master/r/#change,47808,patchset=2 Signed-off-by: Preetham Chandru <pchandru@nvidia.com> Reviewed-on: http://git-master/r/67121 Reviewed-by: Mursalin Akon <makon@nvidia.com> Reviewed-by: Allen Martin <amartin@nvidia.com>
2011-11-30HACK merge fixups for compileDan Willemsen
Rebase-Id: Rbc628711479b187a90437bea94776066c7a58b54
2011-11-30arm: tegra: Add Harmony nvmap, host1x devicesRobert Morell
This is necessary to use the Tegra accelerated device drivers. Signed-off-by: Robert Morell <rmorell@nvidia.com> Change-Id: I6c6f10f35654793b4fb713f4ac854f72640a5fef Reviewed-on: http://git-master/r/58253 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: Rab19f5b8a98914619ff3d43f5a7eeeed0114f86a
2011-11-30tegra: harmony: KBC support for chicony keyboardRamalingam C
This change includes the keymapping details for chicony keyboard and registers the platform_device called "tegra-kbc" with all board resources corresponding to KBC. Change-Id: I4222914f09520b60882a447fc149fd1c352be037 Signed-off-by: Ramalingam C <ramalingamc@nvidia.com> Reviewed-on: http://git-master/r/57233 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Rebase-Id: Rb233d2e2065fa590a6e776eb81ba205efc45442b
2011-11-30arm: tegra: harmony: Register USB3 hostPreetham Chandru
Registered USB3 host as harmony platform device. Bug: 879944 Change-Id: I02e03c0978472972504d405dbbdc6f4e483fe2a3 Signed-off-by: Preetham Chandru <pchandru@nvidia.com> Reviewed-on: http://git-master/r/56264 Reviewed-by: Mursalin Akon <makon@nvidia.com> Reviewed-by: Allen Martin <amartin@nvidia.com> Rebase-Id: R126da51ba56a2c52d7f39a30a93e1a9c829beb8c
2011-11-30tegra: nand: Added features in the driverBhavesh Parekh
Added 4K page support. Added 16-bit support Added sys interfaces for various operations. Added support for un-aligned page read. Added setting timing values based on vendor-id/device-id. Moved support for setting clock to platform from the driver. Fixed OOB-Read/Write issues. Original-Change-Id: Idf920c1cb0352dcda0282fa399d6c1f57a20736c Reviewed-on: http://git-master/r/42347 Tested-by: Bhavesh Parekh <bparekh@nvidia.com> Reviewed-by: Sandeep Trasi <strasi@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Rebase-Id: Refa8b8aa651f824a27513bfe663c57237dde2beb
2011-11-30ARM: Tegra: Harmony: Don't set up most audio clocksStephen Warren
The ALSA driver now configures most audio clocks as desired, so the board has no need to manually configure them first. Signed-off-by: Stephen Warren <swarren@nvidia.com> Rebase-Id: R3face8d7c3a6f6e2486c86100f13387a8f43a52e
2011-11-30ARM: Tegra: Harmony: Set SD/MMC clock rates, and enable themStephen Warren
Without this, I see a huge number of SD timeouts when the root fs is on an SD card in SD controller 4. Signed-off-by: Stephen Warren <swarren@nvidia.com> Change-Id: Iaa6dd74889a082a3f48cc571487d4680684715e3 Rebase-Id: R47ff3f22021a1c990b1bc43a40f40ee72e4f01b7
2011-11-30ARM: Tegra: Harmony: Remove duplicate SDHCI registrationsStephen Warren
Tegra SDHCI devices were being registered through both harmony_devices[] and board-harmony-sdhci.c. The latter is mostly duplicate code, so just use the simpler logic already in board-harmony.c, and which is upstream. Signed-off-by: Stephen Warren <swarren@nvidia.com> Change-Id: Ib8c4e612541cbc299335f9770a463fccb384b9ce Rebase-Id: R789721008a0cfb2c8faa03ee59c2b56f2c075c3e
2011-11-30ARM: Tegra: Harmony: Add correct I2C platform dataStephen Warren
board-harmony.c's I2C platform data was structured for the upstream driver, but this branch contains the downstream driver. Fix the platform data to match; pull it in from the chromeos-2.6.38 branch. Also, modify any affected calls to i2c_register_board_info for the bus numbering changes. Signed-off-by: Stephen Warren <swarren@nvidia.com> Change-Id: Ie1586455a2f5d46e497dcf594f7a83c4b70eda60 Rebase-Id: R6ebe439ccf53a5a0a0f0a3d826bade8bfa75a2bb
2011-11-30ARM: Tegra: Harmony: Fix duplicate I2C device registrationsStephen Warren
tegra_i2c_device* were listed in harmony_devices[], and manually registered by harmony_i2c_init after platform data was initialized. Thus, they were registered twice, and the first time was before platform data was initialized. Remove the entries in harmony_devices[] so solve this. Signed-off-by: Stephen Warren <swarren@nvidia.com> Change-Id: Ibd699a68f1ae7eb22743a7fc8ae5c06a26a10f29 Rebase-Id: R8e17caacfb75958c51775efc7141024fb1ef415a
2011-11-30fix harmonyColin Cross
Change-Id: I6b39d27144a71a952f534b9066173be5a25ff049
2011-11-30ARM: tegra: harmony: Temporarily disable otgColin Cross
Change-Id: I69082a1a2c1e5430fb8f9a186088aa45ec8a9715
2011-11-30[ARM] tegra: harmony: Add pmu deviceColin Cross
Originally fixed by Will Deacon. Change-Id: I2319d269f645766597100f91b2086fde4535c0fd Signed-off-by: Colin Cross <ccross@google.com>
2011-11-30[ARM] tegra: harmony: use tegra_gart_device rather than local definitionGary King
Change-Id: I1b456bb5634a75ae1dba2f5bd64ad71b8abdfc53 Signed-off-by: Gary King <gking@nvidia.com>
2011-11-30[ARM] tegra: add EHCI and UDC controllers to devices.cGary King
update harmony and ventana to use the common UDC definition, rather than using the current duplicated definitions Change-Id: I2e3aca674ab35305a0c516bd22e044382280d05e Signed-off-by: Gary King <gking@nvidia.com>
2011-11-30[ARM] tegra: harmony/ventana: register additional devicesGary King
register GART, pda_power, and OTG devices Change-Id: I6dec5f765494cdc96f3395cf32fd962c87bf70b7 Signed-off-by: Gary King <gking@nvidia.com>
2011-11-30[ARM] tegra: harmony: remove hard-coded partition tableGary King
use the partition information provided on the kernel command line rather than a fixed table that is subject to change. Change-Id: I650f634bf49b8658debb75535e94f2a497ef3432 Signed-off-by: Gary King <gking@nvidia.com>
2011-11-30[ARM] tegra: harmony: Make board init calls explicitColin Cross
Signed-off-by: Colin Cross <ccross@android.com> Change-Id: Ic14e8db00f2272de2f4ee4013bb3ab5c1951e7fe
2011-11-30[ARM] tegra: harmony: Remove android platform devicesColin Cross
Signed-off-by: Colin Cross <ccross@android.com>
2011-11-30[ARM] tegra: add platform devices to harmony board fileErik Gilling
Signed-off-by: Erik Gilling <konkers@android.com>
2011-07-12ARM: tegra: remove copy-and-pasted i2c platform data in boardsColin Cross
Every board file includes the same platform data definition for the i2c-tegra driver's bus speed. Move the platform data into devices.c, and remove it from all the board files. Signed-off-by: Colin Cross <ccross@android.com> Tested-by: Konstantin Sinyuk <kostyas@compulab.co.il> Acked-by: Olof Johansson <olof@lixom.net>
2011-04-18ARM: Tegra: Add to tegra_wm8903_platform_dataStephen Warren
Seaboard derivate Kaen has a GPIO to mute the headphone output. Add a field to tegra_wm8903_platform_data so the board files can pass the GPIO number for that to the ASoC machine driver. Also, initialize this new field to a "not present" value for Harmony. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2011-04-18ASoC: Tegra: Rename pdev tegra-snd-harmony to tegra-snd-wm8903Stephen Warren
Soon, this machine driver will be updated to handle a number of Tegra boards using the WM8903 codec. Rename the platform device in advance to reflect this. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2011-04-18ARM: Tegra: Rename harmony_audio.h -> tegra_wm8903_pdata.hStephen Warren
The audio driver will soon support more than just the Tegra Harmony board. Rename the platform data header file and data type to reflect this. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2011-03-15ARM: tegra: harmony: initialize the TPS65862 PMICMike Rapoport
Initialize the PMIC voltage regulators and provide the supply map for PCI-e clock supply. The rest of the supplies should be added together with the drivers that use them. Signed-off-by: Mike Rapoport <mike@compulab.co.il> CC: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Olof Johansson <olof@lixom.net>
2011-03-07ARM: tegra: harmony: Set WM8903 gpio_baseStephen Warren
This is the final patch to enable audio support on Harmony. It additionally relies on the latest ASoC branch being merged in, which provides the header defining the gpio_base field in the WM8903 platform data. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Olof Johansson <olof@lixom.net>
2011-03-07ARM: tegra: harmony: I2C-related portions of audio supportStephen Warren
This patch is the portion of the audio-related setup that relies additionally on the latest Tegra I2C driver being merged. * Define platform data for WM8903 audio codec * Register WM8903 as an I2C device Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Olof Johansson <olof@lixom.net>
2011-03-07ARM: tegra: harmony: register i2c devicesOlof Johansson
Register the base i2c busses on harmony. Devices coming at a later date, but this allows for hand-probing of some of them at least. Signed-off-by: Olof Johansson <olof@lixom.net> Acked-by: Stephen Warren <swarren@nvidia.com>
2011-03-07ARM: tegra: harmony: Beginnings of audio supportStephen Warren
This change includes everything required to enable audio on Harmony, except those parts which rely on code not currently in Tegra's for-next branch, i.e. except those parts which rely on merges of the Tegra I2C driver or latest ASoC subsystem. * Define GPIO names for audio-related GPIOs * Set up platform data and platform device for ASoC machine driver * Register audio-related platform devices * Initialize audio-related clocks * Correctly configure pinmux and GPIO enables for audio-related pins Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Olof Johansson <olof@lixom.net>
2011-03-07ARM: tegra: create defines for SD-related GPIO namesStephen Warren
This ensures they're kept in sync between platform_data definitions and the GPIO table initialization. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Olof Johansson <olof@lixom.net>
2011-02-22ARM: tegra: harmony: register sdhci devicesOlof Johansson
Add the 3 sdhci devices that are available on Harmony as platform devices. Two go to slots (one 4-lane, one 8-lane), and one goes to onboard wifi. Signed-off-by: Olof Johansson <olof@lixom.net> Acked-by: Colin Cross <ccross@android.com>
2011-02-22ARM: tegra: remove stale nvidia atag handlerOlof Johansson
Remove dead atag handling code for nvidia-specific tags. Signed-off-by: Olof Johansson <olof@lixom.net> Acked-by: Colin Cross <ccross@android.com>