7 years agousb: otg: tegra: set & read otg state with sysfs
Venu Byravarasu [Mon, 16 Apr 2012 06:38:10 +0000]
usb: otg: tegra: set & read otg state with sysfs

Add support for setting & reading back OTG state with sysfs

bug 947300

Change-Id: I178c3eb6e2b227ca11fee8916e38c6677d3e4cb0
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/96660
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoASoC: WM8903: fix the resume sequence
Joseph Lo [Mon, 16 Apr 2012 06:02:57 +0000]
ASoC: WM8903: fix the resume sequence

The bias control must be done after the default register value
been restored.

Bug 964400

Change-Id: Iefbd96506573d5ea0e1b3123bb34c38e34e75068
Signed-off-by: Joseph Lo <josephl@nvidia.com>
Reviewed-on: http://git-master/r/96658
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoARM: tegra: add several other sysfs/debugfs params
Liang Cheng [Thu, 12 Apr 2012 18:56:05 +0000]
ARM: tegra: add several other sysfs/debugfs params

Bug 939292

Change-Id: Ib0c849418c6c426518948785082fcceb180f3d64
Reviewed-on: http://git-master/r/96250
Tested-by: Liang Cheng (SW) <licheng@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Antti Miettinen <amiettinen@nvidia.com>
Reviewed-by: Mark Peters <mpeters@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 years agoARM: tegra: clock: Apply shared bus ceiling always
Alex Frid [Thu, 15 Mar 2012 06:00:52 +0000]
ARM: tegra: clock: Apply shared bus ceiling always

Apply shared bus ceiling regardless of whether Tegra3 SHARED_CEILING
user is enabled or disabled. Thus, we no longer need to enable ceiling
user - and the bus itself via child-parent relations - to cap the bus
rate.

Bug 954896

Change-Id: I7f96f03f05fd39334c9ee977cd1ac18d86a1fc0d
Signed-off-by: Alex Frid <afrid@nvidia.com>
(cherry picked from commit 07b1a707aa14dcab37f095a3bb78af79a54c399b)
Reviewed-on: http://git-master/r/95739
Reviewed-by: Daniel Solomon <daniels@nvidia.com>
Tested-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agocpufreq: interactive: change timer rate
Shridhar Rasal [Fri, 13 Apr 2012 15:04:42 +0000]
cpufreq: interactive: change timer rate

Tune *timer_rate* used to increase cpu frequency.

bug 943712

Change-Id: I3ded757e21825c475606976c2dcfcd75d9467ef8
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/96525
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Satya Popuri <spopuri@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

7 years agousb: ehci: tegra: use suspend_noirq()/resume_noirq()
Preetham Chandru [Wed, 11 Apr 2012 05:37:38 +0000]
usb: ehci: tegra: use suspend_noirq()/resume_noirq()

usb driver needs to be suspended late and resumed early even
before irqs are disabled/enabled. Without this change the following
two issues are seen during lp0 and lp1 states.

In lp0, when there is a usb wakeup event (by unplugging the usb device)
we get the following error:
"tegra-ehci tegra-ehci.2:fatal error"
"tegra-ehci tegra-ehci.2: HC died; cleaning up"
The above error comes because an irq is generated even before the
usb_resume was called.

A similar issue is seen in lp1 as well.

Bug 954564
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Change-Id: Id25fd2588ec034bd6aa54c17607e322f412adc5c
Reviewed-on: http://git-master/r/95778
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: Cardhu: E1198 DirectTouch setup
Ali Ekici [Tue, 20 Mar 2012 16:29:43 +0000]
arm: tegra: Cardhu: E1198 DirectTouch setup

Modified touch setup and init calls to support DirectTouch
in E1198 19x12 system.

Change-Id: Ide208c4759af15200fb57530e7fbdc023d074c5c
Signed-off-by: Ali Ekici <aekici@nvidia.com>
Reviewed-on: http://git-master/r/91260
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoUSB: cdc-acm: disconnect stuck issue and acm_tty_open crash
Vinayak Pane [Sat, 31 Mar 2012 03:03:07 +0000]
USB: cdc-acm: disconnect stuck issue and acm_tty_open crash

acm_disconnect() should not kill the anchored URB because
they are already killed by stop_data_traffic().

Submit read URBs before control urb is sent because there is a
possibility of response coming immediately after ctrl is sent.

Bug 957744
Bug 961808

(cherry picked from commit 05c10cbe01f0275e5fe121d763692261c51987fc)
Reviewed-on: http://git-master/r/93673
Signed-off-by: Vinayak Pane <vpane@nvidia.com>

Change-Id: I5597e239ec3722afb6b4c1cd5fbe228e30af2a2d
Reviewed-on: http://git-master/r/96585
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agonet: usb: raw-ip: check invalid reference
Shawn Joo(Seongho) [Thu, 8 Mar 2012 08:46:26 +0000]
net: usb: raw-ip: check invalid reference

before point reference check valid.
it prevents null point reference panic.

Bug 954883

Signed-off-by: Shawn Joo(Seongho) <sjoo@nvidia.com>
Reviewed-on: http://git-master/r/88781
(cherry picked from commit aac87c7d9c7cf7563bb79a29d517a6ffdba5874f)

Change-Id: Ica17acb6cc2a1a7ed03f41d8b569fdb6e2098fc9
Reviewed-on: http://git-master/r/96464
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: xmm: add shutdown handler to off cp
Seongho Joo [Wed, 7 Mar 2012 03:32:46 +0000]
arm: tegra: xmm: add shutdown handler to off cp

add shutdown handler to turn off CP when power off
and disable irq for ap wake.

Bug 942968

Signed-off-by: Seongho Joo <sjoo@nvidia.com>
Reviewed-on: http://git-master/r/88188
(cherry picked from commit d37a1900afb9982115f18989b0114bad8f2602bd)

Change-Id: I1541453e21b46149bba08eafb0eadf9a598aa182
Reviewed-on: http://git-master/r/96455
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: xmm: modify CP power sequence
Seongho Joo [Sat, 25 Feb 2012 03:28:14 +0000]
arm: tegra: xmm: modify CP power sequence

modify CP power sequence timing based on modem vendor
spec information.
> 20 ms  : REST low and ON low
> 400 us : RESET high and ON low
> 60 us  : RESEET high and ON high

Bug 943280

Signed-off-by: Seongho Joo <sjoo@nvidia.com>
Reviewed-on: http://git-master/r/85964
(cherry picked from commit 8a6e64228f11d46f502c654bd9a1b508af93a67b)

Change-Id: I01f4fae493627d46707ebfcad676fc0a25b5258d
Reviewed-on: http://git-master/r/96453
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agovideo: tegra: nvmap: Disable CONFIG_NVMAP_ALLOW_SYSMEM
Hiroshi DOYU [Wed, 21 Mar 2012 08:36:15 +0000]
video: tegra: nvmap: Disable CONFIG_NVMAP_ALLOW_SYSMEM

