- 31 Jul, 2011 7 commits
-
-
Mark Brown authored
In preparation for some additional work on the wm831x AUXADC code move the support into a separate file. This is a simple code motion patch, there should be no functional changes. Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Mark Brown authored
Ensure that there's no possibility of loosing an AUXADC interrupt by reading the conversion result in the IRQ handler when using interrupts. Otherwise it's possible that under very heavy load a new conversion could be initiated before the acknowledgement for a previous interrupt has happened. Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Mark Brown authored
Use irq_allocate_desc() to get the IRQ range, which turns into a noop on non-sparse systems. Since all existing users are non-sparse there should be no compatibility issues. Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Mark Brown authored
The RTC uses the 32.768kHz crystal so if it's not enabled (and it can only be enabled via OTP or InstantConfig, not runtime software) the RTC can't function. Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Mark Brown authored
Allow platform data to flag the touchscreen as disabled so that if the touch driver is built in we don't end up causing lots of work by spuriously detecting touchscreen activity on systems where it isn't in use. Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Mark Brown authored
Systems using this functionality will be uncommon. Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Mark Brown authored
The WM831x IRQ set_type() operation is doing a direct register write when called but since set_type() is called with the bus lock held this isn't legal and could cause deadlocks in the IRQ core. Fix this by posting the updates into an array and syncing in the bus_sync_unlock() callback. Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
- 27 Jul, 2011 1 commit
-
-
Richard Röjfors authored
This patch simplifies the platform data slightly, by removing unused elements. Signed-off-by:
Richard Röjfors <richard.rojfors@pelagicore.com> Signed-off-by:
Mauro Carvalho Chehab <mchehab@redhat.com>
-
- 09 Jul, 2011 1 commit
-
-
Jean-François Dagenais authored
This fixes a regression in 3.0 reported by Paul Parsons regarding the removal of the msleep(1) in the ds1wm_reset() function: : The linux-3.0-rc4 DS1WM 1-wire driver is logging "bus error, retrying" : error messages on an HP iPAQ hx4700 PDA (XScale-PXA270): : : <snip> : Driver for 1-wire Dallas network protocol. : DS1WM w1 busmaster driver - (c) 2004 Szabolcs Gyurko : 1-Wire driver for the DS2760 battery monitor chip - (c) 2004-2005, Szabolcs Gyurko : ds1wm ds1wm: pass: 1 bus error, retrying : ds1wm ds1wm: pass: 2 bus error, retrying : ds1wm ds1wm: pass: 3 bus error, retrying : ds1wm ds1wm: pass: 4 bus error, retrying : ds1wm ds1wm: pass: 5 bus error, retrying : ... : : The visible result is that the battery charging LED is erratic; sometimes : it works, mostly it doesn't. : : The linux-2.6.39 DS1WM 1-wire driver worked OK. I haven't tried 3.0-rc1, : 3.0-rc2, or 3.0-rc3. This sleep should not be required on normal circuitry provided the pull-ups on the bus are correctly adapted to the slaves. Unfortunately, this is not always the case. The sleep is restored but as a parameter to the probe function in the pdata. [akpm@linux-foundation.org: coding-style fixes] Reported-by:
Paul Parsons <lost.distance@yahoo.com> Tested-by:
Paul Parsons <lost.distance@yahoo.com> Signed-off-by:
Jean-François Dagenais <dagenaisj@sonatest.com> Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
-
- 08 Jul, 2011 1 commit
-
-
Donggeun Kim authored
This patch supports power supply APIs for MAX8998/LP3974. Signed-off-by:
Donggeun Kim <dg77.kim@samsung.com> Signed-off-by:
MyungJoo Ham <myungjoo.ham@samsung.com> Signed-off-by:
KyungMin Park <kyungmin.park@samsung.com> Acked-by:
Samuel Ortiz <sameo@linux.intel.com> Signed-off-by:
Anton Vorontsov <cbouatmailru@gmail.com>
-
- 07 Jul, 2011 4 commits
-
-
Peter Ujfalusi authored
There is no need to have two different types for tracking the selected PLL. Use only the defines, when dealing with the PLLs. Signed-off-by:
Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Peter Ujfalusi authored
Remove the twl6040_request_irq/free_irq inline functions, and use direct calls instead in the core driver to register the threaded irq. Signed-off-by:
Peter Ujfalusi <peter.ujfalusi@ti.com> Reviewed-by:
Felipe Balbi <balbi@ti.com> Acked-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Peter Ujfalusi authored
In order to operate correctly twl6040 needs correct interrupt configuration. The slave drivers (vibra, and ASoC codec) will refuse to probe, if the interrupt configuration is not correct. In this way some checks can be removed from the code. Signed-off-by:
Peter Ujfalusi <peter.ujfalusi@ti.com> Reviewed-by:
Felipe Balbi <balbi@ti.com> Acked-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Peter Ujfalusi authored
Provide the irq number for slaves via resource on the platform device. The irq number configuration is done in the twl6040-core at probe time, so machine drivers do not need to be modified. Signed-off-by:
Peter Ujfalusi <peter.ujfalusi@ti.com> Reviewed-by:
Felipe Balbi <balbi@ti.com> Acked-by:
Samuel Ortiz <sameo@linux.intel.com>
-
- 05 Jul, 2011 3 commits
-
-
Axel Lin authored
Base on Mark's comment [1], I make the Kconfig entry invisible to users. [1] https://lkml.org/lkml/2011/5/14/136 Signed-off-by:
Axel Lin <axel.lin@gmail.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Axel Lin authored
Fix below build error: CC drivers/mfd/tps65911-comparator.o drivers/mfd/tps65911-comparator.c: In function 'tps65911_comparator_probe': drivers/mfd/tps65911-comparator.c:131: error: 'struct tps65910_platform_data' has no member named 'vmbch_threshold' drivers/mfd/tps65911-comparator.c:137: error: 'struct tps65910_platform_data' has no member named 'vmbch2_threshold' make[2]: *** [drivers/mfd/tps65911-comparator.o] Error 1 make[1]: *** [drivers/mfd] Error 2 make: *** [drivers] Error 2 Signed-off-by:
Axel Lin <axel.lin@gmail.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Keshava Munegowda authored
This reverts commit 7e6502d5. Oops are produced during initialization of ehci and ohci drivers. This is because the run time pm apis are used by the driver but the corresponding hwmod structures and initialization is not merged. hence revering back the commit id 7e6502d5 Signed-off-by:
Keshava Munegowda <keshava_mgowda@ti.com> Reported-by:
Luciano Coelho <coelho@ti.com> Acked-by:
Felipe Balbi <balbi@ti.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
- 04 Jul, 2011 5 commits
-
-
Peter Ujfalusi authored
Pass twl4030_codec_data instead of the twl4030_audio_data for the ASoC codec driver. Signed-off-by:
Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Misael Lopez Cruz authored
TWL6040 IC provides analog high-end audio codec functions for handset applications. It contains several audio analog inputs and outputs as well as vibrator support. It's connected to the host processor via PDM interface for audio data communication. The audio modules are controlled by internal registers that can be accessed by I2C and PDM interface. TWL6040 MFD will be registered as a child of TWL-CORE, and will have two children of its own: twl6040-codec and twl6040-vibra. This driver is based on TWL4030 and WM8350 MFD drivers. Signed-off-by:
Misael Lopez Cruz <misael.lopez@ti.com> Signed-off-by:
Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Peter Ujfalusi authored
Allign the platform data names for twl4030 audio submodule: twl4030_audio_data: for the core MFD driver twl4030_codec_data: for ASoC codec driver twl4030_vibra_data: for the input/ForceFeedback driver To avoid breakage, change all depending drivers, files to use the new types. Signed-off-by:
Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Peter Ujfalusi authored
Rename the driver, and header file from twl4030-codec to twl4030-audio. To avoid breakage change depending drivers at the same time. Signed-off-by:
Peter Ujfalusi <peter.ujfalusi@ti.com> CC: Misael Lopez Cruz <misael.lopez@ti.com> Acked-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Peter Ujfalusi authored
In preparation of renaming the driver from twl4030-codec to twl4030-audio, first do some clean ups in the driver, which does not cause any problems outside. Signed-off-by:
Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by:
Samuel Ortiz <sameo@linux.intel.com>
-
- 10 Jun, 2011 1 commit
-
-
Joe Perches authored
Several fixes as well where the +1 was missing. Done via coccinelle scripts like: @@ struct resource *ptr; @@ - ptr->end - ptr->start + 1 + resource_size(ptr) and some grep and typing. Mostly uncompiled, no cross-compilers. Signed-off-by:
Joe Perches <joe@perches.com> Signed-off-by:
Jiri Kosina <jkosina@suse.cz>
-
- 28 May, 2011 2 commits
-
-
Liam Girdwood authored
Signed-off-by:
Liam Girdwood <lrg@ti.com> Acked-by:
Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Mattias Wallin authored
With the addition of a device platform mfd_cell pointer, MFD drivers can go back to passing platform data back to their sub drivers. This allows for an mfd_cell->mfd_data removal and thus keep the sub drivers MFD agnostic. This is mostly needed for non MFD aware sub drivers. Signed-off-by:
Mattias Wallin <mattias.wallin@stericsson.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
- 27 May, 2011 10 commits
-
-
Jorge Eduardo Candelaria authored
This driver adds functionality to the tps65911 chip driver. Two of the comparators are configurable by software and measures VCCS voltage to detect high or low voltage scenarios. Signed-off-by:
Jorge Eduardo Candelaria <jedu@slimlogic.co.uk> Acked-by:
Samuel Ortiz <sameo@linux.intel.com> Signed-off-by:
Liam Girdwood <lrg@slimlogic.co.uk>
-
Jorge Eduardo Candelaria authored
The GPIO driver should reside in drivers/gpio/ for better organization. Signed-off-by:
Jorge Eduardo Candelaria <jedu@slimlogic.co.uk> Acked-by:
Grant Likely <grant.likely@secretlab.ca> Signed-off-by:
Liam Girdwood <lrg@slimlogic.co.uk>
-
Jorge Eduardo Candelaria authored
TPS65911 adds new interrupt sources, as well as two new registers to handle them, one for interrupt status and one for interrupt masking. The added irqs are: -VMBCH2 - Low and High threshold -GPIO1-8 - Rising and falling edge detection -WTCHDG - Watchdog interrupt -PWRDN - PWRDN reset interrupt The code should handle these new registers only when the chip version is TPS65911. Signed-off-by:
Jorge Eduardo Candelaria <jedu@slimlogic.co.uk> Acked-by:
Samuel Ortiz <sameo@linux.intel.com> Signed-off-by:
Liam Girdwood <lrg@slimlogic.co.uk>
-
Jorge Eduardo Candelaria authored
The TPS65911 is the next generation of the TPS65910 family of PMIC chips. It adds a few features: - Watchdog Timer - PWM & LED generators - Comparators for system control status It also adds a set of Interrupts and GPIOs, among other things. The driver exports a function to identify between different versions of the tps65910 family, allowing other modules to identify the capabilities of the current chip. Signed-off-by:
Jorge Eduardo Candelaria <jedu@slimlogic.co.uk> Acked-by:
Samuel Ortiz <sameo@linux.intel.com> Signed-off-by:
Liam Girdwood <lrg@slimlogic.co.uk>
-
Axel Lin authored
If bytes == (TPS65910_MAX_REGISTER + 1), we have a buffer overflow when doing memcpy(&msg[1], src, bytes). Signed-off-by:
Axel Lin <axel.lin@gmail.com> Acked-by:
Samuel Ortiz <sameo@linux.intel.com> Signed-off-by:
Liam Girdwood <lrg@slimlogic.co.uk>
-
Jorge Eduardo Candelaria authored
On May 10, 2011, at 9:27 PM, Stephen Rothwell wrote: > Hi Jorge, > > On Tue, 10 May 2011 12:30:36 -0500 Jorge Eduardo Candelaria <jedu@slimlogic.co.uk> wrote: >> >> On May 10, 2011, at 3:38 AM, Liam Girdwood wrote: >> >>> On Tue, 2011-05-10 at 12:44 +1000, Stephen Rothwell wrote: >>>> Hi Liam, >>>> >>>> After merging the voltage tree, today's linux-next build (x86_64 >>>> allmodconfig) failed like this: >>>> >>>> ERROR: "tps65910_gpio_init" [drivers/mfd/tps65910.ko] undefined! >>>> ERROR: "tps65910_irq_init" [drivers/mfd/tps65910.ko] undefined! >>>> ERROR: "irq_modify_status" [drivers/mfd/tps65910-irq.ko] undefined! >>>> ERROR: "irq_set_chip_and_handler_name" [drivers/mfd/tps65910-irq.ko] undefined! >>>> ERROR: "handle_edge_irq" [drivers/mfd/tps65910-irq.ko] undefined! >>>> >>>> I have used the voltage tree from next-20110509 for today. >>> >>> Jorge, could you send a fix for this today. >> >> The following patch should solve this: >> >> From: Jorge Eduardo Candelaria <jedu@slimlogic.co.uk> >> MFD: Fix TPS65910 build >> >> Support for tps65910 as a module is not available. The driver can >> only be compiled as built-in. OTOH, the regulator driver can still >> be built as module without breaking the compilation. >> >> Signed-off-by: Jorge Eduardo Candelaria <jedu@slimlogic.co.uk> > > Today (even with the above patch included) I got these errors from the > x86_64 allmodconfig build: > > tps65910.c:(.text+0xf4140): undefined reference to `i2c_master_send' > drivers/built-in.o: In function `tps65910_i2c_read': > tps65910.c:(.text+0xf41d2): undefined reference to `i2c_transfer' > drivers/built-in.o: In function `tps65910_i2c_init': > tps65910.c:(.init.text+0xcb83): undefined reference to `i2c_register_driver' > drivers/built-in.o: In function `tps65910_i2c_exit': > tps65910.c:(.exit.text+0x6e0): undefined reference to `i2c_del_driver' > > I have used the voltage tree from next-20110509 again today. Following patch should fix the dependency problems. Please review: From: Jorge Eduardo Candelaria <jedu@slimlogic.co.uk> [PATCH] MFD: TPS65910: Fix I2C dependency TPS65910 driver can only be compiled built-in, so the I2C driver should be as well. Signed-off-by:
Jorge Eduardo Candelaria <jedu@slimlogic.co.uk> Signed-off-by:
Liam Girdwood <lrg@slimlogic.co.uk>
-
Jorge Eduardo Candelaria authored
On May 10, 2011, at 3:38 AM, Liam Girdwood wrote: > On Tue, 2011-05-10 at 12:44 +1000, Stephen Rothwell wrote: >> Hi Liam, >> >> After merging the voltage tree, today's linux-next build (x86_64 >> allmodconfig) failed like this: >> >> ERROR: "tps65910_gpio_init" [drivers/mfd/tps65910.ko] undefined! >> ERROR: "tps65910_irq_init" [drivers/mfd/tps65910.ko] undefined! >> ERROR: "irq_modify_status" [drivers/mfd/tps65910-irq.ko] undefined! >> ERROR: "irq_set_chip_and_handler_name" [drivers/mfd/tps65910-irq.ko] undefined! >> ERROR: "handle_edge_irq" [drivers/mfd/tps65910-irq.ko] undefined! >> >> I have used the voltage tree from next-20110509 for today. > > Jorge, could you send a fix for this today. > > Thanks > > Liam > The following patch should solve this: From: Jorge Eduardo Candelaria <jedu@slimlogic.co.uk> MFD: Fix TPS65910 build Support for tps65910 as a module is not available. The driver can only be compiled as built-in. OTOH, the regulator driver can still be built as module without breaking the compilation. Signed-off-by:
Jorge Eduardo Candelaria <jedu@slimlogic.co.uk> Signed-off-by:
Liam Girdwood <lrg@slimlogic.co.uk>
-
Graeme Gregory authored
This module controls the interrupt handling for the tps chip. The interrupt sources are the following: - GPIO falling/rising edge detection - Battery voltage below/above threshold - PWRON signal - PWRHOLD signal - Temperature detection - RTC alarm and periodic event Signed-off-by:
Graeme Gregory <gg@slimlogic.co.uk> Signed-off-by:
Jorge Eduardo Candelaria <jedu@slimlogic.co.uk> Reviewed-by:
Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by:
Samuel Ortiz <sameo@linux.intel.com> Signed-off-by:
Liam Girdwood <lrg@slimlogic.co.uk>
-
Graeme Gregory authored
TPS65910 has one configurable GPIO that can be used for several purposes. Subsequent versions of the TPS chip support more than one GPIO. Signed-off-by:
Graeme Gregory <gg@slimlogic.co.uk> Signed-off-by:
Jorge Eduardo Candelaria <jedu@slimlogic.co.uk> Acked-by:
Grant Likely <grant.likely@secretlab.ca> Signed-off-by:
Liam Girdwood <lrg@slimlogic.co.uk>
-
Graeme Gregory authored
The TPS65910 chip is a power management IC for multimedia and handheld devices. It contains the following components: - Regulators - GPIO controller - RTC The tps65910 core driver is registered as a platform driver and provides communication through I2C with the host device for the different components. Signed-off-by:
Graeme Gregory <gg@slimlogic.co.uk> Signed-off-by:
Jorge Eduardo Candelaria <jedu@slimlogic.co.uk> Acked-by:
Samuel Ortiz <sameo@linux.intel.com> Signed-off-by:
Liam Girdwood <lrg@slimlogic.co.uk>
-
- 26 May, 2011 5 commits
-
-
Keshava Munegowda authored
The usbhs core driver does not enable/disable the interface and functional clocks; These clocks are handled by hwmod and runtime pm, hence insted of the clock enable/disable, the runtime pm APIS are used. however,the port clocks and tll clocks are handled by the usbhs core. Signed-off-by:
Keshava Munegowda <keshava_mgowda@ti.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Paul Parsons authored
The size of the TC6380AF SD Host Controller Configuration area is 0x200 bytes (assuming registers are aligned on 32-bit boundaries), not 0x400 bytes. Source: Toshiba TC6380AF Specification sections 4.2 and 4.3.1 Signed-off-by:
Paul Parsons <lost.distance@yahoo.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Axel Lin authored
1. Return proper error if omap_usbhs_alloc_child fails 2. In the case of goto err_ehci, we should call platform_device_unregister(ehci) instead of platform_device_put(ehci) because we have already added the platform device to device hierarchy. Signed-off-by:
Axel Lin <axel.lin@gmail.com> Signed-off-by:
Axel Lin <axel.lin@gmail.com> Tested-by:
Keshava Munegowda <keshava_mgowda@ti.com> Acked-by:
Felipe Balbi <balbi@ti.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Keshava Munegowda authored
The disabling of clocks and freeing GPIO are changed to fix the occurrence of the crash of rmmod of ehci and ohci drivers. The GPIOs should be freed after the spin locks are unlocked. Signed-off-by:
Keshava Munegowda <keshava_mgowda@ti.com> Acked-by:
Felipe Balbi <balbi@ti.com> Cc: stable@kernel.org Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Paul Parsons authored
Add LED support for the HTC ASIC3. Underlying support is provided by the mfd/asic3 and leds/leds-asic3 drivers. An example configuration is provided by the pxa/hx4700 platform. Signed-off-by:
Paul Parsons <lost.distance@yahoo.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-