Felix Singer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/48142 )
Change subject: mb/kontron/mal10: Move include directories to mb level
......................................................................
mb/kontron/mal10: Move include directories to mb level
Move include directories from carriers and variants to mainboard level
so that the headers can be reused.
Signed-off-by: Felix Singer <felixsinger(a)posteo.net>
Change-Id: I55af05cb84b97d567ce1fc3b6151c34d1eda183f
---
M src/mainboard/kontron/mal10/Makefile.inc
R src/mainboard/kontron/mal10/include/carrier/gpio.h
R src/mainboard/kontron/mal10/include/variant/gpio.h
3 files changed, 1 insertion(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/42/48142/1
diff --git a/src/mainboard/kontron/mal10/Makefile.inc b/src/mainboard/kontron/mal10/Makefile.inc
index 885786f..7fbab00 100644
--- a/src/mainboard/kontron/mal10/Makefile.inc
+++ b/src/mainboard/kontron/mal10/Makefile.inc
@@ -3,7 +3,5 @@
ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += variants/$(VARIANT_DIR)/gma-mainboard.ads
subdirs-y += variants/$(VARIANT_DIR)
-CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/include
-
subdirs-y += carriers/$(CARRIER_DIR)
-CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/carriers/$(CARRIER_DIR)/include
+CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/include
diff --git a/src/mainboard/kontron/mal10/carriers/t10-tni/include/carrier/gpio.h b/src/mainboard/kontron/mal10/include/carrier/gpio.h
similarity index 100%
rename from src/mainboard/kontron/mal10/carriers/t10-tni/include/carrier/gpio.h
rename to src/mainboard/kontron/mal10/include/carrier/gpio.h
diff --git a/src/mainboard/kontron/mal10/variants/mal10/include/variant/gpio.h b/src/mainboard/kontron/mal10/include/variant/gpio.h
similarity index 100%
rename from src/mainboard/kontron/mal10/variants/mal10/include/variant/gpio.h
rename to src/mainboard/kontron/mal10/include/variant/gpio.h
--
To view, visit https://review.coreboot.org/c/coreboot/+/48142
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I55af05cb84b97d567ce1fc3b6151c34d1eda183f
Gerrit-Change-Number: 48142
Gerrit-PatchSet: 1
Gerrit-Owner: Felix Singer <felixsinger(a)posteo.net>
Gerrit-MessageType: newchange
Matt DeVillier has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/49057 )
Change subject: mb/google/reef (and variants): add ACPI backlight support
......................................................................
mb/google/reef (and variants): add ACPI backlight support
Enables backlight control under Windows 10.
Test: build/boot Windows 10 20H2 on google/reef, verify
display backlight controls functional.
Change-Id: I4ce613badbdcfb9c843f52408df26c6cbb4b82a2
Signed-off-by: Matt DeVillier <matt.devillier(a)gmail.com>
---
M src/mainboard/google/reef/dsdt.asl
M src/mainboard/google/reef/variants/baseboard/devicetree.cb
M src/mainboard/google/reef/variants/coral/devicetree.cb
M src/mainboard/google/reef/variants/pyro/devicetree.cb
M src/mainboard/google/reef/variants/sand/devicetree.cb
M src/mainboard/google/reef/variants/snappy/devicetree.cb
6 files changed, 16 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/57/49057/1
diff --git a/src/mainboard/google/reef/dsdt.asl b/src/mainboard/google/reef/dsdt.asl
index f87b962..ecd44f6 100644
--- a/src/mainboard/google/reef/dsdt.asl
+++ b/src/mainboard/google/reef/dsdt.asl
@@ -25,6 +25,7 @@
#include <soc/intel/apollolake/acpi/northbridge.asl>
#include <soc/intel/apollolake/acpi/southbridge.asl>
#include <soc/intel/apollolake/acpi/pch_hda.asl>
+ #include <drivers/intel/gma/acpi/default_brightness_levels.asl>
}
}
diff --git a/src/mainboard/google/reef/variants/baseboard/devicetree.cb b/src/mainboard/google/reef/variants/baseboard/devicetree.cb
index a1b7a4c..9aadc9e 100644
--- a/src/mainboard/google/reef/variants/baseboard/devicetree.cb
+++ b/src/mainboard/google/reef/variants/baseboard/devicetree.cb
@@ -125,7 +125,9 @@
device pci 00.0 on end # - Host Bridge
device pci 00.1 on end # - DPTF
device pci 00.2 on end # - NPK
- device pci 02.0 on end # - Gen
+ device pci 02.0 on # - Gen
+ register "gfx" = "GMA_DEFAULT_PANEL(0)"
+ end
device pci 03.0 on end # - Iunit
device pci 0d.0 on end # - P2SB
device pci 0d.1 on end # - PMC
diff --git a/src/mainboard/google/reef/variants/coral/devicetree.cb b/src/mainboard/google/reef/variants/coral/devicetree.cb
index 6492931..e8f8cc3 100644
--- a/src/mainboard/google/reef/variants/coral/devicetree.cb
+++ b/src/mainboard/google/reef/variants/coral/devicetree.cb
@@ -125,7 +125,9 @@
device pci 00.0 on end # - Host Bridge
device pci 00.1 on end # - DPTF
device pci 00.2 on end # - NPK
- device pci 02.0 on end # - Gen
+ device pci 02.0 on # - Gen
+ register "gfx" = "GMA_DEFAULT_PANEL(0)"
+ end
device pci 03.0 on end # - Iunit
device pci 0d.0 on end # - P2SB
device pci 0d.1 on end # - PMC
diff --git a/src/mainboard/google/reef/variants/pyro/devicetree.cb b/src/mainboard/google/reef/variants/pyro/devicetree.cb
index 0dbaa29..af459be 100644
--- a/src/mainboard/google/reef/variants/pyro/devicetree.cb
+++ b/src/mainboard/google/reef/variants/pyro/devicetree.cb
@@ -134,7 +134,9 @@
device pci 00.0 on end # - Host Bridge
device pci 00.1 on end # - DPTF
device pci 00.2 on end # - NPK
- device pci 02.0 on end # - Gen
+ device pci 02.0 on # - Gen
+ register "gfx" = "GMA_DEFAULT_PANEL(0)"
+ end
device pci 03.0 on end # - Iunit
device pci 0d.0 on end # - P2SB
device pci 0d.1 on end # - PMC
diff --git a/src/mainboard/google/reef/variants/sand/devicetree.cb b/src/mainboard/google/reef/variants/sand/devicetree.cb
index ba19369..91555ad 100644
--- a/src/mainboard/google/reef/variants/sand/devicetree.cb
+++ b/src/mainboard/google/reef/variants/sand/devicetree.cb
@@ -121,7 +121,9 @@
device pci 00.0 on end # - Host Bridge
device pci 00.1 on end # - DPTF
device pci 00.2 on end # - NPK
- device pci 02.0 on end # - Gen
+ device pci 02.0 on # - Gen
+ register "gfx" = "GMA_DEFAULT_PANEL(0)"
+ end
device pci 03.0 on end # - Iunit
device pci 0d.0 on end # - P2SB
device pci 0d.1 on end # - PMC
diff --git a/src/mainboard/google/reef/variants/snappy/devicetree.cb b/src/mainboard/google/reef/variants/snappy/devicetree.cb
index 3be68dd..d4e9705 100644
--- a/src/mainboard/google/reef/variants/snappy/devicetree.cb
+++ b/src/mainboard/google/reef/variants/snappy/devicetree.cb
@@ -130,7 +130,9 @@
device pci 00.0 on end # - Host Bridge
device pci 00.1 on end # - DPTF
device pci 00.2 on end # - NPK
- device pci 02.0 on end # - Gen
+ device pci 02.0 on # - Gen
+ register "gfx" = "GMA_DEFAULT_PANEL(0)"
+ end
device pci 03.0 on end # - Iunit
device pci 0d.0 on end # - P2SB
device pci 0d.1 on end # - PMC
--
To view, visit https://review.coreboot.org/c/coreboot/+/49057
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I4ce613badbdcfb9c843f52408df26c6cbb4b82a2
Gerrit-Change-Number: 49057
Gerrit-PatchSet: 1
Gerrit-Owner: Matt DeVillier <matt.devillier(a)gmail.com>
Gerrit-MessageType: newchange
Matt DeVillier has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/49049 )
Change subject: drivers/vpd: Add VPD region to default FMAP when selected
......................................................................
drivers/vpd: Add VPD region to default FMAP when selected
Currently, use of the VPD driver to read VPD tables from flash
requires the use of a custom FMAP with one or more VPD regions.
Extend this funtionality to boards using the default FMAP by
creating a dedicated VPD region when the driver is selected.
Test: build qemu target with CONFIG_VPD selected, verify entry
added to build/fmap.fmd.
Change-Id: Ie9e3c7cf11a6337a43223a6037632a4d9c84d988
Signed-off-by: Matt DeVillier <matt.devillier(a)gmail.com>
---
M Makefile.inc
M src/drivers/vpd/Kconfig
M util/cbfstool/default-x86.fmd
3 files changed, 25 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/49/49049/1
diff --git a/Makefile.inc b/Makefile.inc
index bacddf2..ae61c2e 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -983,6 +983,15 @@
FMAP_SPD_CACHE_ENTRY :=
endif
+ifeq ($(CONFIG_VPD),y)
+FMAP_VPD_BASE := $(call int-align, $(FMAP_CURRENT_BASE), 0x4000)
+FMAP_VPD_SIZE := $(CONFIG_VPD_FMAP_SIZE)
+FMAP_VPD_ENTRY := $(CONFIG_VPD_FMAP_NAME)@$(FMAP_VPD_BASE) $(FMAP_VPD_SIZE)
+FMAP_CURRENT_BASE := $(call int-add, $(FMAP_VPD_BASE) $(FMAP_VPD_SIZE))
+else
+FMAP_VPD_ENTRY :=
+endif
+
#
# X86 FMAP region
#
@@ -1060,6 +1069,7 @@
-e "s,##MRC_CACHE_ENTRY##,$(FMAP_MRC_CACHE_ENTRY)," \
-e "s,##SMMSTORE_ENTRY##,$(FMAP_SMMSTORE_ENTRY)," \
-e "s,##SPD_CACHE_ENTRY##,$(FMAP_SPD_CACHE_ENTRY)," \
+ -e "s,##VPD_ENTRY##,$(FMAP_VPD_ENTRY)," \
-e "s,##CBFS_BASE##,$(FMAP_CBFS_BASE)," \
-e "s,##CBFS_SIZE##,$(FMAP_CBFS_SIZE)," \
$(DEFAULT_FLASHMAP) > $@.tmp
diff --git a/src/drivers/vpd/Kconfig b/src/drivers/vpd/Kconfig
index eda9130..0b16058 100644
--- a/src/drivers/vpd/Kconfig
+++ b/src/drivers/vpd/Kconfig
@@ -5,3 +5,17 @@
default n
help
Enable support for flash based vital product data.
+
+config VPD_FMAP_NAME
+ string
+ depends on VPD
+ default "RO_VPD"
+ help
+ Name of the FMAP region created in the default FMAP to store VPD tables.
+
+config VPD_FMAP_SIZE
+ hex
+ depends on VPD
+ default 0x4000
+ help
+ Size in bytes of the FMAP region created to store VPD tables.
diff --git a/util/cbfstool/default-x86.fmd b/util/cbfstool/default-x86.fmd
index 25c5096..41be782 100644
--- a/util/cbfstool/default-x86.fmd
+++ b/util/cbfstool/default-x86.fmd
@@ -13,6 +13,7 @@
##MRC_CACHE_ENTRY##
##SMMSTORE_ENTRY##
##SPD_CACHE_ENTRY##
+ ##VPD_ENTRY##
FMAP@##FMAP_BASE## ##FMAP_SIZE##
COREBOOT(CBFS)@##CBFS_BASE## ##CBFS_SIZE##
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/49049
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ie9e3c7cf11a6337a43223a6037632a4d9c84d988
Gerrit-Change-Number: 49049
Gerrit-PatchSet: 1
Gerrit-Owner: Matt DeVillier <matt.devillier(a)gmail.com>
Gerrit-MessageType: newchange