This is necessary to introduce DMA iommu mapping API in nvmap.

Change-Id: I9c043460ca08cc25c4688811a2021820aed5c9f7
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/96378
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

7 years agousb: serial: baseband: Restructure open and close
Vinayak Pane [Tue, 20 Mar 2012 01:18:09 +0000]
usb: serial: baseband: Restructure open and close

This commit reorganizes the usb chr driver for
 (1) Application does not have to rmmod & insmod
 (2) Application recovery mechanism to restart download
 (3) Change memory allocation policy to accommodate in low-mem
 situations.
 (4) Avoid kernel panic when module is not removed

Bug 947621
Bug 956211

Reviewed-on: http://git-master/r/91373
(cherry picked from commit bb5a148979a92191e0dfb4d97d4942f877f18309)

Change-Id: I2679d1d5f94cfe6e7dc98df0026f64cab703fe5c
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/96334
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agousb: cdc-acm: fix anchored urb leak
Vinayak Pane [Mon, 27 Feb 2012 01:32:13 +0000]
usb: cdc-acm: fix anchored urb leak

Anchored urbs needs to put ref count after unanchoring
them at resume.

Bug 944250

Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/86015
(cherry picked from commit eb88ad392bdc05ce216d6adeec54c4f4856ec78a)

Change-Id: I7e5413fb8866db9a15da57166402cb567f07391a
Reviewed-on: http://git-master/r/96333
Tested-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agoarm: tegra: baseband: check usb intf after resume
Vinayak Pane [Thu, 23 Feb 2012 00:55:39 +0000]
arm: tegra: baseband: check usb intf after resume

Check for valid interface after system resume and before
enabling runtime pm.

Bug 944052

Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/85330
(cherry picked from commit a32495671f104e1ba0f5a4940bde17d34b9c87f2)

Change-Id: I77dc559ac0d4b31be756d3e770c04b8e5e7bfe36
Reviewed-on: http://git-master/r/96332
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agonet: usb: raw-ip: do not free skb if TX_BUSY flag set
Vinayak Pane [Sat, 11 Feb 2012 05:00:10 +0000]
net: usb: raw-ip: do not free skb if TX_BUSY flag set

Consume skb buffers only in success case. In fatal error
case stop tx transmission instead. This prevents many retries
and possible kernel crash.

Bug 937178

Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/83290
(cherry picked from commit 974ffdc61f26d86744e1a7b1003117da50df9020)

Change-Id: Ib2b982c0cea91d2ba5e30c04869c4f22dca7ed31
Reviewed-on: http://git-master/r/96331
Tested-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agoinput: keyboard: fully remove interrupt_key driver
Dan Willemsen [Thu, 12 Apr 2012 21:02:14 +0000]
input: keyboard: fully remove interrupt_key driver

a6ecc18e92 removed the sources for the interrupt_key driver, this
removes the include file as well. There are no in-tree users of this
header file.

Change-Id: I90a8c25e8aed5daa6480407b095ebb82d83f7137
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/96262
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoregulator: gpio-switch: Fully remove
Dan Willemsen [Thu, 12 Apr 2012 20:54:30 +0000]
regulator: gpio-switch: Fully remove

0cb53fae65 removed the sources for the gpio-switch-regulator, but missed
the header file. There are no in-tree users of this header file.

Change-Id: Ib497e97b9374025c18c7b20a2006d0c66e2b68a7
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/96258
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agocrypto: tegra-aes: schedule single work handler
Amit Kamath [Thu, 29 Mar 2012 05:48:07 +0000]
crypto: tegra-aes: schedule single work handler

Multiple queue were getting scheduled leading to race condition.

Bug 955259

Change-Id: I7dd8d0d15b17552c3a611449642439ae21fa4b5d
Signed-off-by: Amit Kamath <akamath@nvidia.com>
Reviewed-on: http://git-master/r/93097
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gerrit_Virtual_Submit
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoiommu/tegra-gart: fix spin_unlock in map failure path
Lucas Stach [Mon, 12 Mar 2012 19:15:01 +0000]
iommu/tegra-gart: fix spin_unlock in map failure path

This must have been messed up while merging, the intention was
clearly to unlock there.

Change-Id: Icf525a51d4899dc718710ec56a4d3fd2150501cd
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/96139
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

7 years agoiommu/tegra: smmu: Print device name correctly
Hiroshi DOYU [Fri, 16 Mar 2012 14:28:13 +0000]
iommu/tegra: smmu: Print device name correctly

Print an attached device name correctly.

Change-Id: I8352bd81916936aa2276a51c0161f0c2be709760
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/96138
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

7 years agoasoc: codecs: rt5639/40: Fix false Headset detection
Manoj Gangwal [Fri, 30 Mar 2012 11:04:00 +0000]
asoc: codecs: rt5639/40: Fix false Headset detection

1. Use rt5639/40 internal clk source during jack insert detection.
2. Add delay to 100ms.

Bug 955019

Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/93510
Reviewed-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
(cherry picked from commit 4c07fc1b10ac8abbbf167952071e47aa6179a635)

Change-Id: I4021232674f5432392dc013ddc76c3bf08b44ed0
Reviewed-on: http://git-master/r/95874
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoHID: hid-sony: set sony PS3 controller LEDs over bluetooth
Nagarjuna Kristam [Wed, 11 Apr 2012 05:41:06 +0000]
HID: hid-sony: set sony PS3 controller LEDs over bluetooth

set PS3 controller first LED, when connected over bluetooth.

Bug 847075

Change-Id: Ia32c692cbd5d7e041625d8bccfcb935ae669e82a
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/95804
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoI2C: Add helper macro for i2c_driver boilerplate
Lars-Peter Clausen [Wed, 16 Nov 2011 09:13:36 +0000]
I2C: Add helper macro for i2c_driver boilerplate

This patch introduces the module_i2c_driver macro which is a convenience macro
for I2C driver modules similar to module_platform_driver. It is intended to be
used by drivers which init/exit section does nothing but register/unregister
the I2C driver. By using this macro it is possible to eliminate a few lines of
boilerplate code per I2C driver.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
(cherry picked from mainline commit
7c92784a546d2945b6d6973a30f7134be78eb7a4)

Change-Id: Ic4ea530ae9c00de75e154eba0f74ff93712c81cf
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/95641
Reviewed-by: Automatic_Commit_Validation_User

7 years agodrivercore: Generalize module_platform_driver
Lars-Peter Clausen [Wed, 16 Nov 2011 09:13:35 +0000]
drivercore: Generalize module_platform_driver

