diff options
author | Rabin Vincent <rabin.vincent@stericsson.com> | 2011-04-08 14:35:42 +0530 |
---|---|---|
committer | Jonas ABERG <jonas.aberg@stericsson.com> | 2011-04-20 07:43:07 +0200 |
commit | 96101b07a6685ffb0f1b066eb58f5b3c170d60be (patch) | |
tree | c59738c94ed0e9e45c58b06c0698a94147831f46 /drivers/mfd | |
parent | c8cfae4b0ed9c8235f6f297fd4aed20567462b54 (diff) |
regulator: add AB5500 support
ST-Ericsson Linux next: -
ST-Ericsson ID: WP257121
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I91faae392552b8d0e993e1935115b63db9e7e268
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/20654
Reviewed-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com>
Diffstat (limited to 'drivers/mfd')
-rwxr-xr-x | drivers/mfd/ab5500-core.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/drivers/mfd/ab5500-core.c b/drivers/mfd/ab5500-core.c index 91d7e8f9e1d..f800b418d04 100755 --- a/drivers/mfd/ab5500-core.c +++ b/drivers/mfd/ab5500-core.c @@ -214,7 +214,7 @@ static struct ab5500_i2c_banks ab5500_bank_ranges[AB5500_NUM_DEVICES] = { }, }, [AB5500_DEVID_REGULATORS] = { - .nbanks = 1, + .nbanks = 2, .bank = (struct ab5500_i2c_ranges[]) { { .bankid = AB5500_BANK_STARTUP, @@ -227,6 +227,17 @@ static struct ab5500_i2c_banks ab5500_bank_ranges[AB5500_NUM_DEVICES] = { }, }, }, + { + .bankid = AB5500_BANK_SIM_USBSIM, + .nranges = 1, + .range = (struct ab5500_reg_range[]) { + { + .first = 0x14, + .last = 0x14, + .perm = AB5500_PERM_RW, + }, + }, + }, }, }, [AB5500_DEVID_SIM] = { @@ -364,7 +375,7 @@ static struct mfd_cell ab5500_devs[AB5500_NUM_DEVICES] = { .id = AB5500_DEVID_POWER, }, [AB5500_DEVID_REGULATORS] = { - .name = "ab5500-regulators", + .name = "ab5500-regulator", .id = AB5500_DEVID_REGULATORS, }, [AB5500_DEVID_SIM] = { |