p977: support 5v en power control for otg and hdmi
author郭毅 <gy@rock-chips.com>
Mon, 21 Apr 2014 01:40:41 +0000 (09:40 +0800)
committer郭毅 <gy@rock-chips.com>
Mon, 21 Apr 2014 01:40:41 +0000 (09:40 +0800)
arch/arm/boot/dts/rk3288-p977.dts
drivers/misc/Kconfig [changed mode: 0755->0644]
drivers/misc/Makefile [changed mode: 0755->0644]

index f332a7e58a47a4f149613198d0f8a87c8dcd64cc..5be35323e2d2d97e7ee473d38d43a4443ed17f0d 100755 (executable)
@@ -8,6 +8,13 @@
                status = "okay";
        };
 
+       5v_power_en {
+        compatible = "5v_en";
+               5ven,pin =<&gpio7 GPIO_B4 GPIO_ACTIVE_HIGH>;    // 5v power for otg and hdmi
+               status = "okay";        
+       };
+
+
     wireless-wlan {
         compatible = "wlan-platdata";
 
 };
 
 &spi1 {
-       status = "okay";
+       status = "disabled";
        max-freq = <48000000>;
        /*
        spi_test@10 {
old mode 100755 (executable)
new mode 100644 (file)
index b3bf720..e25c8bb
@@ -531,6 +531,14 @@ config SRAM
          the genalloc API. It is supposed to be used for small on-chip SRAM
          areas found on many SoCs.
 
+config 5V_EN
+       bool "5v en power control for otg and hdmi"
+       default y
+       help
+         This driver is control enable 5v power when startup and disable it
+         when suspend and no insert otg. if your board is control this power
+         by a gpio please select it. 
+
 source "drivers/misc/c2port/Kconfig"
 source "drivers/misc/eeprom/Kconfig"
 source "drivers/misc/cb710/Kconfig"
old mode 100755 (executable)
new mode 100644 (file)
index 2e082e3..c78c5d7
@@ -55,3 +55,5 @@ obj-$(CONFIG_VMWARE_VMCI)     += vmw_vmci/
 obj-$(CONFIG_LATTICE_ECP3_CONFIG)      += lattice-ecp3-config.o
 obj-y += inv_mpu/
 obj-$(CONFIG_SRAM)             += sram.o
+
+obj-$(CONFIG_5V_EN)    += 5v_en.o