This patch generalizes the module_platform_driver macro and introduces a new
module_driver macro. The module_driver macro takes a driver name, a register
and a unregister function for this driver type. Using these it construct the
module init and exit sections which register and unregister the driver. Since
such init/exit sections are commonly found in drivers this macro can be used
to eliminate a lot of boilerplate code.

The macro is not intended to be used by driver modules directly, instead it
should be used to generate bus specific macros for registering drivers like
the module_platform_driver macro.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Cherry-picked from mainline commit
907d0ed1c84114d4e8dafd66af982515d3739c90

Change-Id: Ib83ecc2ca10c53c84ab8ffbc94ee8212d72c2993
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/95640
Reviewed-by: Automatic_Commit_Validation_User

7 years agotegra3: p1852: Update defconfig.
Manoj Chourasia [Fri, 13 Apr 2012 04:39:47 +0000]
tegra3: p1852: Update defconfig.

1. Disable PM_SLEEP
2. Disable Early ACK for MC
3. Enabled TEGRA SDHCI support
4. Disabled DEBUG_LL.

bug 931053

Change-Id: I387d528bef3e6fa85b986c70e805693f7f5ce701
Signed-off-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-on: http://git-master/r/91478
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mohit Kataria <mkataria@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Shankar Subramanian <ssubramanian@nvidia.com>

7 years agoarm:tegra[3]:config: power up wifi chip at boot
Mursalin Akon [Fri, 16 Mar 2012 18:43:46 +0000]
arm:tegra[3]:config: power up wifi chip at boot

power up wifi chip at boot using Kconfig option
TEGRA_PREPOWER_WIFI

Bug 956238

Change-Id: I447eab3b78b22878ade535721c83629959c8c504
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/90673
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm:tegra[3]: power up wifi chip at boot
Mursalin Akon [Fri, 16 Mar 2012 18:38:20 +0000]
arm:tegra[3]: power up wifi chip at boot

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>

7 years agoarm:tegra[3]: make embedded_sdio platform data conditional
Mursalin Akon [Fri, 16 Mar 2012 18:15:56 +0000]
arm:tegra[3]: make embedded_sdio platform data conditional

embedded_sdio is used, iff MMC_EMBEDDED_SDIO
Kconfig is on. This CL makes it explicit.

Additionally, for SDIO sdhci always keep the power on.

Bug 956238

Change-Id: I44e484b0705b50f942f177ee8d95fb363f38b8c1
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/90670
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agommc:host:tegra: make embedded sdio code conditional
Mursalin Akon [Fri, 16 Mar 2012 16:40:34 +0000]
mmc:host:tegra: make embedded sdio code conditional

Enable embedded sdio code, iff MMC_EMBEDDED_SDIO
Kconfig is on.

Bug 956238

Change-Id: I16539f5cad5fc66082af2f569ea36a54c12457e3
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/90655
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoregmap: fix compile errors in regmap-irq.c due to stride changes
Stephen Warren [Wed, 11 Apr 2012 05:37:22 +0000]
regmap: fix compile errors in regmap-irq.c due to stride changes

Commit f01ee60fffa4 ("regmap: implement register striding") caused the
compile errors below. Fix them.

drivers/base/regmap/regmap-irq.c: In function 'regmap_irq_sync_unlock':
drivers/base/regmap/regmap-irq.c:62:12: error: 'map' undeclared (first use in this function)
drivers/base/regmap/regmap-irq.c:62:12: note: each undeclared identifier is reported only once for each function it appears in
drivers/base/regmap/regmap-irq.c: In function 'regmap_irq_enable':
drivers/base/regmap/regmap-irq.c:77:37: error: 'map' undeclared (first use in this function)
drivers/base/regmap/regmap-irq.c: In function 'regmap_irq_disable':
drivers/base/regmap/regmap-irq.c:85:37: error: 'map' undeclared (first use in this function)

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 56806555de5485d6786bf0f8df01b8ed9fc5d006)

Change-Id: I1b0787c81695ddbfb081a1342690a44162474574
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96511
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: implement register striding
Stephen Warren [Mon, 9 Apr 2012 19:40:24 +0000]
regmap: implement register striding

regmap_config.reg_stride is introduced. All extant register addresses
are a multiple of this value. Users of serial-oriented regmap busses will
typically set this to 1. Users of the MMIO regmap bus will typically set
this based on the value size of their registers, in bytes, so 4 for a
32-bit register.

Throughout the regmap code, actual register addresses are used. Wherever
the register address is used to index some array of values, the address
is divided by the stride to determine the index, or vice-versa. Error-
checking is added to all entry-points for register address data to ensure
that register addresses actually satisfy the specified stride. The MMIO
bus ensures that the specified stride is large enough for the register
size.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit f01ee60fffa4dc6c77122121233a793f7f696e67)

Change-Id: I634977dcb0fe9ff95c7932e9195a2c1918eb1c18
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96510
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: fix compilation when !CONFIG_DEBUG_FS
Stephen Warren [Fri, 6 Apr 2012 05:09:20 +0000]
regmap: fix compilation when !CONFIG_DEBUG_FS

Commit 79c64d5 "regmap: allow regmap instances to be named" changed the
prototype of regmap_debugfs_init, but didn't update the dummy inline used
when !CONFIG_DEBUGFS. Fix this.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit abec95adefaeb2229cb28de65f3d32cd149b9dd9)

Change-Id: Ieb049fa9ed0dd26d21a37592ecb25488b0909c0b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96509
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: allow regmap instances to be named
Stephen Warren [Wed, 4 Apr 2012 21:48:29 +0000]
regmap: allow regmap instances to be named

Some devices have multiple separate register regions. Logically, one
regmap would be created per region. One issue that prevents this is that
each instance will attempt to create the same debugfs files. Avoid this
by allowing regmaps to be named, and use the name to construct the
debugfs directory name.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
cherry-picked form mainline d3c242e

Change-Id: Ia3301fb4d28645f1d3593e547f9409ce20c0acfe
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96508
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: validate regmap_raw_read/write val_len
Stephen Warren [Fri, 6 Apr 2012 21:16:03 +0000]
regmap: validate regmap_raw_read/write val_len

val_len should be a multiple of val_bytes. If it's not, error out early.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 851960ba7cb38a6a108d102e4c8b0ab702972e22)

Change-Id: Ic17d4bd832b5ea3e426d00ff5d0ae342b8abba45
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96507
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: mmio: remove some error checks now in the core
Stephen Warren [Fri, 6 Apr 2012 21:17:33 +0000]
regmap: mmio: remove some error checks now in the core

These error checks are implemented in regmap core. Remove the duplicate
code from regmap-mmio.c

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 9878647f4349dbaa46b4026ed9bbf8acfc0de34c)

Change-Id: I32979da1bbca852470c0cb8d8d997b2c77d6703f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96506
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: mmio: convert some error returns to BUG()
Stephen Warren [Fri, 6 Apr 2012 21:17:32 +0000]
regmap: mmio: convert some error returns to BUG()

