mb/google/dedede: Use DRIVERS_GFX_GENERIC for laptops
For dedede laptops, switch from using GMA_DEFAULT_PANEL(0), previously set in the baseboard, to using a per-variant gfx generic chip driver, so that variants which use IPU/MIPI cameras can add the IPUA camera device in a subsequent commit. For dedede laptops, this is a no-op; for Chromeboxes, it removes the previously defined internal panel which they do not have. TEST=build/boot dexi, magolor variants. verify ACPI brightness controls still functional under Linux and Windows for the latter. Change-Id: I83fd2d952ca785bef8210024cbbb9280688d6a5e Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/91065 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sean Rhodes <sean@starlabs.systems> Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
This commit is contained in:
parent
a45590126f
commit
a49bd22668
27 changed files with 277 additions and 3 deletions
|
|
@ -278,6 +278,7 @@ if BOARD_GOOGLE_BASEBOARD_DEDEDE
|
|||
|
||||
config BASEBOARD_DEDEDE_LAPTOP
|
||||
def_bool n
|
||||
select DRIVERS_GFX_GENERIC
|
||||
select SYSTEM_TYPE_LAPTOP
|
||||
|
||||
config CHROMEOS
|
||||
|
|
|
|||
|
|
@ -84,6 +84,17 @@ chip soc/intel/jasperlake
|
|||
register "SdCardPowerEnableActiveHigh" = "0"
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref dptf on
|
||||
chip drivers/intel/dptf
|
||||
## sensor information
|
||||
|
|
|
|||
|
|
@ -228,9 +228,7 @@ chip soc/intel/jasperlake
|
|||
register "xhci_lfps_sampling_offtime_ms" = "9"
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
register "gfx" = "GMA_DEFAULT_PANEL(0)"
|
||||
end
|
||||
device ref igpu on end
|
||||
device ref dptf on
|
||||
# Default DPTF Policy for all Dedede boards if not overridden
|
||||
chip drivers/intel/dptf
|
||||
|
|
|
|||
|
|
@ -60,6 +60,17 @@ chip soc/intel/jasperlake
|
|||
register "SerialIoI2cMode[PchSerialIoIndexI2C5]" = "PchSerialIoPci"
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref dptf on
|
||||
# Default DPTF Policy for all Dedede boards if not overridden
|
||||
chip drivers/intel/dptf
|
||||
|
|
|
|||
|
|
@ -63,6 +63,17 @@ chip soc/intel/jasperlake
|
|||
register "FastPkgCRampDisable" = "1"
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref dptf on
|
||||
chip drivers/intel/dptf
|
||||
## Passive Policy
|
||||
|
|
|
|||
|
|
@ -89,6 +89,17 @@ chip soc/intel/jasperlake
|
|||
register "xhci_lfps_sampling_offtime_ms" = "0"
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref dptf on
|
||||
chip drivers/intel/dptf
|
||||
## Passive Policy
|
||||
|
|
|
|||
|
|
@ -94,6 +94,17 @@ chip soc/intel/jasperlake
|
|||
register "SerialIoI2cMode[PchSerialIoIndexI2C4]" = "PchSerialIoPci"
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref dptf on
|
||||
chip drivers/intel/dptf
|
||||
register "options.tsr[0].desc" = ""Memory""
|
||||
|
|
|
|||
|
|
@ -77,6 +77,17 @@ chip soc/intel/jasperlake
|
|||
}" # Camera
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref dptf on
|
||||
chip drivers/intel/dptf
|
||||
## Passive Policy
|
||||
|
|
|
|||
|
|
@ -44,6 +44,17 @@ chip soc/intel/jasperlake
|
|||
register "SerialIoGSpiCsMode[PchSerialIoIndexGSPI0]" = "0"
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref dptf on
|
||||
chip drivers/intel/dptf
|
||||
## Passive Policy
|
||||
|
|
|
|||
|
|
@ -52,6 +52,17 @@ chip soc/intel/jasperlake
|
|||
},
|
||||
}"
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref dptf on
|
||||
chip drivers/intel/dptf
|
||||
## Passive Policy
|
||||
|
|
|
|||
|
|
@ -82,6 +82,17 @@ chip soc/intel/jasperlake
|
|||
register "FastPkgCRampDisable" = "1"
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref ipu on
|
||||
chip drivers/intel/mipi_camera
|
||||
register "acpi_uid" = "0x50000"
|
||||
|
|
|
|||
|
|
@ -35,6 +35,17 @@ chip soc/intel/jasperlake
|
|||
register "SerialIoGSpiCsMode[PchSerialIoIndexGSPI0]" = "0"
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref dptf on
|
||||
chip drivers/intel/dptf
|
||||
## Passive Policy
|
||||
|
|
|
|||
|
|
@ -69,6 +69,17 @@ chip soc/intel/jasperlake
|
|||
register "tcc_offset" = "8" # TCC of 97C
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref dptf on
|
||||
# Default DPTF Policy for all Dedede boards if not overridden
|
||||
chip drivers/intel/dptf
|
||||
|
|
|
|||
|
|
@ -68,6 +68,17 @@ chip soc/intel/jasperlake
|
|||
register "xhci_lfps_sampling_offtime_ms" = "0"
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref dptf on
|
||||
chip drivers/intel/dptf
|
||||
## Passive Policy
|
||||
|
|
|
|||
|
|
@ -53,6 +53,17 @@ chip soc/intel/jasperlake
|
|||
register "FastPkgCRampDisable" = "1"
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref ipu on
|
||||
chip drivers/intel/mipi_camera
|
||||
register "acpi_uid" = "0x50000"
|
||||
|
|
|
|||
|
|
@ -65,6 +65,17 @@ chip soc/intel/jasperlake
|
|||
register "tcc_offset" = "20" # TCC of 85C
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref dptf on
|
||||
chip drivers/intel/dptf
|
||||
# Default DPTF Policy for all drawcia boards if not overridden
|
||||
|
|
|
|||
|
|
@ -87,6 +87,17 @@ chip soc/intel/jasperlake
|
|||
register "FastPkgCRampDisable" = "1"
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref dptf on
|
||||
chip drivers/intel/dptf
|
||||
register "options.tsr[0].desc" = ""Memory""
|
||||
|
|
|
|||
|
|
@ -90,6 +90,17 @@ chip soc/intel/jasperlake
|
|||
register "FastPkgCRampDisable" = "1"
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref dptf on
|
||||
chip drivers/intel/dptf
|
||||
register "options.tsr[0].desc" = ""Memory""
|
||||
|
|
|
|||
|
|
@ -57,6 +57,17 @@ chip soc/intel/jasperlake
|
|||
register "SlowSlewRate" = "2"
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref dptf on
|
||||
chip drivers/intel/dptf
|
||||
register "policies.passive" = "{
|
||||
|
|
|
|||
|
|
@ -126,6 +126,17 @@ chip soc/intel/jasperlake
|
|||
register "FastPkgCRampDisable" = "1"
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref dptf on
|
||||
chip drivers/intel/dptf
|
||||
register "options.tsr[0].desc" = ""Memory""
|
||||
|
|
|
|||
|
|
@ -84,6 +84,17 @@ chip soc/intel/jasperlake
|
|||
}"
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref dptf on
|
||||
chip drivers/intel/dptf
|
||||
register "options.tsr[0].desc" = ""Memory""
|
||||
|
|
|
|||
|
|
@ -78,6 +78,17 @@ chip soc/intel/jasperlake
|
|||
register "tcc_offset" = "8" # TCC of 97C
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref dptf on
|
||||
# Default DPTF Policy for all Dedede boards if not overridden
|
||||
chip drivers/intel/dptf
|
||||
|
|
|
|||
|
|
@ -85,6 +85,17 @@ chip soc/intel/jasperlake
|
|||
register "SerialIoI2cMode[PchSerialIoIndexI2C4]" = "PchSerialIoPci"
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref dptf on
|
||||
chip drivers/intel/dptf
|
||||
register "options.tsr[0].desc" = ""Charger""
|
||||
|
|
|
|||
|
|
@ -96,6 +96,17 @@ chip soc/intel/jasperlake
|
|||
register "xhci_lfps_sampling_offtime_ms" = "0"
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref dptf on
|
||||
chip drivers/intel/dptf
|
||||
## Passive Policy
|
||||
|
|
|
|||
|
|
@ -100,6 +100,17 @@ chip soc/intel/jasperlake
|
|||
register "xhci_lfps_sampling_offtime_ms" = "0"
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref dptf on
|
||||
chip drivers/intel/dptf
|
||||
## Passive Policy
|
||||
|
|
|
|||
|
|
@ -61,6 +61,17 @@ chip soc/intel/jasperlake
|
|||
register "SerialIoI2cMode[PchSerialIoIndexI2C4]" = "PchSerialIoPci"
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref ipu on end
|
||||
device ref south_xhci on
|
||||
chip drivers/usb/acpi
|
||||
|
|
|
|||
|
|
@ -57,6 +57,17 @@ chip soc/intel/jasperlake
|
|||
register "SerialIoI2cMode[PchSerialIoIndexI2C4]" = "PchSerialIoPci"
|
||||
|
||||
device domain 0 on
|
||||
device ref igpu on
|
||||
chip drivers/gfx/generic
|
||||
register "device_count" = "1"
|
||||
# DDIA for eDP
|
||||
register "device[0].name" = ""LCD0""
|
||||
# Internal panel on the first port of the graphics chip
|
||||
register "device[0].type" = "panel"
|
||||
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device ref ipu on
|
||||
chip drivers/intel/mipi_camera
|
||||
register "acpi_uid" = "0x50000"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue