@@ -531,6 +531,10 @@ static void
531
531
intel_dp_set_source_rates (struct intel_dp * intel_dp )
532
532
{
533
533
/* The values must be in increasing order */
534
+ static const int bmg_rates [] = {
535
+ 162000 , 216000 , 243000 , 270000 , 324000 , 432000 , 540000 , 675000 ,
536
+ 810000 , 1000000 , 1350000 ,
537
+ };
534
538
static const int mtl_rates [] = {
535
539
162000 , 216000 , 243000 , 270000 , 324000 , 432000 , 540000 , 675000 ,
536
540
810000 , 1000000 , 2000000 ,
@@ -561,8 +565,13 @@ intel_dp_set_source_rates(struct intel_dp *intel_dp)
561
565
intel_dp -> source_rates || intel_dp -> num_source_rates );
562
566
563
567
if (DISPLAY_VER (dev_priv ) >= 14 ) {
564
- source_rates = mtl_rates ;
565
- size = ARRAY_SIZE (mtl_rates );
568
+ if (IS_BATTLEMAGE (dev_priv )) {
569
+ source_rates = bmg_rates ;
570
+ size = ARRAY_SIZE (bmg_rates );
571
+ } else {
572
+ source_rates = mtl_rates ;
573
+ size = ARRAY_SIZE (mtl_rates );
574
+ }
566
575
max_rate = mtl_max_source_rate (intel_dp );
567
576
} else if (DISPLAY_VER (dev_priv ) >= 11 ) {
568
577
source_rates = icl_rates ;
0 commit comments