Some of the error conditions detected by regmap_mmio_*() are pure internal
errors, rather than user-/client-triggerable conditions. Convert these to
BUG().

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 40606dba450830e50420599c52a86cf6ce5c6a14)

Change-Id: Ibf926ca6774e4b3d3dd855d42814065858318628
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96505
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: add MMIO bus support
Stephen Warren [Wed, 4 Apr 2012 21:48:31 +0000]
regmap: add MMIO bus support

This is a basic memory-mapped-IO bus for regmap. It has the following
features and limitations:

* Registers themselves may be 8, 16, 32, or 64-bit. 64-bit is only
  supported on 64-bit platforms.
* Register offsets are limited to precisely 32-bit.
* IO is performed using readl/writel, with no provision for using the
  __raw_readl or readl_relaxed variants.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 45f5ff8107a845854b1d1812ab1d9c5541f08b4d)

Change-Id: Ia84cf3fec838ee687e5b77ce771fc2450abe8436
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96504
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: introduce fast_io busses, and use a spinlock for them
Stephen Warren [Wed, 4 Apr 2012 21:48:28 +0000]
regmap: introduce fast_io busses, and use a spinlock for them

Some bus types have very fast IO. For these, acquiring a mutex for every
IO operation is a significant overhead. Allow busses to indicate their IO
is fast, and enhance regmap to use a spinlock for those busses.

[Currently limited to native endian registers -- broonie]

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit bacdbe077342ecc9e7b3e374cc5a41995116706a)

Change-Id: I337f27a09f2b176b46e8f6d05401957a1abc0609
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96503
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: introduce explicit bus_context for bus callbacks
Stephen Warren [Wed, 4 Apr 2012 21:48:30 +0000]
regmap: introduce explicit bus_context for bus callbacks

The only context needed by I2C and SPI bus definitions is the device
itself; this can be converted to an i2c_client or spi_device in order
to perform IO on the device. However, other bus types may need more
context in order to perform IO. Enable this by having regmap_init accept
a bus_context parameter, and pass this to all bus callbacks. The
existing callbacks simply pass the struct device here. Future bus types
may pass something else.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 0135bbcc7a0cc056f0203ff839466236b8e3dc19)

Change-Id: I36b3fb3433af6e6f1e673fc6c73ba21f7eb4d054
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96502
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Stephen Warren <swarren@nvidia.com>

7 years agoregmap: prevent division by zero in rbtree_show
Stephen Warren [Wed, 4 Apr 2012 21:48:33 +0000]
regmap: prevent division by zero in rbtree_show

If there are no nodes in the cache, nodes will be 0, so calculating
"registers / nodes" will cause division by zero.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
(cherry picked from commit c04c1b9ee8f30c7a3a25e20e406247003f634ebe)

Change-Id: I30047f1e0bd08417794c3d19e2fe1d480a74e083
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96501
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: Export regcache_sync_region()
Mark Brown [Tue, 3 Apr 2012 12:08:53 +0000]
regmap: Export regcache_sync_region()

regcache_sync_region() isn't going to be useful to most drivers if we
don't export it since otherwise they can't use it when built modular.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit e466de05194b666114713b753e2f4be1d4200140)

Change-Id: I38b12c791f0a462ebbbfbe4a6b25cfa3265ffacc
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96500
Reviewed-by: Automatic_Commit_Validation_User

7 years agoregmap: Use pad_bits and reg_bits when determining register format.
Marc Reilly [Fri, 16 Mar 2012 01:11:43 +0000]
regmap: Use pad_bits and reg_bits when determining register format.

This change combines any padding bits into the register address bits when
determining register format handlers to use the next byte-divisible
register size.
A reg_shift member is introduced to the regmap struct to enable fixup
of the reg format.
Format handlers now take an extra parameter specifying the number of
bits to shift the value by.

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit d939fb9a78b4743bc4bc3cc415894ed42050c5cc)

Change-Id: I80921cfa4dd6aea5e7038927a313baeb347689e2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96499
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: Add support for device with 24 data bits.
Marc Reilly [Fri, 16 Mar 2012 01:11:42 +0000]
regmap: Add support for device with 24 data bits.

Add support for devices with 24 data bits.

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit ea279fc5619e2541a0c28196b0fa06447d9ad026)

Change-Id: I69ccd494eb8622c442d55294c24ecd6acd78cfcb
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96498
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: rbtree: Fix register default look-up in sync
Lars-Peter Clausen [Fri, 23 Mar 2012 10:04:57 +0000]
regmap: rbtree: Fix register default look-up in sync

The code currently passes the register offset in the current block to
regcache_lookup_reg. This works fine as long as there is only one block and with
base register of 0, but in all other cases it will look-up the default for a
wrong register, which can cause unnecessary register writes. This patch fixes
it by passing the actual register number to regcache_lookup_reg.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: <stable@vger.kernel.org>
(cherry picked from commit 4b4e9e43fd210e0cd2a5d29357e7c000e13e08ae)

Change-Id: Ibed70828471423df5432fea67316ca9ad8aeb52a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96497
Reviewed-by: Automatic_Commit_Validation_User

7 years agobitops: remove for_each_set_bit_cont()
Akinobu Mita [Fri, 23 Mar 2012 22:02:04 +0000]
bitops: remove for_each_set_bit_cont()

Remove for_each_set_bit_cont() after confirming that no one uses
for_each_set_bit_cont() anymore.

[sfr@canb.auug.org.au: regmap: cope with bitops API change]
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Robert Richter <robert.richter@amd.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Cherry-pick from mainline 0a329d2

Change-Id: I6655096e5d58a1215b225035daa8dd8a2f6327d9
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96496
Reviewed-by: Automatic_Commit_Validation_User

7 years agoregmap: Fix future missing prototype of devres_alloc() and friends
Stephen Warren [Fri, 9 Mar 2012 20:17:28 +0000]
regmap: Fix future missing prototype of devres_alloc() and friends

[Fix for breakage which will be introduced during the merge window via
header reworks in another tree, the regmap tree does include device.h
but Paul's tree breaks that.  Reworded subject to reflect -- broonie]

regmap.s uses devres_alloc() and others that are prototyped in device.h.
Include that to solve the following:

drivers/base/regmap/regmap.c: In function 'devm_regmap_init':
drivers/base/regmap/regmap.c:331:2: error: implicit declaration of function 'devres_alloc' [-Werror=implicit-function-declaration]
drivers/base/regmap/regmap.c:338:3: error: implicit declaration of function 'devres_add' [-Werror=implicit-function-declaration]
drivers/base/regmap/regmap.c:340:3: error: implicit declaration of function 'devres_free' [-Werror=implicit-function-declaration]
drivers/base/regmap/regmap.c: In function '_regmap_raw_write':
drivers/base/regmap/regmap.c:421:5: error: implicit declaration of function 'dev_err' [-Werror=implicit-function-declaration]

Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit f5d6eba74b8aac7d4bf646c5445807aa6a247e6c)

