@@ -439,7 +439,8 @@ void a5xx_set_hwcg(struct msm_gpu *gpu, bool state)
439
439
const struct adreno_five_hwcg_regs * regs ;
440
440
unsigned int i , sz ;
441
441
442
- if (adreno_is_a506 (adreno_gpu ) || adreno_is_a508 (adreno_gpu )) {
442
+ if (adreno_is_a505 (adreno_gpu ) || adreno_is_a506 (adreno_gpu ) ||
443
+ adreno_is_a508 (adreno_gpu )) {
443
444
regs = a50x_hwcg ;
444
445
sz = ARRAY_SIZE (a50x_hwcg );
445
446
} else if (adreno_is_a509 (adreno_gpu ) || adreno_is_a512 (adreno_gpu )) {
@@ -483,7 +484,8 @@ static int a5xx_me_init(struct msm_gpu *gpu)
483
484
OUT_RING (ring , 0x00000000 );
484
485
485
486
/* Specify workarounds for various microcode issues */
486
- if (adreno_is_a506 (adreno_gpu ) || adreno_is_a530 (adreno_gpu )) {
487
+ if (adreno_is_a505 (adreno_gpu ) || adreno_is_a506 (adreno_gpu ) ||
488
+ adreno_is_a530 (adreno_gpu )) {
487
489
/* Workaround for token end syncs
488
490
* Force a WFI after every direct-render 3D mode draw and every
489
491
* 2D mode 3 draw
@@ -752,10 +754,11 @@ static int a5xx_hw_init(struct msm_gpu *gpu)
752
754
0x00100000 + adreno_gpu -> info -> gmem - 1 );
753
755
gpu_write (gpu , REG_A5XX_UCHE_GMEM_RANGE_MAX_HI , 0x00000000 );
754
756
755
- if (adreno_is_a506 (adreno_gpu ) || adreno_is_a508 (adreno_gpu ) ||
756
- adreno_is_a510 (adreno_gpu )) {
757
+ if (adreno_is_a505 (adreno_gpu ) || adreno_is_a506 (adreno_gpu ) ||
758
+ adreno_is_a508 ( adreno_gpu ) || adreno_is_a510 (adreno_gpu )) {
757
759
gpu_write (gpu , REG_A5XX_CP_MEQ_THRESHOLDS , 0x20 );
758
- if (adreno_is_a506 (adreno_gpu ) || adreno_is_a508 (adreno_gpu ))
760
+ if (adreno_is_a505 (adreno_gpu ) || adreno_is_a506 (adreno_gpu ) ||
761
+ adreno_is_a508 (adreno_gpu ))
759
762
gpu_write (gpu , REG_A5XX_CP_MERCIU_SIZE , 0x400 );
760
763
else
761
764
gpu_write (gpu , REG_A5XX_CP_MERCIU_SIZE , 0x20 );
@@ -771,7 +774,8 @@ static int a5xx_hw_init(struct msm_gpu *gpu)
771
774
gpu_write (gpu , REG_A5XX_CP_ROQ_THRESHOLDS_1 , 0x40201B16 );
772
775
}
773
776
774
- if (adreno_is_a506 (adreno_gpu ) || adreno_is_a508 (adreno_gpu ))
777
+ if (adreno_is_a505 (adreno_gpu ) || adreno_is_a506 (adreno_gpu ) ||
778
+ adreno_is_a508 (adreno_gpu ))
775
779
gpu_write (gpu , REG_A5XX_PC_DBG_ECO_CNTL ,
776
780
(0x100 << 11 | 0x100 << 22 ));
777
781
else if (adreno_is_a509 (adreno_gpu ) || adreno_is_a510 (adreno_gpu ) ||
@@ -789,8 +793,9 @@ static int a5xx_hw_init(struct msm_gpu *gpu)
789
793
* Disable the RB sampler datapath DP2 clock gating optimization
790
794
* for 1-SP GPUs, as it is enabled by default.
791
795
*/
792
- if (adreno_is_a506 (adreno_gpu ) || adreno_is_a508 (adreno_gpu ) ||
793
- adreno_is_a509 (adreno_gpu ) || adreno_is_a512 (adreno_gpu ))
796
+ if (adreno_is_a505 (adreno_gpu ) || adreno_is_a506 (adreno_gpu ) ||
797
+ adreno_is_a508 (adreno_gpu ) || adreno_is_a509 (adreno_gpu ) ||
798
+ adreno_is_a512 (adreno_gpu ))
794
799
gpu_rmw (gpu , REG_A5XX_RB_DBG_ECO_CNTL , 0 , (1 << 9 ));
795
800
796
801
/* Disable UCHE global filter as SP can invalidate/flush independently */
@@ -1345,7 +1350,7 @@ static int a5xx_pm_resume(struct msm_gpu *gpu)
1345
1350
if (ret )
1346
1351
return ret ;
1347
1352
1348
- /* Adreno 506, 508, 509, 510, 512 needs manual RBBM sus/res control */
1353
+ /* Adreno 505, 506, 508, 509, 510, 512 needs manual RBBM sus/res control */
1349
1354
if (!(adreno_is_a530 (adreno_gpu ) || adreno_is_a540 (adreno_gpu ))) {
1350
1355
/* Halt the sp_input_clk at HM level */
1351
1356
gpu_write (gpu , REG_A5XX_RBBM_CLOCK_CNTL , 0x00000055 );
@@ -1388,9 +1393,9 @@ static int a5xx_pm_suspend(struct msm_gpu *gpu)
1388
1393
u32 mask = 0xf ;
1389
1394
int i , ret ;
1390
1395
1391
- /* A506, A508, A510 have 3 XIN ports in VBIF */
1392
- if (adreno_is_a506 (adreno_gpu ) || adreno_is_a508 (adreno_gpu ) ||
1393
- adreno_is_a510 (adreno_gpu ))
1396
+ /* A505, A506, A508, A510 have 3 XIN ports in VBIF */
1397
+ if (adreno_is_a505 (adreno_gpu ) || adreno_is_a506 (adreno_gpu ) ||
1398
+ adreno_is_a508 ( adreno_gpu ) || adreno_is_a510 (adreno_gpu ))
1394
1399
mask = 0x7 ;
1395
1400
1396
1401
/* Clear the VBIF pipe before shutting down */
0 commit comments