Skip to content

Commit 37e6e64

Browse files
committed
mb/system76: Set PrimaryDisplay to hybrid graphics
Use the FSP option for (muxless) hybrid graphics. Internally it ends up setting PrimaryDisplay to iGFX, but does some extra configuration for the dGPU. Change-Id: I24c5bc154df127fc5c16a388fc7ae4316167ba70 Signed-off-by: Tim Crawford <tcrawford@system76.com>
1 parent 04e48d4 commit 37e6e64

File tree

15 files changed

+29
-28
lines changed

15 files changed

+29
-28
lines changed

src/mainboard/system76/addw1/romstage.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ void mainboard_memory_init_params(FSPM_UPD *memupd)
3131
// Enable dGPU power
3232
nvidia_set_power(&config);
3333

34-
// Set primary display to internal graphics
35-
memupd->FspmConfig.PrimaryDisplay = 0;
34+
// Set primary display to hybrid graphics
35+
memupd->FspmConfig.PrimaryDisplay = 4;
3636

3737
// Disable higher memory speeds
3838
memupd->FspmConfig.SaOcSupport = 0;

src/mainboard/system76/adl/variants/gaze17-3050/romstage.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ void mainboard_memory_init_params(FSPM_UPD *mupd)
2727
// Enable dGPU power
2828
nvidia_set_power(&config);
2929

30-
// Set primary display to internal graphics
31-
mupd->FspmConfig.PrimaryDisplay = 0;
30+
// Set primary display to hybrid graphics
31+
mupd->FspmConfig.PrimaryDisplay = 4;
3232

3333
mupd->FspmConfig.PchHdaAudioLinkHdaEnable = 1;
3434
mupd->FspmConfig.DmiMaxLinkSpeed = 4;

src/mainboard/system76/adl/variants/gaze17-3060-b/romstage.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ void mainboard_memory_init_params(FSPM_UPD *mupd)
2727
// Enable dGPU power
2828
nvidia_set_power(&config);
2929

30-
// Set primary display to internal graphics
31-
mupd->FspmConfig.PrimaryDisplay = 0;
30+
// Set primary display to hybrid graphics
31+
mupd->FspmConfig.PrimaryDisplay = 4;
3232

3333
mupd->FspmConfig.PchHdaAudioLinkHdaEnable = 1;
3434
mupd->FspmConfig.DmiMaxLinkSpeed = 4;

src/mainboard/system76/adl/variants/oryp10/romstage.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ void mainboard_memory_init_params(FSPM_UPD *mupd)
3030
// Enable dGPU power
3131
nvidia_set_power(&config);
3232

33-
// Set primary display to internal graphics
34-
mupd->FspmConfig.PrimaryDisplay = 0;
33+
// Set primary display to hybrid graphics
34+
mupd->FspmConfig.PrimaryDisplay = 4;
3535

3636
mupd->FspmConfig.PchHdaAudioLinkHdaEnable = 1;
3737
mupd->FspmConfig.DmiMaxLinkSpeed = 4;

src/mainboard/system76/adl/variants/oryp9/romstage.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ void mainboard_memory_init_params(FSPM_UPD *mupd)
2727
// Enable dGPU power
2828
nvidia_set_power(&config);
2929

30-
// Set primary display to internal graphics
31-
mupd->FspmConfig.PrimaryDisplay = 0;
30+
// Set primary display to hybrid graphics
31+
mupd->FspmConfig.PrimaryDisplay = 4;
3232

3333
mupd->FspmConfig.PchHdaAudioLinkHdaEnable = 1;
3434
mupd->FspmConfig.DmiMaxLinkSpeed = 4;

src/mainboard/system76/gaze15/romstage.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ void mainboard_memory_init_params(FSPM_UPD *memupd)
3131
// Enable dGPU power
3232
nvidia_set_power(&config);
3333

34-
// Set primary display to internal graphics
35-
memupd->FspmConfig.PrimaryDisplay = 0;
34+
// Set primary display to hybrid graphics
35+
memupd->FspmConfig.PrimaryDisplay = 4;
3636

3737
cannonlake_memcfg_init(&memupd->FspmConfig, &memcfg);
3838
}

src/mainboard/system76/oryp5/romstage.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ void mainboard_memory_init_params(FSPM_UPD *memupd)
3131
// Enable dGPU power
3232
nvidia_set_power(&config);
3333

34-
// Set primary display to internal graphics
35-
memupd->FspmConfig.PrimaryDisplay = 0;
34+
// Set primary display to hybrid graphics
35+
memupd->FspmConfig.PrimaryDisplay = 4;
3636

3737
// Allow memory speeds higher than 2666 MT/s
3838
memupd->FspmConfig.SaOcSupport = 1;