Change-Id: I38c390fb5085bf3e815aa5c4048d4f89d8698563
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96495

7 years agoregmap: Fix rbtree block base in sync
Mark Brown [Mon, 5 Mar 2012 23:28:49 +0000]
regmap: Fix rbtree block base in sync

Otherwise we'll end up running with bogus register numbers.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit f9353e70bcebd00cd182d946083afd7d8eddd259)

Change-Id: I7615fd2d63ec29dd869585fb20a151067b53c72a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96494
Reviewed-by: Automatic_Commit_Validation_User

7 years agoregcache: Make sure we sync register 0 in an rbtree cache
Mark Brown [Mon, 5 Mar 2012 23:31:39 +0000]
regcache: Make sure we sync register 0 in an rbtree cache

Most of the current users have register 0 as a volatile register or don't
have a register 0 so it's not been apparent that it's not getting synced.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 994f5db65ef4b83db0321842bd43c6bc0a51f000)

Change-Id: Iaada5ae8ba705f45049eb1c85a1909a9f192f765
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96493
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: delete unused module.h from drivers/base/regmap files
Paul Gortmaker [Wed, 29 Feb 2012 00:28:02 +0000]
regmap: delete unused module.h from drivers/base/regmap files

Remove unused module.h and/or replace with export.h
as required.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 19694b5ea1d3a723dafe9544b5ee9a935414dc28)

Change-Id: Icf76b35f6d0d1f4720ca6d51fa9b2ebf123604b1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96492
Reviewed-by: Automatic_Commit_Validation_User

7 years agoregmap: Fix x86_64 breakage
Mark Brown [Mon, 27 Feb 2012 14:35:33 +0000]
regmap: Fix x86_64 breakage

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit a0941e562e8008804f9fe4400315ceb164752fac)

Change-Id: Ic582509f74612ddc48f854116553e2f40954e4ae
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96491
Reviewed-by: Automatic_Commit_Validation_User

7 years agoregmap: Allow drivers to sync only part of the register cache
Mark Brown [Thu, 23 Feb 2012 20:53:37 +0000]
regmap: Allow drivers to sync only part of the register cache

Provide a regcache_sync_region() operation which allows drivers to
write only part of the cache back to the hardware. This is intended
for use in cases like power domains or DSP memories where part of the
device register map may be reset without fully resetting the device.

Fully supporting these devices is likely to require additional work to
make specific regions of the register map cache only while they are in
reset, but this is enough for most devices.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 4d4cfd1656b5f6c88eae51c40741a695b108b006)

Change-Id: Ia8cccf7986611485ae090e234bb68084671d7641
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96490
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: Supply ranges to the sync operations
Mark Brown [Thu, 23 Feb 2012 19:31:04 +0000]
regmap: Supply ranges to the sync operations

In order to allow us to support partial sync operations add minimum and
maximum register arguments to the sync operation and update the rbtree
and lzo caches to use this new information. The LZO implementation is
obviously not good, we could exit the iteration earlier, but there may
be room for more wide reaching optimisation there.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit ac8d91c801905a061ca883dca427a5e19602a1e7)

Change-Id: I92ceee1c704ea7c864bff0559d36cf34554c3ba5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96489
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: Add tracepoints for cache only and cache bypass
Mark Brown [Thu, 23 Feb 2012 22:02:57 +0000]
regmap: Add tracepoints for cache only and cache bypass

Useful for figuring out where the hardware interaction went or came from.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 5d5b7d4f80ed6e861c1c220fd57e3dad0912526e)

Change-Id: Ie7c0659458a3a4a2f100d86db552c606d9da0e6b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96488
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: Mark the cache as clean after a successful sync
Mark Brown [Thu, 23 Feb 2012 22:05:59 +0000]
regmap: Mark the cache as clean after a successful sync

Previously the cache would never be marked clean, meaning syncs would
never be suppressed which isn't the end of the world but could be
inefficient.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 6ff7373809a9b4eb644d83e2e299da297e1cbffa)

Change-Id: I52aef73bc6bc0df10dd64da92d0bf591e44ddc0e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96487
Reviewed-by: Automatic_Commit_Validation_User

7 years agoregmap: Remove default cache sync implementation
Mark Brown [Thu, 23 Feb 2012 20:48:40 +0000]
regmap: Remove default cache sync implementation

It's not used as all cache types have sync operations so it's just dead
code which never gets tested.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit c3ec23288a92e20e0aff84a4cb6fbc7cc9bcf567)

Change-Id: I3ba8c8afee9a7c945dc0a52e87c9f4a357e79308
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96486
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: Skip hardware defaults for LZO caches
Mark Brown [Thu, 23 Feb 2012 20:11:58 +0000]
regmap: Skip hardware defaults for LZO caches

Saves some I/O when resyncing; we assume that syncs start from the device
reset state.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit a3c3774176838bbfa4f6e48133644903818e56dc)

Change-Id: Ib4471bd06856ccd2652f21dd0d9d51319df00939
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96485
Reviewed-by: Automatic_Commit_Validation_User

7 years agoregmap: Expose the driver name in debugfs
Dimitris Papastamos [Wed, 22 Feb 2012 14:20:09 +0000]
regmap: Expose the driver name in debugfs

Add a file called 'name' containing the name of the driver.

Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit f0c2319f9f196726ebe4d7508fd8fbd804988db3)

Change-Id: Id67e73cfd573a71377fe6bbc5c3068718822ef38
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96484
Reviewed-by: Automatic_Commit_Validation_User

7 years agoregmap: Add support for writing to regmap registers via debugfs
Dimitris Papastamos [Wed, 22 Feb 2012 12:43:50 +0000]
regmap: Add support for writing to regmap registers via debugfs

To enable writing to the regmap debugfs registers file users will
need to modify the source directly and #define REGMAP_ALLOW_WRITE_DEBUGFS.
The reason for this is that it is dangerous to expose this
functionality in general where clients could potentially be PMICs.

[A couple of minor style updates -- broonie]

Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 09c6ecd394105c4864a0e409e181c9b1578c2a63)

Change-Id: Ia9408880e25d5060796ab79812a023def00b10bc
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96483
Reviewed-by: Automatic_Commit_Validation_User

7 years agoregmap: Support raw reads from cached registers
Mark Brown [Tue, 21 Feb 2012 19:12:47 +0000]
regmap: Support raw reads from cached registers

Fall back to a register by register read to do so; most likely we'll be
cache only so the overhead will be low.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit b8fb5ab156055b745254609f4635fcfd6b7dabc8)

