diff options
author | Rabin Vincent <rabin.vincent@stericsson.com> | 2011-05-05 09:20:56 +0530 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@linaro.org> | 2011-07-22 15:45:56 +0200 |
commit | d43760ba7b30eb45733343f3b2080d4caf559fb3 (patch) | |
tree | 237416643a45670eb550f18a76147d8f9668f702 /drivers/mfd/ab5500-core.c | |
parent | 188b76e7acb1fc361f38c66ca44aa0c45246a017 (diff) |
ab5500: provide a driver for power off
ST-Ericsson Linux next: -
ST-Ericsson ID: WP257121
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I3fcc5c9f1d88c433edc3698da739ecdd11e51711
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/22352
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Diffstat (limited to 'drivers/mfd/ab5500-core.c')
-rwxr-xr-x | drivers/mfd/ab5500-core.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/mfd/ab5500-core.c b/drivers/mfd/ab5500-core.c index 43f7cad48e7..2fc1cf1b101 100755 --- a/drivers/mfd/ab5500-core.c +++ b/drivers/mfd/ab5500-core.c @@ -529,6 +529,22 @@ static struct ab5500_i2c_banks ab5500_bank_ranges[AB5500_NUM_DEVICES] = { }, }, }, + [AB5500_DEVID_POWER] = { + .nbanks = 1, + .bank = (struct ab5500_i2c_ranges []) { + { + .bankid = AB5500_BANK_STARTUP, + .nranges = 1, + .range = (struct ab5500_reg_range[]) { + { + .first = 0x30, + .last = 0x30, + .perm = AB5500_PERM_RW, + }, + }, + } + }, + }, }; #define AB5500_IRQ(bank, bit) ((bank) * 8 + (bit)) |