ge2d_reg_set_bits(GE2D_GEN_CTRL2,
cfg->src1_gb_alpha_en, 29, 1);
#ifdef CONFIG_GE2D_SRC2
- ge2d_reg_set_bits(GE2D_GEN_CTRL5, cfg->src2_gb_alpha, 0, 8);
- ge2d_reg_set_bits(GE2D_GEN_CTRL5,
- cfg->src2_gb_alpha_en, 8, 1);
+ if (ge2d_meson_dev.src2_alp == 1) {
+ ge2d_reg_set_bits(GE2D_GEN_CTRL5, cfg->src2_gb_alpha, 0, 8);
+ ge2d_reg_set_bits(GE2D_GEN_CTRL5,
+ cfg->src2_gb_alpha_en, 8, 1);
+ }
#endif
ge2d_reg_write(GE2D_ALU_CONST_COLOR, cfg->alu_const_color);
ge2d_reg_write(GE2D_SRC1_KEY, cfg->src1_key);