Tim Wawrzynczak has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/48009 )
Change subject: soc/intel/alderlake: Add initial chipset.cb
......................................................................
soc/intel/alderlake: Add initial chipset.cb
Similar to the chipset.cb for TGL, this patch gives alias names to all
of the published PCI devices.
Signed-off-by: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Change-Id: I6576ef4237c1fc8439795ad5b64b1840504edf73
---
M src/soc/intel/alderlake/Kconfig
A src/soc/intel/alderlake/chipset.cb
2 files changed, 71 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/09/48009/1
diff --git a/src/soc/intel/alderlake/Kconfig b/src/soc/intel/alderlake/Kconfig
index 0aab3c5..7e693cb 100644
--- a/src/soc/intel/alderlake/Kconfig
+++ b/src/soc/intel/alderlake/Kconfig
@@ -92,6 +92,10 @@
Refer to Platform FSP integration guide document to know
the exact FSP requirement for Heap setup.
+config CHIPSET_DEVICETREE
+ string
+ default "soc/intel/alderlake/chipset.cb"
+
config IFD_CHIPSET
string
default "adl"
diff --git a/src/soc/intel/alderlake/chipset.cb b/src/soc/intel/alderlake/chipset.cb
new file mode 100644
index 0000000..ff81560
--- /dev/null
+++ b/src/soc/intel/alderlake/chipset.cb
@@ -0,0 +1,67 @@
+chip soc/intel/alderlake
+ device domain 0 on
+ device pci 00.0 alias system_agent on end
+ device pci 01.0 alias pcie5 off end
+ device pci 02.0 alias igpu off end
+ device pci 04.0 alias dtt off end
+ device pci 06.0 alias pcie4_0 off end
+ device pci 06.2 alias pcie4_1 off end
+ device pci 07.0 alias tbt_pcie_rp0 off end
+ device pci 07.1 alias tbt_pcie_rp1 off end
+ device pci 07.2 alias tbt_pcie_rp2 off end
+ device pci 07.3 alias tbt_pcie_rp3 off end
+ device pci 08.0 alias gna off end
+ device pci 09.0 alias north_tracehub off end
+ device pci 0a.0 alias crashlog off end
+ device pci 0d.0 alias north_xhci off end
+ device pci 0d.1 alias north_xdci off end
+ device pci 0d.2 alias tbt_dma0 off end
+ device pci 0d.3 alias tbt_dma1 off end
+ device pci 0e.0 alias vmd off end
+ device pci 10.6 alias thc0 off end
+ device pci 10.7 alias thc1 off end
+ device pci 12.0 alias ish off end
+ device pci 12.6 alias gspi2 off end
+ device pci 13.0 alias gspi3 off end
+ device pci 14.0 alias south_xhci off end
+ device pci 14.1 alias south_xdci off end
+ device pci 14.2 alias shared_sram off end
+ device pci 14.3 alias cnvi_wifi off end
+ device pci 15.0 alias i2c0 off end
+ device pci 15.1 alias i2c1 off end
+ device pci 15.2 alias i2c2 off end
+ device pci 15.3 alias i2c3 off end
+ device pci 16.0 alias heci1 off end
+ device pci 16.1 alias heci2 off end
+ device pci 16.4 alias heci3 off end
+ device pci 16.5 alias heci4 off end
+ device pci 17.0 alias sata off end
+ device pci 19.0 alias i2c4 off end
+ device pci 19.1 alias i2c5 off end
+ device pci 19.2 alias uart2 off end
+ device pci 1c.0 alias pcie_rp1 off end
+ device pci 1c.1 alias pcie_rp2 off end
+ device pci 1c.2 alias pcie_rp3 off end
+ device pci 1c.3 alias pcie_rp4 off end
+ device pci 1c.4 alias pcie_rp5 off end
+ device pci 1c.5 alias pcie_rp6 off end
+ device pci 1c.6 alias pcie_rp7 off end
+ device pci 1c.7 alias pcie_rp8 off end
+ device pci 1d.0 alias pcie_rp9 off end
+ device pci 1d.1 alias pcie_rp10 off end
+ device pci 1d.2 alias pcie_rp11 off end
+ device pci 1d.3 alias pcie_rp12 off end
+ device pci 1e.0 alias uart0 off end
+ device pci 1e.1 alias uart1 off end
+ device pci 1e.2 alias gspi0 off end
+ device pci 1e.3 alias gspi1 off end
+ device pci 1f.0 alias pch_espi on end
+ device pci 1f.1 alias p2sb off end
+ device pci 1f.2 alias pmc hidden end
+ device pci 1f.3 alias hda off end
+ device pci 1f.4 alias smbus off end
+ device pci 1f.5 alias fast_spi on end
+ device pci 1f.6 alias gbe off end
+ device pci 1f.7 alias south_tracehub off end
+ end
+end
--
To view, visit https://review.coreboot.org/c/coreboot/+/48009
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6576ef4237c1fc8439795ad5b64b1840504edf73
Gerrit-Change-Number: 48009
Gerrit-PatchSet: 1
Gerrit-Owner: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-MessageType: newchange
Tim Wawrzynczak has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/47395 )
Change subject: elog: Add new wake source codes
......................................................................
elog: Add new wake source codes
Tiger Lake introduces new wake-capable devices, including thunderbolt
ports, TCSS XHCI & XDCI as well as DMA ports. Add new ELOG_WAKE_SOURCE
macros for each of these types of devices.
Signed-off-by: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Change-Id: Ie5dae6514c2776b30418a390c4da53bda0b2d456
---
M src/include/elog.h
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/47395/1
diff --git a/src/include/elog.h b/src/include/elog.h
index 8c50e00..ed1722b 100644
--- a/src/include/elog.h
+++ b/src/include/elog.h
@@ -120,6 +120,11 @@
#define ELOG_WAKE_SOURCE_PME_PCIE23 0x2a
#define ELOG_WAKE_SOURCE_PME_PCIE24 0x2b
#define ELOG_WAKE_SOURCE_GPIO 0x2c
+#define ELOG_WAKE_SOURCE_PME_TBT 0x2d
+#define ELOG_WAKE_SOURCE_PME_TCSS_XHCI 0x2e
+#define ELOG_WAKE_SOURCE_PME_TCSS_XDCI 0x2f
+#define ELOG_WAKE_SOURCE_PME_TCSS_DMA0 0x30
+#define ELOG_WAKE_SOURCE_PME_TCSS_DMA1 0x31
struct elog_event_data_wake {
u8 source;
--
To view, visit https://review.coreboot.org/c/coreboot/+/47395
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ie5dae6514c2776b30418a390c4da53bda0b2d456
Gerrit-Change-Number: 47395
Gerrit-PatchSet: 1
Gerrit-Owner: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-MessageType: newchange
Angel Pons has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/47958 )
Change subject: mb/prodrive/hermes: Encapsulate GPIO setup
......................................................................
mb/prodrive/hermes: Encapsulate GPIO setup
Having variants' gpio.c call the `gpio_configure_pads` function results
in an API that does not need to pass data around, which is much simpler.
Change-Id: I1064dc6258561bcf83f0e249d65b823368cf0d31
Signed-off-by: Angel Pons <th3fanbus(a)gmail.com>
---
M src/mainboard/prodrive/hermes/bootblock.c
M src/mainboard/prodrive/hermes/ramstage.c
M src/mainboard/prodrive/hermes/variants/baseboard/gpio.c
M src/mainboard/prodrive/hermes/variants/baseboard/include/variant/gpio.h
4 files changed, 13 insertions(+), 27 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/58/47958/1
diff --git a/src/mainboard/prodrive/hermes/bootblock.c b/src/mainboard/prodrive/hermes/bootblock.c
index 1426a55..40fd0b4 100644
--- a/src/mainboard/prodrive/hermes/bootblock.c
+++ b/src/mainboard/prodrive/hermes/bootblock.c
@@ -6,20 +6,12 @@
#include <variant/gpio.h>
#include "gpio.h"
-static void early_config_gpio(void)
-{
- /* This is a hack for FSP because it does things in MemoryInit()
- * which it shouldn't do. We have to prepare certain gpios here
- * because of the brokenness in FSP. */
- size_t num = 0;
- const struct pad_config *early_gpio_table = get_early_gpio_table(&num);
-
- gpio_configure_pads(early_gpio_table, num);
-}
-
void bootblock_mainboard_early_init(void)
{
- early_config_gpio();
+ /* This is a hack for FSP because it does things in MemoryInit()
+ which it shouldn't do. We have to prepare certain gpios here
+ because of the brokenness in FSP. */
+ program_early_gpio_pads();
}
void bootblock_mainboard_init(void)
diff --git a/src/mainboard/prodrive/hermes/ramstage.c b/src/mainboard/prodrive/hermes/ramstage.c
index 135d775..e3dfffc 100644
--- a/src/mainboard/prodrive/hermes/ramstage.c
+++ b/src/mainboard/prodrive/hermes/ramstage.c
@@ -10,12 +10,9 @@
void mainboard_silicon_init_params(FSP_S_CONFIG *params)
{
- size_t num = 0;
- const struct pad_config *gpio_table = get_gpio_table(&num);
-
/* Configure pads prior to SiliconInit() in case there's any
dependencies during hardware initialization. */
- gpio_configure_pads(gpio_table, num);
+ program_gpio_pads();
params->SataLedEnable = 1;
diff --git a/src/mainboard/prodrive/hermes/variants/baseboard/gpio.c b/src/mainboard/prodrive/hermes/variants/baseboard/gpio.c
index 8735a9e..096dc35 100644
--- a/src/mainboard/prodrive/hermes/variants/baseboard/gpio.c
+++ b/src/mainboard/prodrive/hermes/variants/baseboard/gpio.c
@@ -2,6 +2,8 @@
#include "include/variant/gpio.h"
#include <commonlib/helpers.h>
+#include <soc/gpio.h>
+#include <intelblocks/gpio_defs.h>
/* Pad configuration in ramstage */
static const struct pad_config gpio_table[] = {
@@ -389,14 +391,12 @@
PAD_CFG_GPO(GPP_H5, 0, DEEP), /* PCH_HBLED_n */
};
-const struct pad_config *get_gpio_table(size_t *num)
+void program_gpio_pads(void)
{
- *num = ARRAY_SIZE(gpio_table);
- return gpio_table;
+ gpio_configure_pads(gpio_table, ARRAY_SIZE(gpio_table));
}
-const struct pad_config *get_early_gpio_table(size_t *num)
+void program_early_gpio_pads(void)
{
- *num = ARRAY_SIZE(early_gpio_table);
- return early_gpio_table;
+ gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table));
}
diff --git a/src/mainboard/prodrive/hermes/variants/baseboard/include/variant/gpio.h b/src/mainboard/prodrive/hermes/variants/baseboard/include/variant/gpio.h
index 50d1801..8fce3c8 100644
--- a/src/mainboard/prodrive/hermes/variants/baseboard/include/variant/gpio.h
+++ b/src/mainboard/prodrive/hermes/variants/baseboard/include/variant/gpio.h
@@ -3,10 +3,7 @@
#ifndef PCH_GPIO_H
#define PCH_GPIO_H
-#include <soc/gpio.h>
-#include <intelblocks/gpio_defs.h>
-
-const struct pad_config *get_gpio_table(size_t *num);
-const struct pad_config *get_early_gpio_table(size_t *num);
+void program_gpio_pads(void);
+void program_early_gpio_pads(void);
#endif /* PCH_GPIO_H */
--
To view, visit https://review.coreboot.org/c/coreboot/+/47958
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1064dc6258561bcf83f0e249d65b823368cf0d31
Gerrit-Change-Number: 47958
Gerrit-PatchSet: 1
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: newchange