ge2d: change ge2d to independent power [1/1]

PD#SWPL-5391

Problem:
change ge2d to independent power

Solution:
add independent power switch

Verify:
verified on SM1-AC200 board

Change-Id: Ifce980fc88753db63317c11bc1126e492b677a64
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
This commit is contained in:
Jian Cao
2019-03-20 17:37:08 +08:00
committed by Luke Go
parent b9f923d686
commit 11b3e3c263
7 changed files with 145 additions and 4 deletions

View File

@@ -1012,6 +1012,26 @@ struct ge2d_dmabuf_exp_s {
};
/* end of ge2d dma buffer define */
enum {
CBUS_BASE,
AOBUS_BASE,
HIUBUS_BASE,
};
struct ge2d_ctrl_s {
unsigned int bus_type;
unsigned int reg;
unsigned int val;
unsigned int start;
unsigned int len;
unsigned int udelay;
};
struct ge2d_power_table_s {
unsigned int table_size;
struct ge2d_ctrl_s *power_btale;
};
struct ge2d_device_data_s {
int ge2d_rate;
int src2_alp;
@@ -1019,6 +1039,9 @@ struct ge2d_device_data_s {
int deep_color;
int hang_flag;
int fifo;
int has_self_pwr;
struct ge2d_power_table_s *poweron_table;
struct ge2d_power_table_s *poweroff_table;
};
extern struct ge2d_device_data_s ge2d_meson_dev;