[ARM] tegra: stingray: Add specific regulator constraints for sensors
authorRebecca Schultz Zavin <rebecca@android.com>
Wed, 25 Aug 2010 20:59:08 +0000 (13:59 -0700)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:33:46 +0000 (16:33 -0700)
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 <rebecca@android.com>
arch/arm/mach-tegra/board-stingray-power.c

index 0d2574259729488ad00be33449893f04af89ce21..4cbfacf453b5611ede721ea42b5cb22265296d0d 100644 (file)
@@ -33,6 +33,7 @@
 #include <linux/spi/cpcap.h>
 #include <linux/spi/cpcap-regbits.h>
 #include <linux/spi/spi.h>
+#include <linux/l3g4200d.h>
 
 #include <mach/gpio.h>
 #include <mach/iomap.h>
@@ -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[] = {