u-boot-brain/arch/arm/include/asm/arch-rockchip
Jagan Teki e67243f1a3 video: rockchip: Fix vop modes for rk3399
VOP display endpoint pipeline configuration differs
between rk3288 vs rk3399.

These VOP pipeline configuration depends on how the
different display interfaces connected in sequence to
IN and OUT ports like for,

RK3288:

vopb_out: port {
	#address-cells = <1>;
	#size-cells = <0>;
	vopb_out_edp: endpoint@0 {
		reg = <0>;
		remote-endpoint = <&edp_in_vopb>;
	};
	vopb_out_hdmi: endpoint@1 {
		reg = <1>;
                remote-endpoint = <&hdmi_in_vopb>;
        };
        vopb_out_lvds: endpoint@2 {
                reg = <2>;
                remote-endpoint = <&lvds_in_vopb>;
        };
        vopb_out_mipi: endpoint@3 {
                reg = <3>;
                remote-endpoint = <&mipi_in_vopb>;
        };
};

RK3399:

vopb_out: port {
         #address-cells = <1>;
         #size-cells = <0>;
         vopb_out_edp: endpoint@0 {
                reg = <0>;
                remote-endpoint = <&edp_in_vopb>;
         };
         vopb_out_mipi: endpoint@1 {
                reg = <1>;
                remote-endpoint = <&mipi_in_vopb>;
         };
         vopb_out_hdmi: endpoint@2 {
                reg = <2>;
                remote-endpoint = <&hdmi_in_vopb>;
         };
         vopb_out_mipi1: endpoint@3 {
                reg = <3>;
                remote-endpoint = <&mipi1_in_vopb>;
         };
         vopb_out_dp: endpoint@4 {
                reg = <4>;
                remote-endpoint = <&dp_in_vopb>;
         };
};

here, HDMI interface has endpoint 1 in rk3288 and 2 in rk3399.

The rockchip vop driver often depends on this determined endpoint
number and stored in vop_mode. So based on this vop_mode the bpp
and pin polarity would configure on detected display interface.

Since, the existing driver using rk3288 vop mode settings enabling
the same will result wrong display interface configuration for rk3399.

Add the patch for fixing these vop modes for rk3399.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Peter Robinson <pbrobinson@gmail.com>
2020-04-02 15:47:35 +02:00
..
boot0.h rockchip: boot0: update CONFIG_ROCKCHIP_SPL_RESERVE_IRAM for SPL only 2019-05-08 17:34:12 +08:00
boot_mode.h rockchip: add support for enter to bootrom download mode 2017-11-21 23:57:23 +01:00
bootrom.h rockchip: declear boot_devices in bootrom.h 2019-07-26 17:30:26 +08:00
clock.h arm: rockchip: Add common cru.h 2020-01-30 11:44:01 +08:00
cru_px30.h rockchip: px30: Add support for using UART3 as debug UART 2019-12-05 23:53:07 +08:00
cru_rk322x.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cru_rk3036.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cru_rk3128.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cru_rk3188.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cru_rk3288.h rockchip: Add common reset cause 2020-01-30 11:44:01 +08:00
cru_rk3328.h clk: rockchip: rk3328: Configure CPU clock 2019-11-10 20:40:20 +08:00
cru_rk3368.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cru_rk3399.h arm: rockchip: Add common cru.h 2020-01-30 11:44:01 +08:00
cru_rv1108.h ARM: rockchip: rv1108: Sync clock with vendor tree 2018-11-30 21:56:44 +01:00
cru.h rockchip: Add common reset cause 2020-01-30 11:44:01 +08:00
ddr_rk3188.h rockchip: use 'arch-rockchip' as header file path 2019-05-01 00:00:05 +02:00
ddr_rk3288.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ddr_rk3368.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
edp_rk3288.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
f_rockusb.h usb: rockchip: implement K_FW_LBA_ERASE_10 command 2018-08-08 22:22:07 +02:00
gpio.h rockchip: Implement spl_gpio in the GPIO driver 2019-02-01 16:59:13 +01:00
grf_px30.h rockchip: px30: Fixup PMUGRF registers layout order 2019-12-05 23:53:07 +08:00
grf_rk322x.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
grf_rk3036.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
grf_rk3128.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
grf_rk3188.h rockchip: rk3188: add support for usb-uart functionality 2018-11-30 19:03:16 +01:00
grf_rk3288.h rockchip: Move pull-up/down enum into a common file 2019-02-01 16:59:13 +01:00
grf_rk3328.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
grf_rk3368.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
grf_rk3399.h rockchip: pinctrl: rk3399: Add support for UART3. 2019-05-30 18:22:35 +08:00
grf_rv1108.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
hardware.h rockchip: arm: remove no use macro 2019-05-01 00:00:05 +02:00
i2c.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
lvds_rk3288.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
misc.h rockchip: rk3399: derive ethaddr from cpuid 2019-08-23 18:15:31 +08:00
periph.h rockchip: rk3288: Add i2s pinctrl and clock support 2019-02-01 16:59:10 +01:00
pmu_rk3188.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pmu_rk3288.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pmu_rk3399.h arm: include: rockchip: Add rk3399 pmu file 2019-07-21 00:00:13 +08:00
pwm.h pwm: rk_pwm: Make PWM driver to support all Rockchip Socs 2019-12-06 00:06:23 +08:00
qos_rk3288.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rockchip_mipi_dsi.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sdram_common.h ram: rockchip: add common code for sdram driver 2019-11-17 16:23:56 +08:00
sdram_msch.h ram: rockchip: add common msch reg definition 2019-11-17 16:23:56 +08:00
sdram_pctl_px30.h ram: rockchip: add controller code for PX30 2019-11-17 16:23:56 +08:00
sdram_phy_px30.h ram: rockchip: add phy driver code for PX30 2019-11-17 16:23:56 +08:00
sdram_phy_ron_rtt_px30.h ram: rockchip: add phy driver code for PX30 2019-11-17 16:23:56 +08:00
sdram_px30.h ram: px30: add sdram driver 2019-11-17 16:23:56 +08:00
sdram_rk322x.h arm: include: rockchip: Move dramtypes to common header 2019-07-19 11:11:09 +08:00
sdram_rk3036.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sdram_rk3288.h ram: rockchip: rename sdram.h to sdram_rk3288.h 2019-11-17 16:23:56 +08:00
sdram_rk3328.h ram: rk3328: use common sdram driver 2019-11-17 16:23:56 +08:00
sdram_rk3399.h ram: rk3399: update calculate_stride 2019-11-17 16:23:56 +08:00
sdram.h rockchip: sdram: extend to use sys_reg3 for capacity info 2019-11-17 16:23:56 +08:00
sys_proto.h rockchip: rk3399: move chromebook bob specific flow to its board file 2019-07-29 10:25:27 +08:00
timer.h rockchip: remove rk_timer 2019-07-20 23:59:44 +08:00
uart.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
vop_rk3288.h video: rockchip: Fix vop modes for rk3399 2020-04-02 15:47:35 +02:00