- 22 Mar, 2012 12 commits
-
-
Benoit Cousson authored
Add the DT support for the I2C GPIO expander inside the twl4030. Note: The pdata parameters still have to be properly adapted using dedicated bindings. Signed-off-by:
Benoit Cousson <b-cousson@ti.com> Acked-by:
Felipe Balbi <balbi@ti.com> Acked-by:
Grant Likely <grant.likely@secretlab.ca> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Benoit Cousson authored
Do not use the board pdata for irq_base, but allocate them dynamically to allow a proper support of SPARSE_IRQ. Fix an unneeded line wrap. Signed-off-by:
Benoit Cousson <b-cousson@ti.com> Acked-by:
Felipe Balbi <balbi@ti.com> Acked-by:
Grant Likely <grant.likely@secretlab.ca> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Peter Ujfalusi authored
On OMAP4 platform audio has separate IC, it is no longer part of the pmic chip. Prevent twl-core to claim the 0x4b address, which belongs to the twl6040 audio IC. Signed-off-by:
Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by:
Samuel Ortiz <sameo@linux.intel.com> Signed-off-by:
Benoit Cousson <b-cousson@ti.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Benoit Cousson authored
Since a structure device is available now, use the dev_ macros instead of the pr_ ones. Clean some badly formatted comments. Remove some unused variables. Move some variable to the place they belong. Clean some badly wrapped lines. Align variable definition Add missing braces in if-then-else block. Add blank line for better readability. Move stuff here and there... Conflicts: drivers/mfd/twl-core.c Signed-off-by:
Benoit Cousson <b-cousson@ti.com> Cc: Felipe Balbi <balbi@ti.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Felipe Balbi authored
__ffs() will be far faster than the for loop used. Signed-off-by:
Felipe Balbi <balbi@ti.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Benoit Cousson authored
twl4030 is using a two level irq controllers infrastruture. So far, only the first level was using dynamic irq_desc allocation to be able to have irq_domain support for device tree. There is a need to allocate separate irq_descs for the SIH too to avoid hacking the first level with interrupts from the second level. Add an irq_base parameter to allow the caller to provide the base from pdata or from dynamic allocation. Affect TWL4030_NR_IRQS to the twl-core IRQs only. Moreover that will allow the extraction of the of_node pointer for further Device Tree conversion. Signed-off-by:
Felipe Balbi <balbi@ti.com> Signed-off-by:
Benoit Cousson <b-cousson@ti.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Benoit Cousson authored
During DT adaptation, the irq_alloc_desc was added into twl-core, but due to the rather different and weird IRQ management required by the twl4030, it is much better to have a different approach for it. The issue is that twl4030 uses a two level IRQ mechanism but handles all the PWR interrupts as part of the twl-core interrupt range. It ends up with a range of 16 interrupts total for CORE and PWR. The other twl4030 functionalities already have a dedicated driver and thus their IRQs and irqdomain can and should be defined localy. twl6030 is using a single level IRQ controller and thus does not require any trick. Move the irq_alloc_desc and irq_domain_add_legacy in twl4030-irq and twl6030-irq. Allocate together CORE and PWR IRQs for twl4030-irq. Conflicts: drivers/mfd/twl-core.c Signed-off-by:
Benoit Cousson <b-cousson@ti.com> Acked-by:
Felipe Balbi <balbi@ti.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Benoit Cousson authored
The twl-core exported functions are already declared in twl-core.h Include the header file instead or re-declaring the functions. Signed-off-by:
Benoit Cousson <b-cousson@ti.com> Acked-by:
Felipe Balbi <balbi@ti.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Felipe Balbi authored
This driver doesn't really need <plat/cpu.h>, so remove it. Signed-off-by:
Felipe Balbi <balbi@ti.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Felipe Balbi authored
With sparse IRQs the driver shouldn't depend at all on any IRQ values coming from board-file. Remove every occurences of pdata->irq_base/end. Signed-off-by:
Felipe Balbi <balbi@ti.com> Signed-off-by:
Benoit Cousson <b-cousson@ti.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Benoit Cousson authored
With the introduction of dynamically allocated IRQ in the twl6030 driver, the board files can no longer rely of static IRQ defines like before. Retrieve the value dynamically allocated from the mmc -> twl6030 init callback. Note: The Panda board does not seems to use the card detect IRQ. Signed-off-by:
Benoit Cousson <b-cousson@ti.com> Acked-by:
Tony Lindgren <tony@atomide.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Benoit Cousson authored
Card detect IRQ from the TWL6030 used to be provided to the MMC controller code using a statically allocated IRQ scheme: card_detect_irq = TWL6030_IRQ_BASE + MMCDETECT_INTR_OFFSET; This is no longer valid in a SPARSE_IRQ context since there is no more pre-defined TWL6030_IRQ_BASE. Return the proper card detect IRQ value in the twl6030_mmc_card_detect_config that will be called from the MMC controller. Signed-off-by:
Benoit Cousson <b-cousson@ti.com> Cc: Felipe Balbi <balbi@ti.com> Cc: Tony Lindgren <tony@atomide.com> Cc: Rajendra Nayak <rnayak@ti.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
- 21 Mar, 2012 1 commit
-
-
Samuel Ortiz authored
This reverts commit 02b09703. Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
- 20 Mar, 2012 3 commits
-
-
Venu Byravarasu authored
TPS65090 is a Texas Instrument PMIC. It contains 3 Step-Down converters, 2 always on LDO's and 7 current limited load switches. Signed-off-by:
Venu Byravarasu <vbyravarasu@nvidia.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Dmitry Torokhov authored
da9052_i2c_remove() can and should be marked as __devexit. Signed-off-by:
Dmitry Torokhov <dtor@mail.ru> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Laxman Dewangan authored
Fixing build error reported by Stephen Rothwell: drivers/built-in.o: In function `rc5t583_i2c_init': rc5t583.c:(.init.text+0xb3db): undefined reference to `i2c_register_driver' drivers/built-in.o: In function `rc5t583_i2c_probe': rc5t583.c:(.devinit.text+0x8fa0): undefined reference to `regmap_init_i2c' drivers/built-in.o: In function `rc5t583_i2c_exit': rc5t583.c:(.exit.text+0x708): undefined reference to `i2c_del_driver' Signed-off-by:
Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
- 16 Mar, 2012 17 commits
-
-
Ying-Chun Liu (PaulLiu) authored
Signed-off-by:
Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org> Acked-by:
Shawn Guo <shawn.guo@linaro.org> Reviewed-by:
Arnd Bergmann <arnd@arndb.de> Reviewed-by:
Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: Venu Byravarasu <vbyravarasu@nvidia.com> Cc: Peter Korsgaard <jacmet@sunsite.dk> Cc: Rob Lee <rob.lee@linaro.org> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Venu Byravarasu authored
'struct gpio_chip' is declared in include/asm-generic/gpio.h which is included by include/linux/gpio.h. However without including gpio.h, TPS65910.h declares a member of this type as part of 'struct tps65910' declaration. This causes compilation error, if gpio.h is not included before including tps65910.h, in source files. Signed-off-by:
Venu Byravarasu <vbyravarasu@nvidia.com> Reviewed-by:
Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Bengt Jonsson authored
Signed-off-by:
Bengt Jonsson <bengt.g.jonsson@stericsson.com> Signed-off-by:
Linus Walleij <linus.walleij@linaro.org> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Bengt Jonsson authored
Signed-off-by:
Bengt Jonsson <bengt.g.jonsson@stericsson.com> Reviewed-by:
Mattias Nilssson <mattias.i.nilsson@stericsson.com> Reviewed-by:
Jonas Aberg <jonas.aberg@stericsson.com> Signed-off-by:
Linus Walleij <linus.walleij@linaro.org> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Mattias Nilsson authored
This patch removes the obsolete hwacc implementation in the DB8500 PRCMU driver. Signed-off-by:
Mattias Nilsson <mattias.i.nilsson@stericsson.com> Reviewed-by:
Jonas Aberg <jonas.aberg@stericsson.com> Signed-off-by:
Linus Walleij <linus.walleij@linaro.org> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Axel Lin authored
Use DIV_ROUND_CLOSEST to replace sm501fb_round_div function. Signed-off-by:
Axel Lin <axel.lin@gmail.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Laxman Dewangan authored
Ricoh power management IC RC5T583 contains is multi functional device having multiple sub devices inside this. This device has multiple dcdc/ldo regulators, gpios, interrupt controllers, on-key, RTCs, ADCs. This device have 4 DCDCs, 8 LDOs, 8 GPIOs, 6 ADCs, 3 RTCs etc. Signed-off-by:
Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Mattias Nilsson authored
This patch updates the AB8500 driver to make use of the I2C read-modify-write service in the PRCMU firmware. Signed-off-by:
Mattias Nilsson <mattias.i.nilsson@stericsson.com> Reviewed-by:
Mattias Wallin <mattias.wallin@stericsson.com> Signed-off-by:
Linus Walleij <linus.walleij@linaro.org> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Mattias Nilsson authored
This patch adds driver support for the I2C read-modify-write service in the U8500 PRCMU firmware. Signed-off-by:
Mattias Nilsson <mattias.i.nilsson@stericsson.com> Reviewed-by:
Jonas ABERG <jonas.aberg@stericsson.com> Signed-off-by:
Linus Walleij <linus.walleij@linaro.org> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Bengt Jonsson authored
This builds upon the changes done to support AB9540 so as also to support the AB8505 derivative of the AB8500 circuit. Signed-off-by:
Bengt Jonsson <bengt.g.jonsson@stericsson.com> Signed-off-by:
Linus Walleij <linus.walleij@linaro.org> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Rabin Vincent authored
This disadvantage of having it interruptible is that it would appear to work OK in most situations, but in the rare case that this call does fail, it can lead to misconfiguration of the AB, such as a regulator not being turned off and leading to a platform power consumption increase. There's no real benefit to having this interruptible. Make it a plain mutex_lock. The non-interruptability matches other low-level I/O functions such as SPI and I2C. Signed-off-by:
Rabin Vincent <rabin.vincent@stericsson.com> Signed-off-by:
Linus Walleij <linus.walleij@linaro.org> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Mark Brown authored
Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Mark Brown authored
It's causing confusion with the regulator level field of the same name and serves no useful function. Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Laxman Dewangan authored
This was the copy-paste issue in reg cache support code where variable name for regmap config was not really starting from the device name, it was starting from some other device name. Fixing this so that variable name contains actual device name. Signed-off-by:
Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Chanwoo Choi authored
MAX8997 device does not support haptic function of it. This patch adds platform data for for MAX8997 haptic driver. 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> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Mark Brown authored
Should be all bits clear. Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Mark Brown authored
Some volatile registers accidentally had defaults added, though there were no harmful side effects other than increased memory consumption. Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
- 06 Mar, 2012 7 commits
-
-
Samuel Ortiz authored
Reported by Andrew Morton <akpm@linux-foundation.org>, with i386 allmodconfig: ERROR: "pm8606_osc_disable" [drivers/video/backlight/88pm860x_bl.ko] undefined! ERROR: "pm8606_osc_enable" [drivers/video/backlight/88pm860x_bl.ko] undefined! ERROR: "pm8606_osc_disable" [drivers/leds/leds-88pm860x.ko] undefined! ERROR: "pm8606_osc_enable" [drivers/leds/leds-88pm860x.ko] undefined! Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Axel Lin authored
Signed-off-by:
Axel Lin <axel.lin@gmail.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Daniel Lezcano authored
This patch allows to check if the other core is in WFI mode. It is the last check the idle routine has to do before entering into the retention state. Signed-off-by:
Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Daniel Lezcano authored
This patch allows to check if there are some pending irqs on the prcmu. Signed-off-by:
Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Daniel Lezcano authored
In the case we go to the retention mode, we decoupled the gic in order to have the A9 core to reach a stable WFI state. But we want the prcmu to wake up the A9 when the gic has a pending irq which is done by copying the gic settings to the to the prcmu. Signed-off-by:
Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Daniel Lezcano authored
This patch introduces a routine to check if there are some irqs pending on the gic. Usually this check is not relevant because it appears racy (an irq can arrive right after this check), but in the ux500 it makes sense because the prcmu decouples the gic from the A9 cores. Signed-off-by:
Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Daniel Lezcano authored
I missed in my previous patch the A9_MASK_REQ[_MASK] were already defined. Let's remove the duplicate definitions. The PRCMU_GIC_DELAY macro could be removed as it is not really useful here. Signed-off-by:
Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-