dvb: add dvb module dts & modify demux define
authorPeng Chuangcheng <chuangcheng.peng@amlogic.com>
Mon, 12 Mar 2018 08:51:11 +0000 (16:51 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Fri, 20 Apr 2018 07:12:45 +0000 (00:12 -0700)
PD#156734: add dvb module dts & modify demux define

Change-Id: I6125be7c0f489687524529a547b9d426eb5de4ac
Signed-off-by: Chuangcheng Peng <chuangcheng.peng@amlogic.com>
arch/arm64/boot/dts/amlogic/g12a_s905x2_u211.dts
arch/arm64/boot/dts/amlogic/mesong12a.dtsi
include/linux/amlogic/media/utils/amstream.h
include/linux/amlogic/media/utils/vdec_reg.h

index 2d5b1df..8fe99a1 100644 (file)
                dev_name = "ionvideo";
                status = "okay";
        };
-
+       dvb{
+           compatible = "amlogic, dvb";
+               dev_name = "dvb";
+               status = "ok";
+               /*"parallel","serial","disable"*/
+               ts2 = "parallel";
+               ts2_control = <0>;
+               ts2_invert = <0>;
+       };
        unifykey{
                compatible = "amlogic, unifykey";
                status = "ok";
index d2ad356..3365a23 100644 (file)
                status = "okay";
                clocks = <&clkc CLKID_DOS_PARSER
                        &clkc CLKID_DEMUX
+                       &clkc CLKID_AHB_ARB0
                        &clkc CLKID_DOS
                        &clkc CLKID_VDEC_MUX
                        &clkc CLKID_HCODEC_MUX
                        &clkc CLKID_HEVCF_MUX>;
                clock-names = "parser_top",
                        "demux",
+                       "ahbarb0",
                        "vdec",
                        "clk_vdec_mux",
                        "clk_hcodec_mux",
index 9f6ed85..f40bdff 100644 (file)
@@ -680,6 +680,7 @@ struct tsdemux_ops {
 
 void tsdemux_set_ops(struct tsdemux_ops *ops);
 int tsdemux_set_reset_flag(void);
+int amports_switch_gate(const char *name, int enable);
 
 void set_adec_func(int (*adec_func)(struct adec_status *));
 void wakeup_sub_poll(void);
index 6808053..c90e453 100644 (file)
 #define INT_DOS_MAILBOX_1       AM_IRQ(44)
 #define INT_DOS_MAILBOX_2       AM_IRQ(45)
 #define INT_VIU_VSYNC           AM_IRQ(3)
+
 #define INT_DEMUX               AM_IRQ(23)
 #define INT_DEMUX_1             AM_IRQ(5)
-#define INT_DEMUX_2             AM_IRQ(53)
+#define INT_DEMUX_2             AM_IRQ(21)//AM_IRQ(53)
 #define INT_ASYNC_FIFO_FILL     AM_IRQ(18)
 #define INT_ASYNC_FIFO_FLUSH    AM_IRQ(19)
 #define INT_ASYNC_FIFO2_FILL    AM_IRQ(24)