Age | Commit message (Collapse) | Author |
|
Enable XMM modem power management driver.
Change-Id: Ib611c410ca5da9762b722ee91211238e90421215
Reviewed-on: http://git-master/r/50665
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
|
|
The polarity of sdhci2's gpio initialized.
With this fix, the external SDCard's lock switch works properly.
BUG=869186
TEST=Boot from SDCard with the Lock on and off.
Change-Id: I54c8b75a6170abb0f8d12d28b802383e58278883
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/50403
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>
|
|
Enable USB accessory support for cardhu
Bug 868603
Change-Id: Ifc3598195a778f6ea52b3a15ef4c29b5fab8bbb1
Reviewed-on: http://git-master/r/49412
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
|
|
Adding the check for the params before doing io-remap and
accessing physical location of the framebuffer. When framebuffer
atag is not passed from the bootloader kernel will crash at this point.
Change-Id: I479226d1e3c8e5d6ac8ff57898a6f94220e2991d
Reviewed-on: http://git-master/r/47277
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
|
|
This platform driver enables the generic USB modem power management support
for out-of_band remote wakeup, selective suspend and system suspend/resume.
Bug 854339
Change-Id: I6cc42dedf4031399691c70388fce4e69ec4b881f
Reviewed-on: http://git-master/r/44911
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
|
|
Earlier value of 75 had unnecessary double guardbanding.
Changed 90C row in EDP table down to 85C to get throttling alert.
Bug 862301
Change-Id: Ie55d1257874aa336198f9965c867f5767864dc89
Reviewed-on: http://git-master/r/50544
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
|
|
Bug 829327
Change-Id: I1c250d5cfc8a501da4ccdc985169b48478ed87b8
Reviewed-on: http://git-master/r/50352
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
|
|
Bug 829327
Change-Id: I611156c307f2af75e3386818e9b5f5e62b3a7acd
Reviewed-on: http://git-master/r/50351
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Tested-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
|
|
disable 3d clock scaling by default.
Change-Id: Iffbe99b1bc8438ab6fc8998d069ef81b1f701a38
Reviewed-on: http://git-master/r/50305
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
|
|
The cpufreq sysfs entry for cpus other than cpu0 in T30 is
populated when the cpu becomes online and removed when the cpu
becomes offline. This caused race condition between setting cpu
governor and bringing cpu offline. The solution is to change
the governor for cpu0 only.
BUG 865113
Change-Id: I36d3f9795c0a1ec51bcde00a497ec85864dc2573
Reviewed-on: http://git-master/r/50155
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
|
|
Bug 855811
For smoothness and rate-limiting, it is useful to synchronize input
events to flip. This patch adds a fake input device that emits an event
on each vsync. This allows the Android input framework, which has
significant infrastructure to monitor input devices in particular, to be
notified of vsync events.
Because there is no input event type/code for this behavior, we use an
undocumented protocol of emitting a single MSC_RAW type event with
scan-code 1. We also do not register ourselves for any other
buttons/keys, which should prevent our device node from being confused
with other input types.
Change-Id: Id5297d2cef93eb53737942b43b2b09b82dee5f6f
Reviewed-on: http://git-master/r/48539
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
|
|
Bug 860231
Change-Id: If7d12ad3f1e37583fda68f7d6f266d7a5765d663
Reviewed-on: http://git-master/r/46599
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
|
|
nvhost_module_add_client(), nvhost_module_remove_client() and
nvhost_module_set_rate() need locking when accessing the client list.
Bug 870328
Change-Id: Idbf8298ec213dca2829f48e9aafd4173806ea00b
Reviewed-on: http://git-master/r/50259
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
|
|
Add ODM-programmable delay in DSI N-shot mode. The purpose is to
improvement power consumption for DIDIM for some cases (e.g. 30 fps
video playback).
Bug 867689
Change-Id: Ib5f1b08e720f3316fed3bd9c4311fce9e4f97286
Reviewed-on: http://git-master/r/49593
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Tested-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
|
|
Adding spi2 master device to enable the SPI2 master
interface.
bug 871218
bug 869972
Change-Id: I1d70f5c07242c98565eae84777917292f280e6cc
Reviewed-on: http://git-master/r/50513
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
|
|
Corrected the condition which checks whether phy
should be powered off or not, depending on the
status of port connection.
Bug 867985
Change-Id: Id5a348b996d9938ffd0830f6ea44e7cc320f0364
Reviewed-on: http://git-master/r/50501
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
|
|
Setting debug console to be UARTB for E1256
bug 871620
Change-Id: Ie1e97997d0b47a3b3eff2ba4ecfb0af5dc920d41
Reviewed-on: http://git-master/r/50498
Tested-by: Kuan Luo <kluo@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
In QVGA 120fps mode, i2c reset commands are done twice.
One in "mode_320x240" and one in common "mode_end" which
would be done for all the modes commonly. So removed QVGA
mode specific one.
Bug 868680
Change-Id: I434cd1e7a9dd1be112ce4640e5d9f5d85e7bbc67
Reviewed-on: http://git-master/r/50459
Tested-by: Krupal Divvela <kdivvela@nvidia.com>
Reviewed-by: Shantanu Nath <snath@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Patrick Shehane <pshehane@nvidia.com>
|
|
Change-Id: I93ddf372cf41a4161dd03127212f95584f4ca24f
Reviewed-on: http://git-master/r/50413
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
|
|
E-Compass does not show correct North-South direction
Fix orientation in board file
Bug 842788
Change-Id: I6a492719afc79f8268f27fb82ee488952ffc9813
Reviewed-on: http://git-master/r/50313
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
|
|
Adding Active-discharge option for SDx rails.
bug 859415
Change-Id: Ia4d3933b9dbf4a0ec646c586f99a7411d2a93371
Reviewed-on: http://git-master/r/50281
Tested-by: Harry Hong <hhong@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
|
|
BUG 867296
Change-Id: I0bce8d7f8ccba39608b1d00449de9d2e988ee541
Reviewed-on: http://git-master/r/50140
Reviewed-by: Xin Xie <xxie@nvidia.com>
Tested-by: Xin Xie <xxie@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
|
|
Adding support for PM311 based system.
bug 870139
Change-Id: I0fa71e42afb6484c9b35b1a8fb29f1f477c3284b
Reviewed-on: http://git-master/r/50012
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
|
|
In T30, different pad ctrl group registers have
different pull up and pull down drive strength field
offsets and maximum values. Modified drive_strength
structure to be able to pass the offsets and masks of
each group to ensure that drive strengths are properly
configured.
Bug 870369
Change-Id: Ib1872417542236c95c3b41a1ad860ef8418f5704
Reviewed-on: http://git-master/r/49872
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
|
|
Updating sdmmc3 and sdmmc4 drive strengths as per
characterization results.
Bug 799568
Change-Id: I48256399db726e1ab6afe01c9d08e47f13a20103
Reviewed-on: http://git-master/r/49861
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
|
|
Enable auto calibration for sdmmc1 and sdmmc3
by default.
Bug 799568
Change-Id: I713884717713304c26a34f76467f9cd011c91606
Reviewed-on: http://git-master/r/49860
Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
as of now usb accessory disables everything else
other than adb. enable rndis along with usb
accessory to enable tethering.
Bug 854919
Reviewed-on: http://git-master/r/#change,48411
(cherry-picked from I658d1d150977e38b707ba4024a9deff3b0439cdc)
Change-Id: Icf3a92378d0ecd6f579515d6d45f469b05780c6a
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/49771
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
|
|
This change contains the following changes due to e450 modem FW change:
1) Change modem BB_RST_OUT polarity and move the wake_lock_timeout where
BB_RST_OUT is low.
2) Disable the AP pullup on BB_RST_OUT.
3) To increase the wake lock timeout to ensure the modem enumeration is
complete before system suspend.
Bug 867501
Change-Id: I8e6638fa8dd8c7af0893ad31693959794e8a4afe
Reviewed-on: http://git-master/r/49743
Reviewed-by: Steve Lin <stlin@nvidia.com>
Reviewed-by: Sheshagiri Shenoy <sshenoy@nvidia.com>
Reviewed-by: Frederic Bossy <fbossy@nvidia.com>
Tested-by: Frederic Bossy <fbossy@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
|
|
only reset gpio is checked if it is valid.
additionally check enable gpio.
gpio validation is checked by gpio_request.
Bug 851098
Change-Id: I5b27310e7126074020ab5bdedc33bb62b14351cc
Reviewed-on: http://git-master/r/49239
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
|
|
Synchronize shutdown with suspend, this is to prevent
race condition between shutdown and suspend
Bug 798849
Change-Id: I61cc2a03cef15d1656ad41bfefff446910210ffd
Reviewed-on: http://git-master/r/49013
Reviewed-by: Bo Yan <byan@nvidia.com>
Tested-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
|
|
Providing the clock source based on preference.
bug 870388
Change-Id: I1d5cda35a4d0d70082bf03d7ee02c8322920691a
Reviewed-on: http://git-master/r/50256
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
Allowing 2% error in calculated baudrate when finding the best clock
source uart controller.
bug 870388
Change-Id: Id765efd7bf087e10bc93a8ba5bd1eec8a8f3ef48
Reviewed-on: http://git-master/r/50255
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
reformat code to fit with Linux coding style, and made blocks in some
larger if-else chains into functions.
Change-Id: If78038d196c8d5cf0326678a7432092179682182
Reviewed-on: http://git-master/r/50179
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
Tested-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
|
|
Generating the KEY_POWER event from the on-key. On-key
is connected through the pmu's PWRON interrupt.
bug 869948
Change-Id: Id57642dfc8529606300ba572106fb75c79e859fb
Reviewed-on: http://git-master/r/49856
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>
Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>
|
|
As each client has its own instance of all shared clocks, minimum clock
rates can be removed from nvhost and be delegated to clock subsystem.
Bug 868554
Change-Id: Iaa59c8a7f9bd6e992280895acf800594bc3b4508
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/49611
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
|
|
- Account for EDP affect on total available MIPS when bringing on-line
(removing off-line) new cpu core. Add multi-core overhead (in percent)
as a parameter - set by default to 10%.
- Add balance level parameter: level value (in percent) defines minimum
speed ratio used by hotplug algorithm to determine if current CPU cores
are balanced, so that another core may be brought on-line. By default
set to 75%
Added tunables:
/sys/module/cpu_tegra3/parameters/mp_overhead
/sys/module/cpu_tegra3/parameters/balance_level
Bug 865176
Bug 867186
Change-Id: I6f2e175e0b5ed14c4b85794949c1e65d0e7f4a36
Reviewed-on: http://git-master/r/49772
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Tested-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
|
|
Add support to query syncpoint ID assigned
to the AVP by nvhost driver.
Change-Id: Id963e6c32f97e095da253de4b7d83ee8fa8d62a8
Reviewed-on: http://git-master/r/49702
Tested-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Isaac Richards <irichards@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
|
|
get_rom_info() retrieves precalibrated INF and MAC, and stores
them for ODM to use. This function is added back.
bug 866141
Change-Id: Ibe4ca3751b2dacc83c2483e9eec80f340ebc7d7d
Reviewed-on: http://git-master/r/48812
Reviewed-by: Qinggang Zhou <qzhou@nvidia.com>
Tested-by: Qinggang Zhou <qzhou@nvidia.com>
Reviewed-by: Gary Zhang <garyz@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
|
|
There is no guarantee that every element in the pin group array
will be used (i.e., initialized) for a particular SOC. Prevent
access to pin group array elements that are not initialized.
Change-Id: I90ea3616f8508b12ffe4a7daf9ff4b2bac057075
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/50059
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
|
|
Add delay after switching the clock source for sclk
Reviewed-on: http://git-master/r/48603
(cherry picked from commit 523934da7227984d05597bac8a9dcd533de2f2b4)
Change-Id: I36c399d95a1f7348b61d01843997fd4f54aa85bd
Reviewed-on: http://git-master/r/49725
Reviewed-by: Luke Huang <lhuang@nvidia.com>
Reviewed-by: Karan Jhavar <kjhavar@nvidia.com>
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
|
|
Register clocks that are shared amongst modules (emc, epp) as separate
clocks. This way setting EMC clock for 2D does not interfere with EMC
clock needs for 3D or MPE.
Bug 868554
Change-Id: I5c7dddc8f1d67969865918e577bd24b274d9e897
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/49603
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
|
|
Fuse programming is possible only on silicon platforms.
Do not enable it for simulation or FPGA platforms.
Change-Id: If1bec072eeaae1ee95720a37e37fcb7c8e8ee464
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/49724
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
|
|
Enabling Spi Slave functionality.
Change-Id: Ic179c1280c668c43569e0eba1aa574b4547c6312
Reviewed-on: http://git-master/r/49662
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
|
|
Set HDMI audio frequency source from HDA driver during
hotplug-in of HDMI device instead of restarting HDA alsa
stream.
Bug 861185
Change-Id: I36dc7a0debd5caebbf1287e5cf5cedfd1cd36dbf
Reviewed-on: http://git-master/r/49868
Tested-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
|
|
Supporting the ES2.0 Ricoh583 based pmu. This pmu has
the core current maximum upto 3A and so no need to have
external dcdc regulator for the core supply.
bug 822562
Change-Id: I47e9a3468501b0999a68aa093df623ac1bde5041
Reviewed-on: http://git-master/r/49853
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
|
|
Adding support for PM305.
bug 846246
Change-Id: Ib036c67c12984668e0b7153f76a1a1d44c5be14f
Reviewed-on: http://git-master/r/49820
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
|
|
This adds the necessary platform data to support HDMI on Harmony
devices.
Bug 868732
Change-Id: Ia972cd2a9695072563478036a7fd1b9c3fd18135
Reviewed-on: http://git-master/r/49729
Reviewed-by: Robert Morell <rmorell@nvidia.com>
Tested-by: Robert Morell <rmorell@nvidia.com>
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
|
|
The phy should not be powered off if the a device/hub is connected,
Check if a device is connected before turning off the phy.
Bug 867985
Change-Id: Id3ef2d39a04450028378350415848305448b693a
Reviewed-on: http://git-master/r/49676
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Tested-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Ramachandrudu Kandhala <rkandhala@nvidia.com>
|
|
Aggregate code for dsi deep sleep
Bug 862427
Change-Id: I5296e6659112642f9fe0fb84bec1d5938014c33a
Reviewed-on: http://git-master/r/49506
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Tested-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
|
|
Use a memcpy with less overhead in tegra_move_framebuffer, this makes
this function about 30 times faster.
Bug 843089
Change-Id: I4ae9127db6d5ff5d9680e3ff2c3d28463395e39b
Reviewed-on: http://git-master/r/49735
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Tested-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Kevin Huang <kevinh@nvidia.com>
|