p977: support 5v en power control for otg and hdmi

This commit is contained in:
郭毅
2014-04-21 09:40:41 +08:00
parent 6dcfa84ccd
commit 3b4a05a0c1
3 changed files with 18 additions and 1 deletions

View File

@@ -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";
@@ -223,7 +230,7 @@
};
&spi1 {
status = "okay";
status = "disabled";
max-freq = <48000000>;
/*
spi_test@10 {

8
drivers/misc/Kconfig Executable file → Normal file
View File

@@ -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"

2
drivers/misc/Makefile Executable file → Normal file
View File

@@ -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