Change-Id: I9f3b6011f4704987c5a014de8b30a2e6e3196d21
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96482
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: Allow users to query the size of register values
Mark Brown [Fri, 17 Feb 2012 22:20:14 +0000]
regmap: Allow users to query the size of register values

Generic infrastructure based on top of regmap may want to operate on
blocks of data and therefore find it useful to find the size of the
register values. Provide an accessor operation for this.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cherry-pick from mainline a6539c3

Change-Id: I455ace158eea38f6a92938f6330ec074bc18f0da
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96481
Reviewed-by: Automatic_Commit_Validation_User

7 years agoregmap: Implement support for 32 bit registers and values
Mark Brown [Fri, 17 Feb 2012 23:58:25 +0000]
regmap: Implement support for 32 bit registers and values

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 7d5e525b9ceda0e3b85da0acdaa2de19fea51edc)

Change-Id: I6f6fec44b439b4916eba7f32ece1fa011e3ac021
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96480
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarch: arm: configs: Disable Custom Regulatory
Nitin Bindal [Wed, 11 Apr 2012 12:00:33 +0000]
arch: arm: configs: Disable Custom Regulatory

By default BCMDHD_CUSTOM_REGULATORY_DOMAIN is enabled.

Custom Regulatory domain(CRD) set by bcmdhd driver does not
enable 5GHz band scan. If we disable this config variable,
then CRD of driver will not be used and Kernel will use
default CRD which supports both 2.4 GHz and 5 GHz scan.
So, disable this config variable.

Bug 947472

Change-Id: I051db89cba38e2bb07eb716eec2e74611ad89f06
Signed-off-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-on: http://git-master/r/95850
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agodrivers: hwmon: tsensor: Enable tsensor hw reset
Joshua Primero [Wed, 28 Mar 2012 22:52:53 +0000]
drivers: hwmon: tsensor: Enable tsensor hw reset

Enabled hw reset in tsensor if temperature exceeds given
temperature limit.

bug 966994

Change-Id: I2444c97c97c45b2d190a224388876d592d983c7f
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/93030
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarm: tegra3: defconfig: Enable function tracer
Prashant Gaikwad [Thu, 29 Mar 2012 05:08:22 +0000]
arm: tegra3: defconfig: Enable function tracer

Bug 953102

Change-Id: I4ef0a32c10df7be63ca5f048eceecd222fa8a8ab
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/89721
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agodrivers: net: bcmdhd: enable CRD through kernel config
Nitin Bindal [Wed, 11 Apr 2012 10:37:00 +0000]
drivers: net: bcmdhd: enable CRD through kernel config

Enable Custom Regulatory Domain(CRD) support, only if
BCMDHD_CUSTOM_REGULATORY_DOMAIN kernel config is set.
By default BCMDHD_CUSTOM_REGULATORY_DOMAIN is enabled.

Bug 947472

Change-Id: I40ea3c3c531d4e309c0928db396b9cc832be43cc
Signed-off-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-on: http://git-master/r/88266
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoARM: tegra: fuse: Use module_param_cb
Juha Tukkinen [Tue, 10 Apr 2012 12:14:29 +0000]
ARM: tegra: fuse: Use module_param_cb

Use module_param_cb instead of obsolete module_param_call.

Change-Id: I25a86cfa0782e373b82eb58f92058ff6a38fdcba
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/95646
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agovideo: tegra: nvavp: Remove T30 A01 workaround
Juha Tukkinen [Tue, 10 Apr 2012 11:06:11 +0000]
video: tegra: nvavp: Remove T30 A01 workaround

Remove CONFIG_TEGRA_SMMU_BASE_AT_E0000000 workaround as T30 A01 is no
longer supported.

Change-Id: Ic47d0aa16c555bd7821416fff29d723924c6118b
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/95645
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra: common: Remove T30 A01 SMMU workaround
Juha Tukkinen [Tue, 10 Apr 2012 10:53:21 +0000]
ARM: tegra: common: Remove T30 A01 SMMU workaround

Remove CONFIG_TEGRA_SMMU_BASE_AT_E0000000 workaround as T30 A01 is no
longer supported.

Change-Id: I0ba6c838984e3c3ec401057925727c9596a8075f
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/95644
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarch: ARM: Tegra: removing the akm8975 driver
Ramalingam C [Tue, 10 Apr 2012 12:03:12 +0000]
arch: ARM: Tegra: removing the akm8975 driver

Undefining the config variable CONFIG_SENSORS_AK8975, since we are
using drivers/misc/inv_mpu/compass/ak8975.c as compass driver.

Bug 965154

Change-Id: Ie6ca5b08cee9dba5375457f39d52ae9ebf97ddf9
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: http://git-master/r/95636
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra: clock: Update common clock table
Alex Frid [Tue, 10 Apr 2012 00:13:14 +0000]
ARM: tegra: clock: Update common clock table

- Moved table entries for always running core clocks on the top of
the table (this way we guarantee that changing parent of such clock
down the road would automatically enable new parent).

- Removed unnecessary pll_a and pll_a_out0 entries (effectively they
are "NOP") - actual audio configuration is done in per-board tables.

- Removed unnecessary pll_c and pll_c_out1 entries for emulation
platforms

Change-Id: I8327d6313804419405dd93af08f369db02fcbf25
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/95465
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoarm: tegra: enterprise: Firmware update support for pn544
Mohan T [Tue, 10 Apr 2012 12:41:25 +0000]
arm: tegra: enterprise: Firmware update support for pn544

Enable firmware GPIO for board E1205 with fab A03 or A04.

Bug 959290

Change-Id: Ide17c4e6dcda8c2c9690f581b8714486a3c4e532
Signed-off-by: Mohan T <mohant@nvidia.com>
Reviewed-on: http://git-master/r/95389
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra: power: Cancel hotplug work upon disable
Antti P Miettinen [Fri, 6 Apr 2012 11:21:26 +0000]
ARM: tegra: power: Cancel hotplug work upon disable

Cancel hotplug work when auto hotplug gets disabled to prevent
e.g. cpu_up() getting called in LP cluster.

Bug 965777

Change-Id: I058fe6a5e0c2fd3203ce9bc951d0973b60e033e0
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/95076
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 years agotracing: Add tracepoints for cluster switch
Antti P Miettinen [Mon, 2 Apr 2012 11:27:21 +0000]
tracing: Add tracepoints for cluster switch

Simple trace points for measuring cluster switch latencies.

Bug 958262

Change-Id: Ia1e5e13131d5e55aaa0a44e9e8b5196539df54e7
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/93841
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 years agoarm: tegra: xmm: CP wakeup and system suspend
Seshendra Gadagottu [Thu, 29 Mar 2012 21:04:43 +0000]
arm: tegra: xmm: CP wakeup and system suspend

