From: Rebecca Schultz Zavin Date: Wed, 25 Aug 2010 20:59:08 +0000 (-0700) Subject: [ARM] tegra: stingray: Add specific regulator constraints for sensors X-Git-Tag: firefly_0821_release~9834^2~647 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=df7b5f584fb020da3373fb97f529a121bd60c89e;p=firefly-linux-kernel-4.4.55.git [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 --- 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[] = {