From df7b5f584fb020da3373fb97f529a121bd60c89e Mon Sep 17 00:00:00 2001 From: Rebecca Schultz Zavin Date: Wed, 25 Aug 2010 13:59:08 -0700 Subject: [PATCH] [ARM] tegra: stingray: Add specific regulator constraints for sensors This will allow individual sensor drivers to enable/disable their regulators without calling into the board files to get the supply name. Change-Id: I06fa1536ede351194b060028ad43a4163df363c2 Signed-off-by: Rebecca Schultz Zavin --- arch/arm/mach-tegra/board-stingray-power.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-tegra/board-stingray-power.c b/arch/arm/mach-tegra/board-stingray-power.c index 0d2574259729..4cbfacf453b5 100644 --- a/arch/arm/mach-tegra/board-stingray-power.c +++ b/arch/arm/mach-tegra/board-stingray-power.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include @@ -383,13 +384,10 @@ struct regulator_consumer_supply cpcap_vcam_consumers[] = { struct regulator_consumer_supply cpcap_vhvio_consumers[] = { REGULATOR_CONSUMER("vhvio", NULL /* lighting_driver */), -#if 0 - REGULATOR_CONSUMER("vhvio", NULL /* lighting_driver */), - REGULATOR_CONSUMER("vhvio", NULL /* magnetometer */), - REGULATOR_CONSUMER("vhvio", NULL /* light sensor */), - REGULATOR_CONSUMER("vhvio", NULL /* accelerometer */), - REGULATOR_CONSUMER("vhvio", NULL /* display */), -#endif + REGULATOR_CONSUMER("vcc", "2-0068" /* gyro*/), + REGULATOR_CONSUMER("vcc", "3-000c" /* magnetometer */), + REGULATOR_CONSUMER("vcc", "0-0077" /* barometer */), + REGULATOR_CONSUMER("vcc", "3-000f" /* accelerometer */), }; struct regulator_consumer_supply cpcap_vsdio_consumers[] = { -- 2.34.1