To handle race condition between CP wakeup and system suspend
following policy enforced:
1. If system suspend happens first, then buffer the CP wake
   request and will abort the suspend at the end of device suspend
   complete.
2. If CP wakeup happens first, then system suspend starts then abort
   the system suspend immediately.

Bug 938553
Bug 948198
Bug 943035

Signed-off-by: Seshendra Gadagottu<sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/83130
(cherry picked from commit b2bd06368d3f6e16e5a7dd81c76dda0293de301b)

Change-Id: Ic7024aa739472a666f1274ccd7c9722259d54fa5
Reviewed-on: http://git-master/r/93384
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Tested-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agotracing: Add tracepoints for CPU scaling
Antti P Miettinen [Thu, 29 Mar 2012 04:14:40 +0000]
tracing: Add tracepoints for CPU scaling

Simple tracepoints for measuring CPU scaling latencies.

Bug 960307

Change-Id: I6fd4e67e352a2ff134da58866d943457506d080b
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/93080
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 years agotracing: Add tracepoints for hotplug
Antti P Miettinen [Wed, 28 Mar 2012 17:42:55 +0000]
tracing: Add tracepoints for hotplug

Simple trace points for measuring hotplug up/down times.

Bug 960310

Change-Id: I1927aae6edb74cba7ca3e9522d138407b48325dc
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/92920
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Satya Popuri <spopuri@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 years agousb: host: tegra: regrouping ehci functions
Venu Byravarasu [Thu, 29 Mar 2012 10:08:44 +0000]
usb: host: tegra: regrouping ehci functions

Re-arranged standard and modified ehci functions into
two separate groups, for more readability

Change-Id: I320a50ed44c3f0990692ae38b55dc6a04fe7c378
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/92823
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agousb: cdc_ether: Add new product id for the 5AE profile
Jonathan Roux [Tue, 24 Jan 2012 15:33:16 +0000]
usb: cdc_ether: Add new product id for the 5AE profile

Bug 924863

Change-Id: I10d3036ce19f8c1f37e57998c204f3a72bd42f85
Signed-off-by: Steve Lin <stlin@nvidia.com>
Reviewed-on: http://git-master/r/89718
Reviewed-by: Automatic_Commit_Validation_User

7 years agomisc: tegra-cryptodev: Enhancement to support user space tests
vjagadish [Fri, 9 Dec 2011 04:15:56 +0000]
misc: tegra-cryptodev: Enhancement to support user space tests

Enchancement to support user space tests such as OFB, CTR, sha1,
sha224,sha256, sha384, sha512.

BUG 903375

Change-Id: I52767978bd3758671ec6fff988223ac046f5579c
Reviewed-on: http://git-master/r/84296
Tested-by: Venkata Jagadish <vjagadish@nvidia.com>
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agovideo: tegra: fb: Add interface to nvdps.
Kevin Huang [Tue, 10 Apr 2012 01:03:51 +0000]
video: tegra: fb: Add interface to nvdps.

Provide /sys/class/graphics/fb0/device/nvdps to change video mode
on-the-fly without resetting window layout like fb_set_var(). This
allows flicker free changes in refresh rate.

nvdps sysfs file takes an integer, and selects the closest matching mode
with the same or higher refresh rate. Reading the file displays the
current refresh rate.

Bug 560152

Change-Id: Id5c1eafaf338b99fa9742202b38ccbfc238b77d5
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/95473
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agoARM: tegra: cardhu: add multiple LCD modes
Jon Mayo [Thu, 22 Mar 2012 00:25:23 +0000]
ARM: tegra: cardhu: add multiple LCD modes

Add 50Hz and 48Hz refresh modes on internal panel.
Choose pll_d as default for internal panel.
Choose pll_d2 as default for HDMI output.
Print a warning when touch panel work around code is being used.

Bug 560152

Change-Id: Ia155e02b4fdc4ea3a749c3f1e9edea94786441ba
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/94890
Reviewed-by: Automatic_Commit_Validation_User

7 years agovideo: tegra: dc: load video mode during vblank
Jon Mayo [Fri, 16 Mar 2012 19:50:59 +0000]
video: tegra: dc: load video mode during vblank

Handle mode set for FBIOPUT_VSCREENINFO at the end of a frame (during
vblank). This elimiates the work around that requires disabling then
enabling display to change modes.
Adds a spinlock to protect irq code from updates to tegra_dc_mode structure.

Bug 560152

Change-Id: I5d2175f01a177a32d685b46e5af4f78efeec0786
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/90688
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agovideo: tegra: resolve compilation time warnings
Sanjay Singh Rawat [Thu, 29 Mar 2012 06:49:38 +0000]
video: tegra: resolve compilation time warnings

bug 949219

Change-Id: I1ed8d08de4bdba4643b2ae4e8320db6f9c97a18f
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/92310
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoarm: tegra20: pm: Reduce CPU min voltage to 0.8V
Prashant Gaikwad [Tue, 3 Apr 2012 06:11:19 +0000]
arm: tegra20: pm: Reduce CPU min voltage to 0.8V

Bug 955718

Reviewed-on: http://git-master/r/94164
(cherry picked from commit 1be4c3a94dd95a9c0fae2317983b0d7e44e39a1f)

Reviewed-on: http://git-master/r/94407
(cherry picked from commit 00799dbe21f5835b729f2fe9fcf95f30aa0b149f)

Change-Id: I909a15ead2d4ecb3dc416b8d3863fa8cb3645501
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/94164
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoARM: tegra: cardhu: integrate latest mem tables
Ray Poudrier [Fri, 23 Mar 2012 06:12:47 +0000]
ARM: tegra: cardhu: integrate latest mem tables

Bug 918704

Change-Id: I83bdce136df07d744c69a75a38bb5ae1d541055e
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/91935
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: dvfs: optimized bin0 entries
Prashant Gaikwad [Tue, 11 Oct 2011 11:58:17 +0000]
arm: tegra: dvfs: optimized bin0 entries

Updated optimized bin0 entries for AP25 CPU dvfs.

Bug 955718
Bug 643434

Reviewed-on: http://git-master/r/57303
(cherry picked from commit 6e5c759fcdfcdf4d1306fe5c9e33bf2dd5458076)

Reviewed-on: http://git-master/r/94406
(cherry picked from commit 61317b2ed1a259d5c0460aec8bc1d9f4e2275922)

Change-Id: I84cccfde1c0fa292c64a9acd2c96643416f00735
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/90306
Reviewed-by: Automatic_Commit_Validation_User

7 years agopower: max17048: correct i2c error handling
Chandler Zhang [Sat, 31 Mar 2012 09:14:31 +0000]
power: max17048: correct i2c error handling

Correct max17048_read_word() function related i2c error handling

Signed-off-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-on: http://git-master/r/93702
(cherry picked from commit ba8bdc020c6e2ed57255786b3d61b870b0b5a516)

