From: zwl Date: Thu, 6 Mar 2014 06:22:03 +0000 (+0800) Subject: HDMI: add dt node at rk3288.dtsi and add HDMI config X-Git-Tag: firefly_0821_release~6181 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b0478573cf4d2989ff873fd6bc639c66471b9eab;p=firefly-linux-kernel-4.4.55.git HDMI: add dt node at rk3288.dtsi and add HDMI config --- diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index e9435f4b57ff..f581ccf5996a 100755 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi @@ -192,7 +192,19 @@ reg = <0xff970000 0x4000>; interrupts = ; status = "disabled"; - } + }; + + hdmi:hdmi@ff980000 { + compatible = "rockchip,rk3288-hdmi"; + reg = <0xff980000 0x20000>; + interrupts = ; + rockchip,hdmi_lcdc_source = <1>; + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&i2c5_sda &i2c5_scl>; + pinctrl-1 = <&i2c5_gpio>; + status = "disabled"; + }; + adc: adc@ff100000 { compatible = "rockchip,saradc"; reg = <0xff100000 0x100>; @@ -279,7 +291,7 @@ sdio0: mshc@ff0d0000 { compatible = "rockchip,rk_mmc"; - reg = ; + reg = <0xff0d0000 0x4000>; interrupts = ; /*irq=65*/ #address-cells = <1>; #size-cells = <0>; @@ -298,7 +310,7 @@ sdio1: mshc@ff0e0000 { compatible = "rockchip,rk_mmc"; - reg = ; + reg = <0xff0e0000 0x4000>; interrupts = ; /*irq=66*/ #address-cells = <1>; #size-cells = <0>; @@ -317,7 +329,7 @@ emmc: mshc@ff0f0000 { compatible = "rockchip,rk_mmc"; - reg = ; + reg = <0xff0f0000 0x4000>; interrupts = ; /*irq=67*/ #address-cells = <1>; #size-cells = <0>; diff --git a/arch/arm/configs/rockchip_defconfig b/arch/arm/configs/rockchip_defconfig index 439667377269..a24aef1992d1 100755 --- a/arch/arm/configs/rockchip_defconfig +++ b/arch/arm/configs/rockchip_defconfig @@ -328,6 +328,7 @@ CONFIG_FB_ROCKCHIP=y CONFIG_LCDC_RK3188=y CONFIG_LCDC0_RK3188=y CONFIG_LCDC1_RK3188=y +CONFIG_RK_HDMI=y CONFIG_RK_TRSM=y CONFIG_DP_ANX6345=y CONFIG_RK32_DP=y diff --git a/drivers/video/rockchip/hdmi/Kconfig b/drivers/video/rockchip/hdmi/Kconfig index 144b9a51981f..b32cf6c0b23a 100755 --- a/drivers/video/rockchip/hdmi/Kconfig +++ b/drivers/video/rockchip/hdmi/Kconfig @@ -1,5 +1,6 @@ menuconfig RK_HDMI bool "Rockchip HDMI support" + depends on FB_ROCKCHIP select FB_MODE_HELPERS if RK_HDMI diff --git a/drivers/video/rockchip/hdmi/chips/Makefile b/drivers/video/rockchip/hdmi/chips/Makefile index 6a6c23409760..0f2e4a1f146d 100755 --- a/drivers/video/rockchip/hdmi/chips/Makefile +++ b/drivers/video/rockchip/hdmi/chips/Makefile @@ -9,3 +9,4 @@ obj-$(CONFIG_HDMI_RK2928) += rk2928/ obj-$(CONFIG_HDMI_RK610) += rk610/ obj-$(CONFIG_HDMI_CAT66121) += cat66121/ obj-$(CONFIG_HDMI_RK616) += rk616/ +obj-y += rk3288/ diff --git a/drivers/video/rockchip/hdmi/chips/rk3288/Makefile b/drivers/video/rockchip/hdmi/chips/rk3288/Makefile index f2855eed64bb..d93b6f036c22 100644 --- a/drivers/video/rockchip/hdmi/chips/rk3288/Makefile +++ b/drivers/video/rockchip/hdmi/chips/rk3288/Makefile @@ -4,5 +4,5 @@ ccflags-$(CONFIG_RK_HDMI_DEBUG) = -DDEBUG -DHDMI_DEBUG -obj-$(CONFIG_HDMI_RK3288) += rk3288_hdmi_hw.o rk3288_hdmi.o +obj-y += rk3288_hdmi_hw.o rk3288_hdmi.o obj-$(CONFIG_HDCP_RK3288) += hdcp/