From: 郭毅 Date: Mon, 21 Apr 2014 01:40:41 +0000 (+0800) Subject: p977: support 5v en power control for otg and hdmi X-Git-Tag: firefly_0821_release~5498 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3b4a05a0c17229c05ac2931d700e495a121c39f3;p=firefly-linux-kernel-4.4.55.git p977: support 5v en power control for otg and hdmi --- diff --git a/arch/arm/boot/dts/rk3288-p977.dts b/arch/arm/boot/dts/rk3288-p977.dts index f332a7e58a47..5be35323e2d2 100755 --- a/arch/arm/boot/dts/rk3288-p977.dts +++ b/arch/arm/boot/dts/rk3288-p977.dts @@ -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 { diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig old mode 100755 new mode 100644 index b3bf720d02a1..e25c8bbfa570 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig @@ -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" diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile old mode 100755 new mode 100644 index 2e082e308588..c78c5d78653b --- a/drivers/misc/Makefile +++ b/drivers/misc/Makefile @@ -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