Commit a1e516e3 authored by Bengt Jonsson's avatar Bengt Jonsson Committed by Liam Girdwood

mach-ux500: Updated and connected ab8500 regulator board configuration

The ab8500 regulator board configuration is updated and put in an
array which can easily be used in the MFD board configuration. The
regulator board configuration is also added to the MFD
configuration in this patch.
Signed-off-by: default avatarBengt Jonsson <bengt.g.jonsson@stericsson.com>
Acked-by: default avatarLinus Walleij <linus.walleij@stericsson.com>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent 6909b452
...@@ -3,99 +3,94 @@ ...@@ -3,99 +3,94 @@
* *
* License Terms: GNU General Public License v2 * License Terms: GNU General Public License v2
* *
* Author: Sundar Iyer <sundar.iyer@stericsson.com> * Authors: Sundar Iyer <sundar.iyer@stericsson.com>
* Bengt Jonsson <bengt.g.jonsson@stericsson.com>
* *
* MOP500 board specific initialization for regulators * MOP500 board specific initialization for regulators
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/regulator/machine.h> #include <linux/regulator/machine.h>
#include <linux/regulator/ab8500.h>
/* supplies to the display/camera */ /* AB8500 regulators */
static struct regulator_init_data ab8500_vaux1_regulator = { struct regulator_init_data ab8500_regulators[AB8500_NUM_REGULATORS] = {
.constraints = { /* supplies to the display/camera */
.name = "V-DISPLAY", [AB8500_LDO_AUX1] = {
.min_uV = 2500000, .constraints = {
.max_uV = 2900000, .name = "V-DISPLAY",
.valid_ops_mask = REGULATOR_CHANGE_VOLTAGE| .min_uV = 2500000,
REGULATOR_CHANGE_STATUS, .max_uV = 2900000,
.valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
REGULATOR_CHANGE_STATUS,
},
}, },
}; /* supplies to the on-board eMMC */
[AB8500_LDO_AUX2] = {
/* supplies to the on-board eMMC */ .constraints = {
static struct regulator_init_data ab8500_vaux2_regulator = { .name = "V-eMMC1",
.constraints = { .min_uV = 1100000,
.name = "V-eMMC1", .max_uV = 3300000,
.min_uV = 1100000, .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
.max_uV = 3300000, REGULATOR_CHANGE_STATUS,
.valid_ops_mask = REGULATOR_CHANGE_VOLTAGE| },
REGULATOR_CHANGE_STATUS,
}, },
}; /* supply for VAUX3, supplies to SDcard slots */
[AB8500_LDO_AUX3] = {
/* supply for VAUX3, supplies to SDcard slots */ .constraints = {
static struct regulator_init_data ab8500_vaux3_regulator = { .name = "V-MMC-SD",
.constraints = { .min_uV = 1100000,
.name = "V-MMC-SD", .max_uV = 3300000,
.min_uV = 1100000, .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
.max_uV = 3300000, REGULATOR_CHANGE_STATUS,
.valid_ops_mask = REGULATOR_CHANGE_VOLTAGE| },
REGULATOR_CHANGE_STATUS,
}, },
}; /* supply for tvout, gpadc, TVOUT LDO */
[AB8500_LDO_TVOUT] = {
/* supply for tvout, gpadc, TVOUT LDO */ .constraints = {
static struct regulator_init_data ab8500_vtvout_init = { .name = "V-TVOUT",
.constraints = { .valid_ops_mask = REGULATOR_CHANGE_STATUS,
.name = "V-TVOUT", },
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
}, },
}; /* supply for ab8500-vaudio, VAUDIO LDO */
[AB8500_LDO_AUDIO] = {
/* supply for ab8500-vaudio, VAUDIO LDO */ .constraints = {
static struct regulator_init_data ab8500_vaudio_init = { .name = "V-AUD",
.constraints = { .valid_ops_mask = REGULATOR_CHANGE_STATUS,
.name = "V-AUD", },
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
}, },
}; /* supply for v-anamic1 VAMic1-LDO */
[AB8500_LDO_ANAMIC1] = {
/* supply for v-anamic1 VAMic1-LDO */ .constraints = {
static struct regulator_init_data ab8500_vamic1_init = { .name = "V-AMIC1",
.constraints = { .valid_ops_mask = REGULATOR_CHANGE_STATUS,
.name = "V-AMIC1", },
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
}, },
}; /* supply for v-amic2, VAMIC2 LDO, reuse constants for AMIC1 */
[AB8500_LDO_ANAMIC2] = {
/* supply for v-amic2, VAMIC2 LDO, reuse constants for AMIC1 */ .constraints = {
static struct regulator_init_data ab8500_vamic2_init = { .name = "V-AMIC2",
.constraints = { .valid_ops_mask = REGULATOR_CHANGE_STATUS,
.name = "V-AMIC2", },
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
}, },
}; /* supply for v-dmic, VDMIC LDO */
[AB8500_LDO_DMIC] = {
/* supply for v-dmic, VDMIC LDO */ .constraints = {
static struct regulator_init_data ab8500_vdmic_init = { .name = "V-DMIC",
.constraints = { .valid_ops_mask = REGULATOR_CHANGE_STATUS,
.name = "V-DMIC", },
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
}, },
}; /* supply for v-intcore12, VINTCORE12 LDO */
[AB8500_LDO_INTCORE] = {
/* supply for v-intcore12, VINTCORE12 LDO */ .constraints = {
static struct regulator_init_data ab8500_vintcore_init = { .name = "V-INTCORE",
.constraints = { .valid_ops_mask = REGULATOR_CHANGE_STATUS,
.name = "V-INTCORE", },
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
}, },
}; /* supply for U8500 CSI/DSI, VANA LDO */
[AB8500_LDO_ANA] = {
/* supply for U8500 CSI/DSI, VANA LDO */ .constraints = {
static struct regulator_init_data ab8500_vana_init = { .name = "V-CSI/DSI",
.constraints = { .valid_ops_mask = REGULATOR_CHANGE_STATUS,
.name = "V-CSI/DSI", },
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
}, },
}; };
/*
* Copyright (C) ST-Ericsson SA 2010
*
* License Terms: GNU General Public License v2
*
* Author: Bengt Jonsson <bengt.g.jonsson@stericsson.com> for ST-Ericsson
*
* MOP500 board specific initialization for regulators
*/
#ifndef __BOARD_MOP500_REGULATORS_H
#define __BOARD_MOP500_REGULATORS_H
#include <linux/regulator/machine.h>
#include <linux/regulator/ab8500.h>
extern struct regulator_init_data ab8500_regulators[AB8500_NUM_REGULATORS];
#endif
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include "devices-db8500.h" #include "devices-db8500.h"
#include "pins-db8500.h" #include "pins-db8500.h"
#include "board-mop500.h" #include "board-mop500.h"
#include "board-mop500-regulators.h"
static pin_cfg_t mop500_pins[] = { static pin_cfg_t mop500_pins[] = {
/* SSP0 */ /* SSP0 */
...@@ -80,6 +81,8 @@ static pin_cfg_t mop500_pins[] = { ...@@ -80,6 +81,8 @@ static pin_cfg_t mop500_pins[] = {
static struct ab8500_platform_data ab8500_platdata = { static struct ab8500_platform_data ab8500_platdata = {
.irq_base = MOP500_AB8500_IRQ_BASE, .irq_base = MOP500_AB8500_IRQ_BASE,
.regulator = ab8500_regulators,
.num_regulator = ARRAY_SIZE(ab8500_regulators),
}; };
static struct resource ab8500_resources[] = { static struct resource ab8500_resources[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment