diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2014-07-28 07:24:38 -0400 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2014-08-26 06:13:51 -0400 |
commit | 9e9bc235580829e3a06ccd13aa10110478c2e093 (patch) | |
tree | 045ee1e0735c58d192102e03184607d76ef3bf26 /arch/arm/mach-davinci | |
parent | 79436f870c910bfa296c76e9f43a9aae69f1b46d (diff) |
ARM: davinci: board-da850-evm: Add needed regulators for tlv320aic3106 codec
IOVDD: tps65070's dcdc2
AVDD and DRVDD: fixed regulator derived from 5V via TPS73701DCQ
DVDD: fixed regulator derived from 5V via TPS73701DCQ
This patch needed to be able to probe the audio codec.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci')
-rw-r--r-- | arch/arm/mach-davinci/board-da850-evm.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index 77d8968336df..fa11415e906a 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #include <linux/platform_data/uio_pruss.h> | 35 | #include <linux/platform_data/uio_pruss.h> |
36 | #include <linux/regulator/machine.h> | 36 | #include <linux/regulator/machine.h> |
37 | #include <linux/regulator/tps6507x.h> | 37 | #include <linux/regulator/tps6507x.h> |
38 | #include <linux/regulator/fixed.h> | ||
38 | #include <linux/spi/spi.h> | 39 | #include <linux/spi/spi.h> |
39 | #include <linux/spi/flash.h> | 40 | #include <linux/spi/flash.h> |
40 | #include <linux/wl12xx.h> | 41 | #include <linux/wl12xx.h> |
@@ -842,6 +843,16 @@ static int da850_lcd_hw_init(void) | |||
842 | return 0; | 843 | return 0; |
843 | } | 844 | } |
844 | 845 | ||
846 | /* Fixed regulator support */ | ||
847 | static struct regulator_consumer_supply fixed_supplies[] = { | ||
848 | /* Baseboard 3.3V: 5V -> TPS73701DCQ -> 3.3V */ | ||
849 | REGULATOR_SUPPLY("AVDD", "1-0018"), | ||
850 | REGULATOR_SUPPLY("DRVDD", "1-0018"), | ||
851 | |||
852 | /* Baseboard 1.8V: 5V -> TPS73701DCQ -> 1.8V */ | ||
853 | REGULATOR_SUPPLY("DVDD", "1-0018"), | ||
854 | }; | ||
855 | |||
845 | /* TPS65070 voltage regulator support */ | 856 | /* TPS65070 voltage regulator support */ |
846 | 857 | ||
847 | /* 3.3V */ | 858 | /* 3.3V */ |
@@ -865,6 +876,7 @@ static struct regulator_consumer_supply tps65070_dcdc2_consumers[] = { | |||
865 | { | 876 | { |
866 | .supply = "dvdd3318_c", | 877 | .supply = "dvdd3318_c", |
867 | }, | 878 | }, |
879 | REGULATOR_SUPPLY("IOVDD", "1-0018"), | ||
868 | }; | 880 | }; |
869 | 881 | ||
870 | /* 1.2V */ | 882 | /* 1.2V */ |
@@ -1447,6 +1459,8 @@ static __init void da850_evm_init(void) | |||
1447 | if (ret) | 1459 | if (ret) |
1448 | pr_warn("%s: GPIO init failed: %d\n", __func__, ret); | 1460 | pr_warn("%s: GPIO init failed: %d\n", __func__, ret); |
1449 | 1461 | ||
1462 | regulator_register_fixed(0, fixed_supplies, ARRAY_SIZE(fixed_supplies)); | ||
1463 | |||
1450 | ret = pmic_tps65070_init(); | 1464 | ret = pmic_tps65070_init(); |
1451 | if (ret) | 1465 | if (ret) |
1452 | pr_warn("%s: TPS65070 PMIC init failed: %d\n", __func__, ret); | 1466 | pr_warn("%s: TPS65070 PMIC init failed: %d\n", __func__, ret); |