src/mainboard/system76/oryp6/romstage.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ void mainboard_memory_init_params(FSPM_UPD *memupd)
3232
// Enable dGPU power
3333
nvidia_set_power(&config);
3434

35-
// Set primary display to internal graphics
36-
memupd->FspmConfig.PrimaryDisplay = 0;
35+
// Set primary display to hybrid graphics
36+
memupd->FspmConfig.PrimaryDisplay = 4;
3737

3838
variant_configure_fspm(memupd);
3939

src/mainboard/system76/rpl/variants/addw3/romstage.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ void mainboard_memory_init_params(FSPM_UPD *mupd)
3232
// Enable dGPU power
3333
nvidia_set_power(&config);
3434

35-
// Set primary display to internal graphics
36-
mupd->FspmConfig.PrimaryDisplay = 0;
35+
// Set primary display to hybrid graphics
36+
mupd->FspmConfig.PrimaryDisplay = 4;
3737

3838
mupd->FspmConfig.PchHdaAudioLinkHdaEnable = 1;
3939
mupd->FspmConfig.DmiMaxLinkSpeed = 4;

src/mainboard/system76/rpl/variants/bonw15/romstage.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ void mainboard_memory_init_params(FSPM_UPD *mupd)
3232
// Enable dGPU power
3333
nvidia_set_power(&config);
3434

35-
// Set primary display to internal graphics
36-
mupd->FspmConfig.PrimaryDisplay = 0;
35+
// Set primary display to hybrid graphics
36+
mupd->FspmConfig.PrimaryDisplay = 4;
3737

3838
mupd->FspmConfig.PchHdaAudioLinkHdaEnable = 1;
3939
mupd->FspmConfig.DmiMaxLinkSpeed = 4;

src/mainboard/system76/rpl/variants/gaze18/romstage.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ void mainboard_memory_init_params(FSPM_UPD *mupd)
3030
// Enable dGPU power
3131
nvidia_set_power(&config);
3232

33-
// Set primary display to internal graphics
34-
mupd->FspmConfig.PrimaryDisplay = 0;
33+
// Set primary display to hybrid graphics
34+
mupd->FspmConfig.PrimaryDisplay = 4;
3535

3636
mupd->FspmConfig.PchHdaAudioLinkHdaEnable = 1;
3737
mupd->FspmConfig.DmiMaxLinkSpeed = 4;

src/mainboard/system76/rpl/variants/oryp11/romstage.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ void mainboard_memory_init_params(FSPM_UPD *mupd)
3030
// Enable dGPU power
3131
nvidia_set_power(&config);
3232

33-
// Set primary display to internal graphics
34-
mupd->FspmConfig.PrimaryDisplay = 0;
33+
// Set primary display to hybrid graphics
34+
mupd->FspmConfig.PrimaryDisplay = 4;
3535

3636
mupd->FspmConfig.PchHdaAudioLinkHdaEnable = 1;
3737
mupd->FspmConfig.DmiMaxLinkSpeed = 4;

src/mainboard/system76/rpl/variants/serw13/romstage.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ void mainboard_memory_init_params(FSPM_UPD *mupd)
3232
// Enable dGPU power
3333
nvidia_set_power(&config);
3434

35-
// Set primary display to internal graphics
36-
mupd->FspmConfig.PrimaryDisplay = 0;
35+
// Set primary display to hybrid graphics
36+
mupd->FspmConfig.PrimaryDisplay = 4;
3737

3838
mupd->FspmConfig.PchHdaAudioLinkHdaEnable = 1;
3939
mupd->FspmConfig.DmiMaxLinkSpeed = 4;

src/mainboard/system76/tgl-h/romstage.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ void mainboard_memory_init_params(FSPM_UPD *mupd)
3838
// Enable dGPU power
3939
nvidia_set_power(&config);
4040

41-
// Set primary display to internal graphics
42-
mupd->FspmConfig.PrimaryDisplay = 0;
41+
// Set primary display to hybrid graphics
42+
mupd->FspmConfig.PrimaryDisplay = 4;
4343

4444
memcfg_init(mupd, &board_cfg, &spd_info, half_populated);
4545
}

src/mainboard/system76/tgl-u/variants/galp5/romstage.c

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ void mainboard_memory_init_params(FSPM_UPD *mupd)
3030
nvidia_set_power(&config);
3131

3232
// Set primary display to internal graphics
33+
// NOTE: Use iGFX as some units don't have a dGPU for hybrid graphics
3334
mupd->FspmConfig.PrimaryDisplay = 0;
3435

3536
// Allow memory clocks higher than 2933 MHz

0 commit comments

Comments
 (0)