mirror of
https://github.com/revyos/thead-kernel.git
synced 2026-06-21 09:12:26 +02:00
drm/etnaviv: add workaround for GC620 on TH1520 (0x5552)
Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
This commit is contained in:
committed by
Han Gao/Revy/Rabenda
parent
9ba56a64a8
commit
373e8161c5
@@ -523,6 +523,10 @@ static int etnaviv_hw_reset(struct etnaviv_gpu *gpu)
|
||||
control |= VIVS_HI_CLOCK_CONTROL_ISOLATE_GPU;
|
||||
gpu_write(gpu, VIVS_HI_CLOCK_CONTROL, control);
|
||||
|
||||
if (etnaviv_is_model_rev(gpu, GC620, 0x5552)) {
|
||||
gpu_write(gpu, 0x00800, 0x10);
|
||||
}
|
||||
|
||||
if (gpu->identity.minor_features7 & chipMinorFeatures7_BIT_SECURITY) {
|
||||
gpu_write(gpu, VIVS_MMUv2_AHB_CONTROL,
|
||||
VIVS_MMUv2_AHB_CONTROL_RESET);
|
||||
@@ -748,6 +752,12 @@ static void etnaviv_gpu_hw_init(struct etnaviv_gpu *gpu)
|
||||
gpu_write(gpu, VIVS_MC_BUS_CONFIG, bus_config);
|
||||
}
|
||||
|
||||
/* FIXME: use feature bit 5 of minor features 12, G2D_DEC400EX */
|
||||
if (etnaviv_is_model_rev(gpu, GC620, 0x5552)) {
|
||||
gpu_write(gpu, 0x800, 0x2010188);
|
||||
gpu_write(gpu, 0x808, 0x3fc104);
|
||||
}
|
||||
|
||||
if (gpu->identity.minor_features7 & chipMinorFeatures7_BIT_SECURITY) {
|
||||
u32 val = gpu_read(gpu, VIVS_MMUv2_AHB_CONTROL);
|
||||
val |= VIVS_MMUv2_AHB_CONTROL_NONSEC_ACCESS;
|
||||
|
||||
Reference in New Issue
Block a user