ge2d: add ge2d support for s7 [1/1]

PD#SWPL-135795

Problem:
s7 ge2d bringup

Solution:
complete it

Verify:
ptm

Change-Id: I0dde3ae2d12aad5a5359d797832bd90068ef8d91
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
This commit is contained in:
yuhua.lin
2023-08-25 20:38:46 +08:00
committed by pengzhao.liu
parent 0a4fac154e
commit 315c2fa2bf
3 changed files with 34 additions and 9 deletions
+9 -9
View File
@@ -2098,18 +2098,18 @@
};
ge2d {
compatible = "amlogic, ge2d-s4";
status = "disabled";
compatible = "amlogic, ge2d-s7";
status = "okay";
interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "ge2d";
//clocks = <&clkc CLKID_VAPB>,
// <&clkc CLKID_G2D>,
// <&clkc CLKID_GE2D>;
//clock-names = "clk_vapb_0",
// "clk_ge2d",
// "clk_ge2d_gate";
clocks = <&clkc CLKID_VAPB>,
<&clkc CLKID_G2D>,
<&clkc CLKID_GE2D>;
clock-names = "clk_vapb_0",
"clk_ge2d",
"clk_ge2d_gate";
reg = <0xff040000 0x100>;
//power-domains = <&pwrdm PDID_S4_GE2D>;
power-domains = <&pwrdm PDID_S7_GE2D>;
};
aml_bt: aml_bt {
+24
View File
@@ -1665,6 +1665,26 @@ static struct ge2d_device_data_s ge2d_t3x = {
.blk_stride_mode = 1,
.cmd_queue_mode = 1,
};
static struct ge2d_device_data_s ge2d_s7 = {
.ge2d_rate = 667000000,
.src2_alp = 1,
.canvas_status = 2,
.deep_color = 1,
.hang_flag = 1,
.fifo = 1,
.has_self_pwr = 1,
.poweron_table = &runtime_poweron_table,
.poweroff_table = &runtime_poweroff_table,
.chip_type = MESON_CPU_MAJOR_ID_S7,
.adv_matrix = 1,
.src2_repeat = 1,
.dst_repeat = 1,
.dst_sign_mode = 1,
.blk_stride_mode = 1,
.cmd_queue_mode = 0,
};
#endif
#endif
@@ -1779,6 +1799,10 @@ static const struct of_device_id ge2d_dt_match[] = {
.compatible = "amlogic, ge2d-t3x",
.data = &ge2d_t3x,
},
{
.compatible = "amlogic, ge2d-s7",
.data = &ge2d_s7,
},
#endif
#endif
#ifndef CONFIG_AMLOGIC_C3_REMOVE
+1
View File
@@ -167,5 +167,6 @@ enum meson_chip_e {
MESON_CPU_MAJOR_ID_S5,
MESON_CPU_MAJOR_ID_T3X,
MESON_CPU_MAJOR_ID_S1A = 0x45,
MESON_CPU_MAJOR_ID_S7,
};
#endif