diff options
author | Todd Fischer <todd.fischer@ridgerun.com> | 2010-04-05 22:23:57 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-05-27 19:37:37 -0400 |
commit | 0bc20bba357f18a0e52f45afc452d0b69cf06f76 (patch) | |
tree | 38a1c5edfd04aa04a37afc404d4779244b740c09 /arch | |
parent | d183fcc975cbbc9c427deb2d7948ab03673995c9 (diff) |
mfd: Add tps6507x board data structure
Add mfd structure which refrences sub-driver initialization data. For example,
for a giving hardware implementation, the voltage regulator sub-driver
initialization data provides the mapping betten a voltage regulator and what
the output voltage is being used for.
Signed-off-by: Todd Fischer <todd.fischer@ridgerun.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-davinci/board-da850-evm.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index abd04932917b..95adfd42d0e6 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/i2c.h> | 17 | #include <linux/i2c.h> |
18 | #include <linux/i2c/at24.h> | 18 | #include <linux/i2c/at24.h> |
19 | #include <linux/i2c/pca953x.h> | 19 | #include <linux/i2c/pca953x.h> |
20 | #include <linux/mfd/tps6507x.h> | ||
20 | #include <linux/gpio.h> | 21 | #include <linux/gpio.h> |
21 | #include <linux/platform_device.h> | 22 | #include <linux/platform_device.h> |
22 | #include <linux/mtd/mtd.h> | 23 | #include <linux/mtd/mtd.h> |
@@ -533,10 +534,14 @@ struct regulator_init_data tps65070_regulator_data[] = { | |||
533 | }, | 534 | }, |
534 | }; | 535 | }; |
535 | 536 | ||
537 | static struct tps6507x_board tps_board = { | ||
538 | .tps6507x_pmic_init_data = &tps65070_regulator_data[0], | ||
539 | }; | ||
540 | |||
536 | static struct i2c_board_info __initdata da850evm_tps65070_info[] = { | 541 | static struct i2c_board_info __initdata da850evm_tps65070_info[] = { |
537 | { | 542 | { |
538 | I2C_BOARD_INFO("tps6507x", 0x48), | 543 | I2C_BOARD_INFO("tps6507x", 0x48), |
539 | .platform_data = &tps65070_regulator_data[0], | 544 | .platform_data = &tps_board, |
540 | }, | 545 | }, |
541 | }; | 546 | }; |
542 | 547 | ||