Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163271
b: refs/heads/master
c: ebf0bd3
h: refs/heads/master
i:
  163269: f27c48e
  163267: 8e83378
  163263: c97b5ee
v: v3
  • Loading branch information
Amit Kucheria authored and Samuel Ortiz committed Sep 17, 2009
1 parent 976cdea commit c6023c3
Show file tree
Hide file tree
Showing 6 changed files with 575 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 12992dd89c84839167f97aae540f2ec889daf782
refs/heads/master: ebf0bd366ed8161e6fbc919705d878ccbfd51624
13 changes: 13 additions & 0 deletions trunk/drivers/mfd/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,19 @@ config TWL4030_CORE
high speed USB OTG transceiver, an audio codec (on most
versions) and many other features.

config TWL4030_POWER
bool "Support power resources on TWL4030 family chips"
depends on TWL4030_CORE && ARM
help
Say yes here if you want to use the power resources on the
TWL4030 family chips. Most of these resources are regulators,
which have a separate driver; some are control signals, such
as clock request handshaking.

This driver uses board-specific data to initialize the resources
and load scripts controling which resources are switched off/on
or reset when a sleep, wakeup or warm reset event occurs.

config MFD_TMIO
bool
default n
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/mfd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ obj-$(CONFIG_TPS65010) += tps65010.o
obj-$(CONFIG_MENELAUS) += menelaus.o

obj-$(CONFIG_TWL4030_CORE) += twl4030-core.o twl4030-irq.o
obj-$(CONFIG_TWL4030_POWER) += twl4030-power.o

obj-$(CONFIG_MFD_MC13783) += mc13783-core.o

Expand Down
10 changes: 10 additions & 0 deletions trunk/drivers/mfd/twl4030-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@
#define twl_has_madc() false
#endif

#ifdef CONFIG_TWL4030_POWER
#define twl_has_power() true
#else
#define twl_has_power() false
#endif

#if defined(CONFIG_RTC_DRV_TWL4030) || defined(CONFIG_RTC_DRV_TWL4030_MODULE)
#define twl_has_rtc() true
#else
Expand Down Expand Up @@ -801,6 +807,10 @@ twl4030_probe(struct i2c_client *client, const struct i2c_device_id *id)
/* setup clock framework */
clocks_init(&client->dev);

/* load power event scripts */
if (twl_has_power() && pdata->power)
twl4030_power_init(pdata->power);

/* Maybe init the T2 Interrupt subsystem */
if (client->irq
&& pdata->irq_base
Expand Down
Loading

0 comments on commit c6023c3

Please sign in to comment.