mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-23 11:04:44 +08:00
ARM: 6392/1: ux500: add ab8500-regulators machine specific data
From: Sundar R Iyer <sundar.iyer@stericsson.com> Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Linus Walleij <linus.walleij@stericsson.com> Acked-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com> Signed-off-by: Sundar R Iyer <sundar.iyer@stericsson.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
9d704c04ff
commit
4f724beace
@ -10,3 +10,4 @@ obj-$(CONFIG_MACH_U5500) += board-u5500.o
|
||||
obj-$(CONFIG_SMP) += platsmp.o headsmp.o
|
||||
obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
|
||||
obj-$(CONFIG_LOCAL_TIMERS) += localtimer.o
|
||||
obj-$(CONFIG_REGULATOR_AB8500) += board-mop500-regulators.o
|
||||
|
101
arch/arm/mach-ux500/board-mop500-regulators.c
Normal file
101
arch/arm/mach-ux500/board-mop500-regulators.c
Normal file
@ -0,0 +1,101 @@
|
||||
/*
|
||||
* Copyright (C) ST-Ericsson SA 2010
|
||||
*
|
||||
* License Terms: GNU General Public License v2
|
||||
*
|
||||
* Author: Sundar Iyer <sundar.iyer@stericsson.com>
|
||||
*
|
||||
* MOP500 board specific initialization for regulators
|
||||
*/
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/regulator/machine.h>
|
||||
|
||||
/* supplies to the display/camera */
|
||||
static struct regulator_init_data ab8500_vaux1_regulator = {
|
||||
.constraints = {
|
||||
.name = "V-DISPLAY",
|
||||
.min_uV = 2500000,
|
||||
.max_uV = 2900000,
|
||||
.valid_ops_mask = REGULATOR_CHANGE_VOLTAGE|
|
||||
REGULATOR_CHANGE_STATUS,
|
||||
},
|
||||
};
|
||||
|
||||
/* supplies to the on-board eMMC */
|
||||
static struct regulator_init_data ab8500_vaux2_regulator = {
|
||||
.constraints = {
|
||||
.name = "V-eMMC1",
|
||||
.min_uV = 1100000,
|
||||
.max_uV = 3300000,
|
||||
.valid_ops_mask = REGULATOR_CHANGE_VOLTAGE|
|
||||
REGULATOR_CHANGE_STATUS,
|
||||
},
|
||||
};
|
||||
|
||||
/* supply for VAUX3, supplies to SDcard slots */
|
||||
static struct regulator_init_data ab8500_vaux3_regulator = {
|
||||
.constraints = {
|
||||
.name = "V-MMC-SD",
|
||||
.min_uV = 1100000,
|
||||
.max_uV = 3300000,
|
||||
.valid_ops_mask = REGULATOR_CHANGE_VOLTAGE|
|
||||
REGULATOR_CHANGE_STATUS,
|
||||
},
|
||||
};
|
||||
|
||||
/* supply for tvout, gpadc, TVOUT LDO */
|
||||
static struct regulator_init_data ab8500_vtvout_init = {
|
||||
.constraints = {
|
||||
.name = "V-TVOUT",
|
||||
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
|
||||
},
|
||||
};
|
||||
|
||||
/* supply for ab8500-vaudio, VAUDIO LDO */
|
||||
static struct regulator_init_data ab8500_vaudio_init = {
|
||||
.constraints = {
|
||||
.name = "V-AUD",
|
||||
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
|
||||
},
|
||||
};
|
||||
|
||||
/* supply for v-anamic1 VAMic1-LDO */
|
||||
static struct regulator_init_data ab8500_vamic1_init = {
|
||||
.constraints = {
|
||||
.name = "V-AMIC1",
|
||||
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
|
||||
},
|
||||
};
|
||||
|
||||
/* supply for v-amic2, VAMIC2 LDO, reuse constants for AMIC1 */
|
||||
static struct regulator_init_data ab8500_vamic2_init = {
|
||||
.constraints = {
|
||||
.name = "V-AMIC2",
|
||||
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
|
||||
},
|
||||
};
|
||||
|
||||
/* supply for v-dmic, VDMIC LDO */
|
||||
static struct regulator_init_data ab8500_vdmic_init = {
|
||||
.constraints = {
|
||||
.name = "V-DMIC",
|
||||
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
|
||||
},
|
||||
};
|
||||
|
||||
/* supply for v-intcore12, VINTCORE12 LDO */
|
||||
static struct regulator_init_data ab8500_vintcore_init = {
|
||||
.constraints = {
|
||||
.name = "V-INTCORE",
|
||||
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
|
||||
},
|
||||
};
|
||||
|
||||
/* supply for U8500 CSI/DSI, VANA LDO */
|
||||
static struct regulator_init_data ab8500_vana_init = {
|
||||
.constraints = {
|
||||
.name = "V-CSI/DSI",
|
||||
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user