@@ -704,137 +704,173 @@ static void sun8i_mixer_remove(struct platform_device *pdev)
704704}
705705
706706static const struct sun8i_mixer_cfg sun8i_a83t_mixer0_cfg = {
707- .ccsc = CCSC_MIXER0_LAYOUT ,
707+ .lay_cfg = {
708+ .ccsc = CCSC_MIXER0_LAYOUT ,
709+ .de_type = SUN8I_MIXER_DE2 ,
710+ .vi_scaler_num = 1 ,
711+ .scaler_mask = 0xf ,
712+ .scanline_yuv = 2048 ,
713+ .de2_fcc_alpha = 1 ,
714+ },
708715 .de_type = SUN8I_MIXER_DE2 ,
709- .vi_scaler_num = 1 ,
710- .scaler_mask = 0xf ,
711- .scanline_yuv = 2048 ,
712- .de2_fcc_alpha = 1 ,
713716 .ui_num = 3 ,
714717 .vi_num = 1 ,
715718};
716719
717720static const struct sun8i_mixer_cfg sun8i_a83t_mixer1_cfg = {
718- .ccsc = CCSC_MIXER1_LAYOUT ,
721+ .lay_cfg = {
722+ .ccsc = CCSC_MIXER1_LAYOUT ,
723+ .de_type = SUN8I_MIXER_DE2 ,
724+ .vi_scaler_num = 1 ,
725+ .scaler_mask = 0x3 ,
726+ .scanline_yuv = 2048 ,
727+ .de2_fcc_alpha = 1 ,
728+ },
719729 .de_type = SUN8I_MIXER_DE2 ,
720- .vi_scaler_num = 1 ,
721- .scaler_mask = 0x3 ,
722- .scanline_yuv = 2048 ,
723- .de2_fcc_alpha = 1 ,
724730 .ui_num = 1 ,
725731 .vi_num = 1 ,
726732};
727733
728734static const struct sun8i_mixer_cfg sun8i_h3_mixer0_cfg = {
729- .ccsc = CCSC_MIXER0_LAYOUT ,
735+ .lay_cfg = {
736+ .ccsc = CCSC_MIXER0_LAYOUT ,
737+ .de_type = SUN8I_MIXER_DE2 ,
738+ .vi_scaler_num = 1 ,
739+ .scaler_mask = 0xf ,
740+ .scanline_yuv = 2048 ,
741+ .de2_fcc_alpha = 1 ,
742+ },
730743 .de_type = SUN8I_MIXER_DE2 ,
731744 .mod_rate = 432000000 ,
732- .vi_scaler_num = 1 ,
733- .scaler_mask = 0xf ,
734- .scanline_yuv = 2048 ,
735- .de2_fcc_alpha = 1 ,
736745 .ui_num = 3 ,
737746 .vi_num = 1 ,
738747};
739748
740749static const struct sun8i_mixer_cfg sun8i_r40_mixer0_cfg = {
741- .ccsc = CCSC_MIXER0_LAYOUT ,
750+ .lay_cfg = {
751+ .ccsc = CCSC_MIXER0_LAYOUT ,
752+ .de_type = SUN8I_MIXER_DE2 ,
753+ .vi_scaler_num = 1 ,
754+ .scaler_mask = 0xf ,
755+ .scanline_yuv = 2048 ,
756+ .de2_fcc_alpha = 1 ,
757+ },
742758 .de_type = SUN8I_MIXER_DE2 ,
743759 .mod_rate = 297000000 ,
744- .vi_scaler_num = 1 ,
745- .scaler_mask = 0xf ,
746- .scanline_yuv = 2048 ,
747- .de2_fcc_alpha = 1 ,
748760 .ui_num = 3 ,
749761 .vi_num = 1 ,
750762};
751763
752764static const struct sun8i_mixer_cfg sun8i_r40_mixer1_cfg = {
753- .ccsc = CCSC_MIXER1_LAYOUT ,
765+ .lay_cfg = {
766+ .ccsc = CCSC_MIXER1_LAYOUT ,
767+ .de_type = SUN8I_MIXER_DE2 ,
768+ .vi_scaler_num = 1 ,
769+ .scaler_mask = 0x3 ,
770+ .scanline_yuv = 2048 ,
771+ .de2_fcc_alpha = 1 ,
772+ },
754773 .de_type = SUN8I_MIXER_DE2 ,
755774 .mod_rate = 297000000 ,
756- .vi_scaler_num = 1 ,
757- .scaler_mask = 0x3 ,
758- .scanline_yuv = 2048 ,
759- .de2_fcc_alpha = 1 ,
760775 .ui_num = 1 ,
761776 .vi_num = 1 ,
762777};
763778
764779static const struct sun8i_mixer_cfg sun8i_v3s_mixer_cfg = {
765- .de_type = SUN8I_MIXER_DE2 ,
766- .vi_num = 2 ,
767- .ui_num = 1 ,
768- .vi_scaler_num = 2 ,
769- .scaler_mask = 0x3 ,
770- .scanline_yuv = 2048 ,
771- .ccsc = CCSC_MIXER0_LAYOUT ,
772- .mod_rate = 150000000 ,
780+ .lay_cfg = {
781+ .ccsc = CCSC_MIXER0_LAYOUT ,
782+ .de_type = SUN8I_MIXER_DE2 ,
783+ .vi_scaler_num = 2 ,
784+ .scaler_mask = 0x3 ,
785+ .scanline_yuv = 2048 ,
786+ },
787+ .de_type = SUN8I_MIXER_DE2 ,
788+ .mod_rate = 150000000 ,
789+ .vi_num = 2 ,
790+ .ui_num = 1 ,
773791};
774792
775793static const struct sun8i_mixer_cfg sun20i_d1_mixer0_cfg = {
776- .ccsc = CCSC_D1_MIXER0_LAYOUT ,
794+ .lay_cfg = {
795+ .ccsc = CCSC_D1_MIXER0_LAYOUT ,
796+ .de_type = SUN8I_MIXER_DE2 ,
797+ .vi_scaler_num = 1 ,
798+ .scaler_mask = 0x3 ,
799+ .scanline_yuv = 2048 ,
800+ .de2_fcc_alpha = 1 ,
801+ },
777802 .de_type = SUN8I_MIXER_DE2 ,
778803 .mod_rate = 297000000 ,
779- .vi_scaler_num = 1 ,
780- .scaler_mask = 0x3 ,
781- .scanline_yuv = 2048 ,
782- .de2_fcc_alpha = 1 ,
783804 .ui_num = 1 ,
784805 .vi_num = 1 ,
785806};
786807
787808static const struct sun8i_mixer_cfg sun20i_d1_mixer1_cfg = {
788- .ccsc = CCSC_MIXER1_LAYOUT ,
809+ .lay_cfg = {
810+ .ccsc = CCSC_MIXER1_LAYOUT ,
811+ .de_type = SUN8I_MIXER_DE2 ,
812+ .vi_scaler_num = 1 ,
813+ .scaler_mask = 0x1 ,
814+ .scanline_yuv = 1024 ,
815+ .de2_fcc_alpha = 1 ,
816+ },
789817 .de_type = SUN8I_MIXER_DE2 ,
790818 .mod_rate = 297000000 ,
791- .vi_scaler_num = 1 ,
792- .scaler_mask = 0x1 ,
793- .scanline_yuv = 1024 ,
794- .de2_fcc_alpha = 1 ,
795819 .ui_num = 0 ,
796820 .vi_num = 1 ,
797821};
798822
799823static const struct sun8i_mixer_cfg sun50i_a64_mixer0_cfg = {
800- .ccsc = CCSC_MIXER0_LAYOUT ,
824+ .lay_cfg = {
825+ .ccsc = CCSC_MIXER0_LAYOUT ,
826+ .de_type = SUN8I_MIXER_DE2 ,
827+ .vi_scaler_num = 1 ,
828+ .scaler_mask = 0xf ,
829+ .scanline_yuv = 4096 ,
830+ .de2_fcc_alpha = 1 ,
831+ },
801832 .de_type = SUN8I_MIXER_DE2 ,
802833 .mod_rate = 297000000 ,
803- .vi_scaler_num = 1 ,
804- .scaler_mask = 0xf ,
805- .scanline_yuv = 4096 ,
806- .de2_fcc_alpha = 1 ,
807834 .ui_num = 3 ,
808835 .vi_num = 1 ,
809836};
810837
811838static const struct sun8i_mixer_cfg sun50i_a64_mixer1_cfg = {
812- .ccsc = CCSC_MIXER1_LAYOUT ,
839+ .lay_cfg = {
840+ .ccsc = CCSC_MIXER1_LAYOUT ,
841+ .de_type = SUN8I_MIXER_DE2 ,
842+ .vi_scaler_num = 1 ,
843+ .scaler_mask = 0x3 ,
844+ .scanline_yuv = 2048 ,
845+ .de2_fcc_alpha = 1 ,
846+ },
813847 .de_type = SUN8I_MIXER_DE2 ,
814848 .mod_rate = 297000000 ,
815- .vi_scaler_num = 1 ,
816- .scaler_mask = 0x3 ,
817- .scanline_yuv = 2048 ,
818- .de2_fcc_alpha = 1 ,
819849 .ui_num = 1 ,
820850 .vi_num = 1 ,
821851};
822852
823853static const struct sun8i_mixer_cfg sun50i_h6_mixer0_cfg = {
854+ .lay_cfg = {
855+ .de_type = SUN8I_MIXER_DE3 ,
856+ .vi_scaler_num = 1 ,
857+ .scaler_mask = 0xf ,
858+ .scanline_yuv = 4096 ,
859+ },
824860 .de_type = SUN8I_MIXER_DE3 ,
825861 .mod_rate = 600000000 ,
826- .vi_scaler_num = 1 ,
827- .scaler_mask = 0xf ,
828- .scanline_yuv = 4096 ,
829862 .ui_num = 3 ,
830863 .vi_num = 1 ,
831864};
832865
833866static const struct sun8i_mixer_cfg sun50i_h616_mixer0_cfg = {
867+ .lay_cfg = {
868+ .de_type = SUN8I_MIXER_DE33 ,
869+ .scaler_mask = 0xf ,
870+ .scanline_yuv = 4096 ,
871+ },
834872 .de_type = SUN8I_MIXER_DE33 ,
835873 .mod_rate = 600000000 ,
836- .scaler_mask = 0xf ,
837- .scanline_yuv = 4096 ,
838874 .ui_num = 3 ,
839875 .vi_num = 1 ,
840876 .map = {0 , 6 , 7 , 8 },
0 commit comments