Change-Id: Ice9845bb39288442bd6637eedeaf6de6ad1acbda
Reviewed-on: http://git-master/r/95346
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chandler Zhang <chazhang@nvidia.com>
Tested-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Tested-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agopower: max17048: addition of new properties
Syed Rafiuddin [Wed, 4 Apr 2012 06:04:02 +0000]
power: max17048: addition of new properties

Addition of health and capacity level properties

Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/93532
(cherry picked from commit 9892e1c30828bdcbf6ae53af72bb1a39cd19993e)

Change-Id: I28e9822772316ba7389a3c9518cf4778606dbfb7
Reviewed-on: http://git-master/r/95345
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chandler Zhang <chazhang@nvidia.com>
Tested-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Tested-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agoarm: tegra: whistler: use common platform data struct
Ravindra Lokhande [Fri, 6 Apr 2012 14:25:01 +0000]
arm: tegra: whistler: use common platform data struct

Change-Id: I46e81bf2ad285433e61c3a1bc7f5e1c9aca655fa
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/95102
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoasoc: wm8753 machine: use common platform data
Ravindra Lokhande [Fri, 6 Apr 2012 14:22:23 +0000]
asoc: wm8753 machine: use common platform data

use common platform data for machine driver

Change-Id: I90e0d2f47aed46da650305d98f6525287adfaf04
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/95101
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agovideo: tegra: dtv: Remove check for dma req list before cancelling
Laxman Dewangan [Fri, 6 Apr 2012 13:17:06 +0000]
video: tegra: dtv: Remove check for dma req list before cancelling

Removing the checking whether dma req queue is empty or not
before canceling/stopping dma.
This function cannot guarantee correct result as there may be the
race between hw and sw status update.
If client wants to cancel dma req, it can directly call tegra_dma_cancel().

As the function tegra_dma_is_empty() does not return correct result,
it will be depreciated from the dma apis.

Change-Id: I3f5ebee8a7be345b02fcd8a69530c9b53207ef28
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/95090
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agoconfig: tegra[3]: enable devtmpfs
Mursalin Akon [Wed, 4 Apr 2012 16:15:08 +0000]
config: tegra[3]: enable devtmpfs

Enable devtmpfs to allow init of
Ubuntu 12.04/Debian Sid/Fedora 17 to
continue booting successfully.

Bug 948495

Change-Id: Ia43f79cae31964c8a6bb76d1a936fd70e6038b53
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/94556
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregulator: max8907: Add driver specific data for regulator
Alok Chauhan [Fri, 17 Feb 2012 09:47:38 +0000]
regulator: max8907: Add driver specific data for regulator

Adding the regulator driver specific information and passing
this information through regulator driver data. This struture
is containing delay operation which is require to voltage to
be settle down after enabling rail.

Bug 939242

Change-Id: I7da6ec487fe5f04857d3fd5f06a383b4a8fbcc7b
Signed-off-by: Alok Chauhan <alokc@nvidia.com>
Reviewed-on: http://git-master/r/94500
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoarm: tegra: Add delay support in regulator
Alok Chauhan [Fri, 17 Feb 2012 09:41:01 +0000]
arm: tegra: Add delay support in regulator

bug 939242

Change-Id: I552c664fbac5519cc97593ebec3884f716158887
Signed-off-by: Alok Chauhan <alokc@nvidia.com>
Reviewed-on: http://git-master/r/94499
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agovideo: tegra: host: move resources to devices
Mayuresh Kulkarni [Tue, 3 Apr 2012 06:32:20 +0000]
video: tegra: host: move resources to devices

- as of now the resources needed by all the host1x
modules are part of resource list of host1x device
- now that each module is a nvhost_device of its own,
so it should hold the resources it needs instead of
host1x device holding it for them
- each device that needs its resources gets it in its
_probe() using a helper API in bus_client.c

Bug 871237

Change-Id: Ia7c63fcf40cbc5db76d4d8339294a0e9ce75e352
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/94166
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agonvavp: Add ioctl for wake_avp
Mandar Potdar [Mon, 2 Apr 2012 14:06:05 +0000]
nvavp: Add ioctl for wake_avp

Add wake_avp ioctl which provides way for user-mode driver to
simply wake-up the AVP.

bug 914504

Change-Id: I3075ba944d39749559f2c340a4851902821c344f
Signed-off-by: Mandar Potdar <mpotdar@nvidia.com>
Reviewed-on: http://git-master/r/93877
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoarm: tegra: p1852: Use GMI to untristate gpio X5/6
Amlan Kundu [Mon, 9 Apr 2012 10:39:39 +0000]
arm: tegra: p1852: Use GMI to untristate gpio X5/6

Using SPI1/SPI2 as initial pinmux for gpio X5/6 affecting spi
controller. GMI A26/27 can be pinmuxed for SPI1_CS0 and SPI1_SCK balls.
It will not affect GMI behavior because A26/27 presently not used on
p1852.

bug 927551
bug 875873

Reviewed-on: http://git-master/r/90551
(cherry-picked from 8b0123f835a671072b23abbe4fdb9d9aa16463cb)

Change-Id: If39c93daa7d1b73777b56c729b0c9b9149770440
Signed-off-by: Amlan Kundu <akundu@nvidia.com>
Reviewed-on: http://git-master/r/92499
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Gerrit_Virtual_Submit

7 years agoarm: tegra: Change DDC freq to 10KHz
Hao Tang [Wed, 7 Mar 2012 09:21:08 +0000]
arm: tegra: Change DDC freq to 10KHz

Bug 949759

Reduce DDC freq. The original freq is 100KHz, but some edid communication
at this rate on some monitors like acer H243HX may fail

Change-Id: Ib087025a35ff085b4bf618b70100fe6670c3eaec
Signed-off-by: Hao Tang <htang@nvidia.com>
Reviewed-on: http://git-master/r/88261
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoRevert "video: tegra: dc: Disable 1080p stereo support"
Andrija Bosnjakovic [Tue, 24 Jan 2012 08:59:56 +0000]
Revert "video: tegra: dc: Disable 1080p stereo support"

This reverts commit 75009bc2b1a0a2d2efbe1d166647e789b8a1b9f1.

In order to work around bug 869099,
this mode has been temporarily disabled.

Since the bug is not so visible, enable again.

Change-Id: Ie71dac4ecf620cd96796e2fde361b45dc7141497
Reviewed-on: http://git-master/r/92157
Reviewed-by: Alok Ahuja <alahuja@nvidia.com>
Reviewed-by: Aleksandar Odorovic <aodorovic@nvidia.com>
Reviewed-by: Dhiren Bhatia <dbhatia@nvidia.com>
Reviewed-by: Andrija Bosnjakovic <abosnjakovic@nvidia.com>
Tested-by: Andrija Bosnjakovic <abosnjakovic@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>