diff options
Diffstat (limited to 'src/soc')
-rw-r--r-- | src/soc/amd/morgana/include/soc/cpu.h | 8 | ||||
-rw-r--r-- | src/soc/amd/morgana/include/soc/espi.h | 10 | ||||
-rw-r--r-- | src/soc/amd/phoenix/Kconfig (renamed from src/soc/amd/morgana/Kconfig) | 18 | ||||
-rw-r--r-- | src/soc/amd/phoenix/Makefile.inc (renamed from src/soc/amd/morgana/Makefile.inc) | 26 | ||||
-rw-r--r-- | src/soc/amd/phoenix/acpi.c (renamed from src/soc/amd/morgana/acpi.c) | 4 | ||||
-rw-r--r-- | src/soc/amd/phoenix/acpi/globalnvs.asl (renamed from src/soc/amd/morgana/acpi/globalnvs.asl) | 2 | ||||
-rw-r--r-- | src/soc/amd/phoenix/acpi/mmio.asl (renamed from src/soc/amd/morgana/acpi/mmio.asl) | 2 | ||||
-rw-r--r-- | src/soc/amd/phoenix/acpi/pci0.asl (renamed from src/soc/amd/morgana/acpi/pci0.asl) | 2 | ||||
-rw-r--r-- | src/soc/amd/phoenix/acpi/pci_int_defs.asl (renamed from src/soc/amd/morgana/acpi/pci_int_defs.asl) | 2 | ||||
-rw-r--r-- | src/soc/amd/phoenix/acpi/soc.asl (renamed from src/soc/amd/morgana/acpi/soc.asl) | 2 | ||||
-rw-r--r-- | src/soc/amd/phoenix/agesa_acpi.c (renamed from src/soc/amd/morgana/agesa_acpi.c) | 0 | ||||
-rw-r--r-- | src/soc/amd/phoenix/aoac.c (renamed from src/soc/amd/morgana/aoac.c) | 0 | ||||
-rw-r--r-- | src/soc/amd/phoenix/chip.c (renamed from src/soc/amd/morgana/chip.c) | 10 | ||||
-rw-r--r-- | src/soc/amd/phoenix/chip.h (renamed from src/soc/amd/morgana/chip.h) | 12 | ||||
-rw-r--r-- | src/soc/amd/phoenix/chipset.cb (renamed from src/soc/amd/morgana/chipset.cb) | 10 | ||||
-rw-r--r-- | src/soc/amd/phoenix/config.c (renamed from src/soc/amd/morgana/config.c) | 2 | ||||
-rw-r--r-- | src/soc/amd/phoenix/cpu.c (renamed from src/soc/amd/morgana/cpu.c) | 4 | ||||
-rw-r--r-- | src/soc/amd/phoenix/early_fch.c (renamed from src/soc/amd/morgana/early_fch.c) | 2 | ||||
-rw-r--r-- | src/soc/amd/phoenix/espi_util.c (renamed from src/soc/amd/morgana/espi_util.c) | 2 | ||||
-rw-r--r-- | src/soc/amd/phoenix/fch.c (renamed from src/soc/amd/morgana/fch.c) | 2 | ||||
-rw-r--r-- | src/soc/amd/phoenix/fsp_m_params.c (renamed from src/soc/amd/morgana/fsp_m_params.c) | 6 | ||||
-rw-r--r-- | src/soc/amd/phoenix/fsp_s_params.c (renamed from src/soc/amd/morgana/fsp_s_params.c) | 2 | ||||
-rw-r--r-- | src/soc/amd/phoenix/fw.cfg (renamed from src/soc/amd/morgana/fw.cfg) | 0 | ||||
-rw-r--r-- | src/soc/amd/phoenix/gpio.c (renamed from src/soc/amd/morgana/gpio.c) | 0 | ||||
-rw-r--r-- | src/soc/amd/phoenix/i2c.c (renamed from src/soc/amd/morgana/i2c.c) | 6 | ||||
-rw-r--r-- | src/soc/amd/phoenix/include/soc/acpi.h (renamed from src/soc/amd/morgana/include/soc/acpi.h) | 6 | ||||
-rw-r--r-- | src/soc/amd/phoenix/include/soc/amd_pci_int_defs.h (renamed from src/soc/amd/morgana/include/soc/amd_pci_int_defs.h) | 6 | ||||
-rw-r--r-- | src/soc/amd/phoenix/include/soc/aoac_defs.h (renamed from src/soc/amd/morgana/include/soc/aoac_defs.h) | 6 | ||||
-rw-r--r-- | src/soc/amd/phoenix/include/soc/cpu.h | 8 | ||||
-rw-r--r-- | src/soc/amd/phoenix/include/soc/data_fabric.h (renamed from src/soc/amd/morgana/include/soc/data_fabric.h) | 6 | ||||
-rw-r--r-- | src/soc/amd/phoenix/include/soc/espi.h | 10 | ||||
-rw-r--r-- | src/soc/amd/phoenix/include/soc/gpio.h (renamed from src/soc/amd/morgana/include/soc/gpio.h) | 6 | ||||
-rw-r--r-- | src/soc/amd/phoenix/include/soc/i2c.h (renamed from src/soc/amd/morgana/include/soc/i2c.h) | 6 | ||||
-rw-r--r-- | src/soc/amd/phoenix/include/soc/iomap.h (renamed from src/soc/amd/morgana/include/soc/iomap.h) | 6 | ||||
-rw-r--r-- | src/soc/amd/phoenix/include/soc/lpc.h (renamed from src/soc/amd/morgana/include/soc/lpc.h) | 8 | ||||
-rw-r--r-- | src/soc/amd/phoenix/include/soc/msr.h (renamed from src/soc/amd/morgana/include/soc/msr.h) | 8 | ||||
-rw-r--r-- | src/soc/amd/phoenix/include/soc/nvs.h (renamed from src/soc/amd/morgana/include/soc/nvs.h) | 10 | ||||
-rw-r--r-- | src/soc/amd/phoenix/include/soc/pci_devs.h (renamed from src/soc/amd/morgana/include/soc/pci_devs.h) | 8 | ||||
-rw-r--r-- | src/soc/amd/phoenix/include/soc/platform_descriptors.h (renamed from src/soc/amd/morgana/include/soc/platform_descriptors.h) | 8 | ||||
-rw-r--r-- | src/soc/amd/phoenix/include/soc/psp_transfer.h (renamed from src/soc/amd/morgana/include/soc/psp_transfer.h) | 8 | ||||
-rw-r--r-- | src/soc/amd/phoenix/include/soc/psp_verstage_addr.h (renamed from src/soc/amd/morgana/include/soc/psp_verstage_addr.h) | 8 | ||||
-rw-r--r-- | src/soc/amd/phoenix/include/soc/smi.h (renamed from src/soc/amd/morgana/include/soc/smi.h) | 6 | ||||
-rw-r--r-- | src/soc/amd/phoenix/include/soc/smu.h (renamed from src/soc/amd/morgana/include/soc/smu.h) | 6 | ||||
-rw-r--r-- | src/soc/amd/phoenix/include/soc/southbridge.h (renamed from src/soc/amd/morgana/include/soc/southbridge.h) | 6 | ||||
-rw-r--r-- | src/soc/amd/phoenix/include/soc/uart.h (renamed from src/soc/amd/morgana/include/soc/uart.h) | 8 | ||||
-rw-r--r-- | src/soc/amd/phoenix/mca.c (renamed from src/soc/amd/morgana/mca.c) | 0 | ||||
-rw-r--r-- | src/soc/amd/phoenix/preload.c (renamed from src/soc/amd/morgana/preload.c) | 0 | ||||
-rw-r--r-- | src/soc/amd/phoenix/psp_verstage/Makefile.inc (renamed from src/soc/amd/morgana/psp_verstage/Makefile.inc) | 4 | ||||
-rw-r--r-- | src/soc/amd/phoenix/psp_verstage/chipset.c (renamed from src/soc/amd/morgana/psp_verstage/chipset.c) | 2 | ||||
-rw-r--r-- | src/soc/amd/phoenix/psp_verstage/svc.c (renamed from src/soc/amd/morgana/psp_verstage/svc.c) | 2 | ||||
-rw-r--r-- | src/soc/amd/phoenix/psp_verstage/svc.h (renamed from src/soc/amd/morgana/psp_verstage/svc.h) | 2 | ||||
-rw-r--r-- | src/soc/amd/phoenix/psp_verstage/uart.c (renamed from src/soc/amd/morgana/psp_verstage/uart.c) | 0 | ||||
-rw-r--r-- | src/soc/amd/phoenix/reset.c (renamed from src/soc/amd/morgana/reset.c) | 0 | ||||
-rw-r--r-- | src/soc/amd/phoenix/romstage.c (renamed from src/soc/amd/morgana/romstage.c) | 0 | ||||
-rw-r--r-- | src/soc/amd/phoenix/root_complex.c (renamed from src/soc/amd/morgana/root_complex.c) | 6 | ||||
-rw-r--r-- | src/soc/amd/phoenix/smihandler.c (renamed from src/soc/amd/morgana/smihandler.c) | 2 | ||||
-rw-r--r-- | src/soc/amd/phoenix/smu.c (renamed from src/soc/amd/morgana/smu.c) | 0 | ||||
-rw-r--r-- | src/soc/amd/phoenix/uart.c (renamed from src/soc/amd/morgana/uart.c) | 0 | ||||
-rw-r--r-- | src/soc/amd/phoenix/xhci.c (renamed from src/soc/amd/morgana/xhci.c) | 2 |
59 files changed, 149 insertions, 149 deletions
diff --git a/src/soc/amd/morgana/include/soc/cpu.h b/src/soc/amd/morgana/include/soc/cpu.h deleted file mode 100644 index cc55705092..0000000000 --- a/src/soc/amd/morgana/include/soc/cpu.h +++ /dev/null @@ -1,8 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#ifndef AMD_MORGANA_CPU_H -#define AMD_MORGANA_CPU_H - -#define MORGANA_A0_CPUID 0x00a70f80 - -#endif /* AMD_MORGANA_CPU_H */ diff --git a/src/soc/amd/morgana/include/soc/espi.h b/src/soc/amd/morgana/include/soc/espi.h deleted file mode 100644 index d8217c6eab..0000000000 --- a/src/soc/amd/morgana/include/soc/espi.h +++ /dev/null @@ -1,10 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -/* TODO: Update for Morgana */ - -#ifndef AMD_MORGANA_ESPI_H -#define AMD_MORGANA_ESPI_H - -void espi_switch_to_spi1_pads(void); - -#endif /* AMD_MORGANA_ESPI_H */ diff --git a/src/soc/amd/morgana/Kconfig b/src/soc/amd/phoenix/Kconfig index 11fe0c4a69..f39a73d9c6 100644 --- a/src/soc/amd/morgana/Kconfig +++ b/src/soc/amd/phoenix/Kconfig @@ -1,9 +1,9 @@ # SPDX-License-Identifier: GPL-2.0-only # TODO: Evaluate what can be moved to a common directory -# TODO: Update for Morgana +# TODO: Update for Phoenix -config SOC_AMD_MORGANA +config SOC_AMD_PHOENIX bool select ACPI_SOC_NVS select ARCH_X86 @@ -82,13 +82,13 @@ config SOC_AMD_MORGANA select X86_AMD_FIXED_MTRRS select X86_INIT_NEED_1_SIPI help - AMD Morgana support + AMD Phoenix support -if SOC_AMD_MORGANA +if SOC_AMD_PHOENIX config CHIPSET_DEVICETREE string - default "soc/amd/morgana/chipset.cb" + default "soc/amd/phoenix/chipset.cb" config EARLY_RESERVED_DRAM_BASE hex @@ -342,7 +342,7 @@ comment "AMD Firmware Directory Table set to location for 16MB ROM" config AMDFW_CONFIG_FILE string "AMD PSP Firmware config file" - default "src/soc/amd/morgana/fw.cfg" + default "src/soc/amd/phoenix/fw.cfg" help Specify the path/location of AMD PSP Firmware config file. @@ -386,7 +386,7 @@ config HAVE_PSP_WHITELIST_FILE config PSP_WHITELIST_FILE string "Debug whitelist file path" depends on HAVE_PSP_WHITELIST_FILE - default "site-local/3rdparty/amd_blobs/morgana/PSP/wtl-mrg.sbin" + default "site-local/3rdparty/amd_blobs/phoenix/PSP/wtl-phx.sbin" config HAVE_SPL_FILE bool "Have a mainboard specific SPL table file" @@ -403,7 +403,7 @@ config HAVE_SPL_FILE config SPL_TABLE_FILE string "SPL table file" depends on HAVE_SPL_FILE - default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_MRG.sbin" + default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_PHX.sbin" config HAVE_SPL_RW_AB_FILE bool "Have a separate mainboard-specific SPL file in RW A/B partitions" @@ -418,7 +418,7 @@ config HAVE_SPL_RW_AB_FILE config SPL_RW_AB_TABLE_FILE string "Separate SPL table file for RW A/B partitions" depends on HAVE_SPL_RW_AB_FILE - default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_MRG.sbin" + default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_PHX.sbin" config PSP_SOFTFUSE_BITS string "PSP Soft Fuse bits to enable" diff --git a/src/soc/amd/morgana/Makefile.inc b/src/soc/amd/phoenix/Makefile.inc index 44a92eb5b7..71defcf220 100644 --- a/src/soc/amd/morgana/Makefile.inc +++ b/src/soc/amd/phoenix/Makefile.inc @@ -1,9 +1,9 @@ # SPDX-License-Identifier: BSD-3-Clause # TODO: Move as much as possible to common -# TODO: Update for Morgana +# TODO: Update for Phoenix -ifeq ($(CONFIG_SOC_AMD_MORGANA),y) +ifeq ($(CONFIG_SOC_AMD_PHOENIX),y) subdirs-$(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK) += psp_verstage @@ -51,9 +51,9 @@ smm-y += smihandler.c smm-y += smu.c smm-$(CONFIG_DEBUG_SMI) += uart.c -CPPFLAGS_common += -I$(src)/soc/amd/morgana/include -CPPFLAGS_common += -I$(src)/soc/amd/morgana/acpi -CPPFLAGS_common += -I$(src)/vendorcode/amd/fsp/morgana +CPPFLAGS_common += -I$(src)/soc/amd/phoenix/include +CPPFLAGS_common += -I$(src)/soc/amd/phoenix/acpi +CPPFLAGS_common += -I$(src)/vendorcode/amd/fsp/phoenix CPPFLAGS_common += -I$(src)/vendorcode/amd/fsp/common MAINBOARD_BLOBS_DIR:=$(top)/3rdparty/blobs/mainboard/$(MAINBOARDDIR) @@ -69,7 +69,7 @@ MAINBOARD_BLOBS_DIR:=$(top)/3rdparty/blobs/mainboard/$(MAINBOARDDIR) $(if $(CONFIG_AMD_FWM_POSITION_INDEX), ,\ $(error Invalid AMD firmware position index. Check if the board sets a valid ROM size)) -MORGANA_FWM_POSITION=$(call int-add, \ +PHOENIX_FWM_POSITION=$(call int-add, \ $(call int-subtract, 0xffffffff \ $(call int-shift-left, \ 0x80000 $(CONFIG_AMD_FWM_POSITION_INDEX))) 0x20000 1) @@ -78,11 +78,11 @@ MORGANA_FWM_POSITION=$(call int-add, \ # Building the cbfs image will fail if the offset isn't large enough AMD_FW_AB_POSITION := 0x40 -MORGANA_FW_A_POSITION=$(call int-add, \ +PHOENIX_FW_A_POSITION=$(call int-add, \ $(shell awk '$$2 == "FMAP_SECTION_FW_MAIN_A_START" {print $$3}' $(obj)/fmap_config.h) \ $(AMD_FW_AB_POSITION)) -MORGANA_FW_B_POSITION=$(call int-add, \ +PHOENIX_FW_B_POSITION=$(call int-add, \ $(shell awk '$$2 == "FMAP_SECTION_FW_MAIN_B_START" {print $$3}' $(obj)/fmap_config.h) \ $(AMD_FW_AB_POSITION)) # @@ -237,7 +237,7 @@ AMDFW_COMMON_ARGS=$(OPT_PSP_APCB_FILES) \ $(OPT_EFS_SPI_SPEED) \ $(OPT_EFS_SPI_MICRON_FLAG) \ --config $(CONFIG_AMDFW_CONFIG_FILE) \ - --soc-name "Morgana" \ + --soc-name "Phoenix" \ --flashsize $(CONFIG_ROM_SIZE) \ $(OPT_RECOVERY_AB_SINGLE_COPY) @@ -259,7 +259,7 @@ $(obj)/amdfw.rom: $(call strip_quotes, $(PSP_BIOSBIN_FILE)) \ $(OPT_VERSTAGE_FILE) \ $(OPT_VERSTAGE_SIG_FILE) \ $(OPT_SPL_TABLE_FILE) \ - --location $(shell printf "%#x" $(MORGANA_FWM_POSITION)) \ + --location $(shell printf "%#x" $(PHOENIX_FWM_POSITION)) \ --output $@ $(PSP_BIOSBIN_FILE): $(PSP_ELF_FILE) $(AMDCOMPRESS) @@ -278,7 +278,7 @@ $(obj)/amdfw_a.rom: $(obj)/amdfw.rom $(OPT_SPL_RW_AB_TABLE_FILE) \ $(OPT_SIGNED_AMDFW_A_POSITION) \ $(OPT_SIGNED_AMDFW_A_FILE) \ - --location $(shell printf "%#x" $(MORGANA_FW_A_POSITION)) \ + --location $(shell printf "%#x" $(PHOENIX_FW_A_POSITION)) \ --anywhere \ --output $@ @@ -292,7 +292,7 @@ $(obj)/amdfw_b.rom: $(obj)/amdfw.rom $(OPT_SPL_RW_AB_TABLE_FILE) \ $(OPT_SIGNED_AMDFW_B_POSITION) \ $(OPT_SIGNED_AMDFW_B_FILE) \ - --location $(shell printf "%#x" $(MORGANA_FW_B_POSITION)) \ + --location $(shell printf "%#x" $(PHOENIX_FW_B_POSITION)) \ --anywhere \ --output $@ @@ -320,4 +320,4 @@ build_complete:: $(obj)/amdfw_a.rom $(obj)/amdfw_b.rom endif # CONFIG_SEPARATE_SIGNED_PSPFW endif -endif # ($(CONFIG_SOC_AMD_MORGANA),y) +endif # ($(CONFIG_SOC_AMD_PHOENIX),y) diff --git a/src/soc/amd/morgana/acpi.c b/src/soc/amd/phoenix/acpi.c index 15b64c5a13..06b7f04137 100644 --- a/src/soc/amd/morgana/acpi.c +++ b/src/soc/amd/phoenix/acpi.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ /* TODO: See what can be made common */ /* ACPI - create the Fixed ACPI Description Tables (FADT) */ @@ -53,7 +53,7 @@ unsigned long acpi_fill_madt(unsigned long current) */ void acpi_fill_fadt(acpi_fadt_t *fadt) { - const struct soc_amd_morgana_config *cfg = config_of_soc(); + const struct soc_amd_phoenix_config *cfg = config_of_soc(); printk(BIOS_DEBUG, "pm_base: 0x%04x\n", ACPI_IO_BASE); diff --git a/src/soc/amd/morgana/acpi/globalnvs.asl b/src/soc/amd/phoenix/acpi/globalnvs.asl index 55fbabbb1c..8012a7b3b0 100644 --- a/src/soc/amd/morgana/acpi/globalnvs.asl +++ b/src/soc/amd/phoenix/acpi/globalnvs.asl @@ -4,7 +4,7 @@ /* * NOTE: The layout of the GNVS structure below must match the layout in - * soc/amd/morgana/include/soc/nvs.h !!! + * soc/amd/phoenix/include/soc/nvs.h !!! */ Field (GNVS, ByteAcc, NoLock, Preserve) diff --git a/src/soc/amd/morgana/acpi/mmio.asl b/src/soc/amd/phoenix/acpi/mmio.asl index f52f0e8a42..e8130b0037 100644 --- a/src/soc/amd/morgana/acpi/mmio.asl +++ b/src/soc/amd/phoenix/acpi/mmio.asl @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ #include <soc/amd/common/acpi/aoac.asl> #include <soc/aoac_defs.h> diff --git a/src/soc/amd/morgana/acpi/pci0.asl b/src/soc/amd/phoenix/acpi/pci0.asl index 3999d40c1c..665fe30423 100644 --- a/src/soc/amd/morgana/acpi/pci0.asl +++ b/src/soc/amd/phoenix/acpi/pci0.asl @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ Device(PCI0) { Name(_HID, EISAID("PNP0A08")) /* PCI Express Root Bridge */ diff --git a/src/soc/amd/morgana/acpi/pci_int_defs.asl b/src/soc/amd/phoenix/acpi/pci_int_defs.asl index ddd8edda33..5d6aadc321 100644 --- a/src/soc/amd/morgana/acpi/pci_int_defs.asl +++ b/src/soc/amd/phoenix/acpi/pci_int_defs.asl @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ /* PCI IRQ mapping registers, C00h-C01h. */ OperationRegion(PRQM, SystemIO, 0x00000c00, 0x00000002) diff --git a/src/soc/amd/morgana/acpi/soc.asl b/src/soc/amd/phoenix/acpi/soc.asl index df9911c961..4df7835b55 100644 --- a/src/soc/amd/morgana/acpi/soc.asl +++ b/src/soc/amd/phoenix/acpi/soc.asl @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ #include "globalnvs.asl" diff --git a/src/soc/amd/morgana/agesa_acpi.c b/src/soc/amd/phoenix/agesa_acpi.c index 8838d9dc49..8838d9dc49 100644 --- a/src/soc/amd/morgana/agesa_acpi.c +++ b/src/soc/amd/phoenix/agesa_acpi.c diff --git a/src/soc/amd/morgana/aoac.c b/src/soc/amd/phoenix/aoac.c index ab52544189..ab52544189 100644 --- a/src/soc/amd/morgana/aoac.c +++ b/src/soc/amd/phoenix/aoac.c diff --git a/src/soc/amd/morgana/chip.c b/src/soc/amd/phoenix/chip.c index 13d2638723..7f0b93f5a8 100644 --- a/src/soc/amd/morgana/chip.c +++ b/src/soc/amd/phoenix/chip.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ #include <amdblocks/data_fabric.h> #include <console/console.h> @@ -14,7 +14,7 @@ #include <types.h> #include "chip.h" -struct device_operations morgana_cpu_bus_ops = { +struct device_operations phoenix_cpu_bus_ops = { .read_resources = noop_read_resources, .set_resources = noop_set_resources, .init = mp_cpu_bus_init, @@ -34,7 +34,7 @@ static const char *soc_acpi_name(const struct device *dev) return NULL; }; -struct device_operations morgana_pci_domain_ops = { +struct device_operations phoenix_pci_domain_ops = { .read_resources = pci_domain_read_resources, .set_resources = pci_domain_set_resources, .scan_bus = pci_domain_scan_bus, @@ -57,8 +57,8 @@ static void soc_final(void *chip_info) fch_final(chip_info); } -struct chip_operations soc_amd_morgana_ops = { - CHIP_NAME("AMD Morgana SoC") +struct chip_operations soc_amd_phoenix_ops = { + CHIP_NAME("AMD Phoenix SoC") .init = soc_init, .final = soc_final }; diff --git a/src/soc/amd/morgana/chip.h b/src/soc/amd/phoenix/chip.h index cceea10c7e..f436f9fde4 100644 --- a/src/soc/amd/morgana/chip.h +++ b/src/soc/amd/phoenix/chip.h @@ -1,9 +1,9 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ -#ifndef MORGANA_CHIP_H -#define MORGANA_CHIP_H +#ifndef PHOENIX_CHIP_H +#define PHOENIX_CHIP_H #include <amdblocks/chip.h> #include <amdblocks/i2c.h> @@ -13,9 +13,9 @@ #include <soc/southbridge.h> #include <drivers/i2c/designware/dw_i2c.h> #include <types.h> -#include <vendorcode/amd/fsp/morgana/FspUsb.h> +#include <vendorcode/amd/fsp/phoenix/FspUsb.h> -struct soc_amd_morgana_config { +struct soc_amd_phoenix_config { struct soc_amd_common_config common_config; u8 i2c_scl_reset; struct dw_i2c_bus_config i2c[I2C_CTRLR_COUNT]; @@ -107,4 +107,4 @@ struct soc_amd_morgana_config { struct usb_phy_config usb_phy; }; -#endif /* MORGANA_CHIP_H */ +#endif /* PHOENIX_CHIP_H */ diff --git a/src/soc/amd/morgana/chipset.cb b/src/soc/amd/phoenix/chipset.cb index a9176376dd..0e014391e4 100644 --- a/src/soc/amd/morgana/chipset.cb +++ b/src/soc/amd/phoenix/chipset.cb @@ -1,12 +1,12 @@ -# TODO: Update for Morgana +# TODO: Update for Phoenix -chip soc/amd/morgana +chip soc/amd/phoenix device cpu_cluster 0 on - ops morgana_cpu_bus_ops + ops phoenix_cpu_bus_ops end device domain 0 on - ops morgana_pci_domain_ops - device pci 00.0 alias gnb on ops morgana_root_complex_operations end + ops phoenix_pci_domain_ops + device pci 00.0 alias gnb on ops phoenix_root_complex_operations end device pci 00.2 alias iommu off ops amd_iommu_ops end device pci 01.0 on end # Dummy Host Bridge diff --git a/src/soc/amd/morgana/config.c b/src/soc/amd/phoenix/config.c index 0728f15e44..b25298750a 100644 --- a/src/soc/amd/morgana/config.c +++ b/src/soc/amd/phoenix/config.c @@ -6,6 +6,6 @@ const struct soc_amd_common_config *soc_get_common_config(void) { - const struct soc_amd_morgana_config *cfg = config_of_soc(); + const struct soc_amd_phoenix_config *cfg = config_of_soc(); return &cfg->common_config; } diff --git a/src/soc/amd/morgana/cpu.c b/src/soc/amd/phoenix/cpu.c index 68c3a34343..e9a510f6c2 100644 --- a/src/soc/amd/morgana/cpu.c +++ b/src/soc/amd/phoenix/cpu.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ #include <acpi/acpi.h> #include <amdblocks/cpu.h> @@ -50,7 +50,7 @@ static struct device_operations cpu_dev_ops = { }; static struct cpu_device_id cpu_table[] = { - { X86_VENDOR_AMD, MORGANA_A0_CPUID}, /* TODO: Update for Morgana */ + { X86_VENDOR_AMD, PHOENIX_A0_CPUID}, /* TODO: Update for Phoenix */ { 0, 0 }, }; diff --git a/src/soc/amd/morgana/early_fch.c b/src/soc/amd/phoenix/early_fch.c index f8954b59be..d74ef3e30f 100644 --- a/src/soc/amd/morgana/early_fch.c +++ b/src/soc/amd/phoenix/early_fch.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ #include <amdblocks/acpimmio.h> #include <amdblocks/aoac.h> diff --git a/src/soc/amd/morgana/espi_util.c b/src/soc/amd/phoenix/espi_util.c index 1d0fc1731a..22a65a0335 100644 --- a/src/soc/amd/morgana/espi_util.c +++ b/src/soc/amd/phoenix/espi_util.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ #include <amdblocks/spi.h> #include <soc/espi.h> diff --git a/src/soc/amd/morgana/fch.c b/src/soc/amd/phoenix/fch.c index b740f47942..7e265338df 100644 --- a/src/soc/amd/morgana/fch.c +++ b/src/soc/amd/phoenix/fch.c @@ -124,7 +124,7 @@ static void fch_init_acpi_ports(void) /* configure the general purpose PCIe clock outputs according to the devicetree settings */ static void gpp_clk_setup(void) { - struct soc_amd_morgana_config *cfg = config_of_soc(); + struct soc_amd_phoenix_config *cfg = config_of_soc(); /* look-up table to be able to iterate over the PCIe clock output settings */ const uint8_t gpp_clk_shift_lut[GPP_CLK_OUTPUT_COUNT] = { diff --git a/src/soc/amd/morgana/fsp_m_params.c b/src/soc/amd/phoenix/fsp_m_params.c index 0b4bf2acc0..06c712733c 100644 --- a/src/soc/amd/morgana/fsp_m_params.c +++ b/src/soc/amd/phoenix/fsp_m_params.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ /* TODO: See what can be moved to common */ #include <amdblocks/apob_cache.h> @@ -15,7 +15,7 @@ #include <soc/pci_devs.h> #include <string.h> #include <types.h> -#include <vendorcode/amd/fsp/morgana/FspUsb.h> +#include <vendorcode/amd/fsp/phoenix/FspUsb.h> #include "chip.h" __weak void mb_pre_fspm(FSP_M_CONFIG *mcfg) @@ -71,7 +71,7 @@ static void fsp_assign_ioapic_upds(FSP_M_CONFIG *mcfg) void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version) { FSP_M_CONFIG *mcfg = &mupd->FspmConfig; - const struct soc_amd_morgana_config *config = config_of_soc(); + const struct soc_amd_phoenix_config *config = config_of_soc(); mupd->FspmArchUpd.NvsBufferPtr = (uintptr_t)soc_fill_apob_cache(); diff --git a/src/soc/amd/morgana/fsp_s_params.c b/src/soc/amd/phoenix/fsp_s_params.c index a68647cb1c..46c8e76d94 100644 --- a/src/soc/amd/morgana/fsp_s_params.c +++ b/src/soc/amd/phoenix/fsp_s_params.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ #include <acpi/acpi.h> #include <amdblocks/apob_cache.h> diff --git a/src/soc/amd/morgana/fw.cfg b/src/soc/amd/phoenix/fw.cfg index 055aa9c15e..055aa9c15e 100644 --- a/src/soc/amd/morgana/fw.cfg +++ b/src/soc/amd/phoenix/fw.cfg diff --git a/src/soc/amd/morgana/gpio.c b/src/soc/amd/phoenix/gpio.c index 74eecadcce..74eecadcce 100644 --- a/src/soc/amd/morgana/gpio.c +++ b/src/soc/amd/phoenix/gpio.c diff --git a/src/soc/amd/morgana/i2c.c b/src/soc/amd/phoenix/i2c.c index 0e416cf8e3..8237b7d776 100644 --- a/src/soc/amd/morgana/i2c.c +++ b/src/soc/amd/phoenix/i2c.c @@ -42,7 +42,7 @@ void i2c_set_bar(unsigned int bus, uintptr_t bar) void reset_i2c_peripherals(void) { - const struct soc_amd_morgana_config *cfg = config_of_soc(); + const struct soc_amd_phoenix_config *cfg = config_of_soc(); struct soc_i2c_peripheral_reset_info reset_info; reset_info.i2c_scl_reset_mask = cfg->i2c_scl_reset & GPIO_I2C_MASK; @@ -53,7 +53,7 @@ void reset_i2c_peripherals(void) void soc_i2c_misc_init(unsigned int bus, const struct dw_i2c_bus_config *cfg) { - const struct soc_amd_morgana_config *config = config_of_soc(); + const struct soc_amd_phoenix_config *config = config_of_soc(); if (bus >= ARRAY_SIZE(config->i2c_pad)) return; @@ -69,7 +69,7 @@ const struct soc_i2c_ctrlr_info *soc_get_i2c_ctrlr_info(size_t *num_ctrlrs) const struct dw_i2c_bus_config *soc_get_i2c_bus_config(size_t *num_buses) { - const struct soc_amd_morgana_config *config = config_of_soc(); + const struct soc_amd_phoenix_config *config = config_of_soc(); *num_buses = ARRAY_SIZE(config->i2c); return config->i2c; diff --git a/src/soc/amd/morgana/include/soc/acpi.h b/src/soc/amd/phoenix/include/soc/acpi.h index 132bac45c1..dc09a1d50c 100644 --- a/src/soc/amd/morgana/include/soc/acpi.h +++ b/src/soc/amd/phoenix/include/soc/acpi.h @@ -2,8 +2,8 @@ /* TODO: Move to common */ -#ifndef AMD_MORGANA_ACPI_H -#define AMD_MORGANA_ACPI_H +#ifndef AMD_PHOENIX_ACPI_H +#define AMD_PHOENIX_ACPI_H #include <acpi/acpi.h> #include <amdblocks/acpi.h> @@ -20,4 +20,4 @@ uintptr_t agesa_write_acpi_tables(const struct device *device, uintptr_t current, acpi_rsdp_t *rsdp); -#endif /* AMD_MORGANA_ACPI_H */ +#endif /* AMD_PHOENIX_ACPI_H */ diff --git a/src/soc/amd/morgana/include/soc/amd_pci_int_defs.h b/src/soc/amd/phoenix/include/soc/amd_pci_int_defs.h index 052074ba1a..52cca1a041 100644 --- a/src/soc/amd/morgana/include/soc/amd_pci_int_defs.h +++ b/src/soc/amd/phoenix/include/soc/amd_pci_int_defs.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef AMD_MORGANA_AMD_PCI_INT_DEFS_H -#define AMD_MORGANA_AMD_PCI_INT_DEFS_H +#ifndef AMD_PHOENIX_AMD_PCI_INT_DEFS_H +#define AMD_PHOENIX_AMD_PCI_INT_DEFS_H /* * PIRQ and device routing - these define the index into the @@ -53,4 +53,4 @@ #define PIRQ_UART2 0x78 /* UART2 */ #define PIRQ_UART3 0x79 /* UART3 */ -#endif /* AMD_MORGANA_AMD_PCI_INT_DEFS_H */ +#endif /* AMD_PHOENIX_AMD_PCI_INT_DEFS_H */ diff --git a/src/soc/amd/morgana/include/soc/aoac_defs.h b/src/soc/amd/phoenix/include/soc/aoac_defs.h index a93f06df06..1dbfc48869 100644 --- a/src/soc/amd/morgana/include/soc/aoac_defs.h +++ b/src/soc/amd/phoenix/include/soc/aoac_defs.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef AMD_MORGANA_AOAC_DEFS_H -#define AMD_MORGANA_AOAC_DEFS_H +#ifndef AMD_PHOENIX_AOAC_DEFS_H +#define AMD_PHOENIX_AOAC_DEFS_H /* FCH AOAC device offsets for AOAC_DEV_D3_CTL/AOAC_DEV_D3_STATE */ #define FCH_AOAC_DEV_CLK_GEN 0 @@ -20,4 +20,4 @@ #define FCH_AOAC_DEV_ESPI 27 #define FCH_AOAC_DEV_EMMC 28 -#endif /* AMD_MORGANA_AOAC_DEFS_H */ +#endif /* AMD_PHOENIX_AOAC_DEFS_H */ diff --git a/src/soc/amd/phoenix/include/soc/cpu.h b/src/soc/amd/phoenix/include/soc/cpu.h new file mode 100644 index 0000000000..294aa328c8 --- /dev/null +++ b/src/soc/amd/phoenix/include/soc/cpu.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef AMD_PHOENIX_CPU_H +#define AMD_PHOENIX_CPU_H + +#define PHOENIX_A0_CPUID 0x00a70f80 + +#endif /* AMD_PHOENIX_CPU_H */ diff --git a/src/soc/amd/morgana/include/soc/data_fabric.h b/src/soc/amd/phoenix/include/soc/data_fabric.h index 46070f7163..cdd9b1a696 100644 --- a/src/soc/amd/morgana/include/soc/data_fabric.h +++ b/src/soc/amd/phoenix/include/soc/data_fabric.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef AMD_MORGANA_DATA_FABRIC_H -#define AMD_MORGANA_DATA_FABRIC_H +#ifndef AMD_PHOENIX_DATA_FABRIC_H +#define AMD_PHOENIX_DATA_FABRIC_H #include <types.h> @@ -45,4 +45,4 @@ union df_ficaa { uint32_t raw; }; -#endif /* AMD_MORGANA_DATA_FABRIC_H */ +#endif /* AMD_PHOENIX_DATA_FABRIC_H */ diff --git a/src/soc/amd/phoenix/include/soc/espi.h b/src/soc/amd/phoenix/include/soc/espi.h new file mode 100644 index 0000000000..057332aebb --- /dev/null +++ b/src/soc/amd/phoenix/include/soc/espi.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +/* TODO: Update for Phoenix */ + +#ifndef AMD_PHOENIX_ESPI_H +#define AMD_PHOENIX_ESPI_H + +void espi_switch_to_spi1_pads(void); + +#endif /* AMD_PHOENIX_ESPI_H */ diff --git a/src/soc/amd/morgana/include/soc/gpio.h b/src/soc/amd/phoenix/include/soc/gpio.h index 1db9b7c7af..daad3b0857 100644 --- a/src/soc/amd/morgana/include/soc/gpio.h +++ b/src/soc/amd/phoenix/include/soc/gpio.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef AMD_MORGANA_GPIO_H -#define AMD_MORGANA_GPIO_H +#ifndef AMD_PHOENIX_GPIO_H +#define AMD_PHOENIX_GPIO_H #define GPIO_DEVICE_NAME "AMD0030" #define GPIO_DEVICE_DESC "GPIO Controller" @@ -296,4 +296,4 @@ #define GPIO_157_IOMUX_GPIOxx 0 #define GPIO_157_IOMUX_UART4_INTR 1 -#endif /* AMD_MORGANA_GPIO_H */ +#endif /* AMD_PHOENIX_GPIO_H */ diff --git a/src/soc/amd/morgana/include/soc/i2c.h b/src/soc/amd/phoenix/include/soc/i2c.h index 89463365e8..5146bf49f7 100644 --- a/src/soc/amd/morgana/include/soc/i2c.h +++ b/src/soc/amd/phoenix/include/soc/i2c.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef AMD_MORGANA_I2C_H -#define AMD_MORGANA_I2C_H +#ifndef AMD_PHOENIX_I2C_H +#define AMD_PHOENIX_I2C_H #include <soc/gpio.h> #include <types.h> @@ -27,4 +27,4 @@ void i2c_set_bar(unsigned int bus, uintptr_t bar); void reset_i2c_peripherals(void); -#endif /* AMD_MORGANA_I2C_H */ +#endif /* AMD_PHOENIX_I2C_H */ diff --git a/src/soc/amd/morgana/include/soc/iomap.h b/src/soc/amd/phoenix/include/soc/iomap.h index b00d6dd3a4..5a1488b343 100644 --- a/src/soc/amd/morgana/include/soc/iomap.h +++ b/src/soc/amd/phoenix/include/soc/iomap.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef AMD_MORGANA_IOMAP_H -#define AMD_MORGANA_IOMAP_H +#ifndef AMD_PHOENIX_IOMAP_H +#define AMD_PHOENIX_IOMAP_H #define I2C_MASTER_DEV_COUNT 4 #define I2C_MASTER_START_INDEX 0 @@ -54,4 +54,4 @@ #define ACPI_GPE0_EN (ACPI_GPE0_BLK + 0x04) #define SMB_BASE_ADDR 0x0b00 -#endif /* AMD_MORGANA_IOMAP_H */ +#endif /* AMD_PHOENIX_IOMAP_H */ diff --git a/src/soc/amd/morgana/include/soc/lpc.h b/src/soc/amd/phoenix/include/soc/lpc.h index ab5f429bee..be62ce23a9 100644 --- a/src/soc/amd/morgana/include/soc/lpc.h +++ b/src/soc/amd/phoenix/include/soc/lpc.h @@ -1,9 +1,9 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ -#ifndef AMD_MORGANA_LPC_H -#define AMD_MORGANA_LPC_H +#ifndef AMD_PHOENIX_LPC_H +#define AMD_PHOENIX_LPC_H /* LPC_MISC_CONTROL_BITS at D14F3x078 */ @@ -20,4 +20,4 @@ #define SPI_ROM_ALT_ENABLE BIT(0) #define SPI_PRESERVE_BITS (BIT(0) | BIT(1) | BIT(2) | BIT(3) | BIT(4)) -#endif /* AMD_MORGANA_LPC_H */ +#endif /* AMD_PHOENIX_LPC_H */ diff --git a/src/soc/amd/morgana/include/soc/msr.h b/src/soc/amd/phoenix/include/soc/msr.h index 0a6a7995d5..57001ad9d7 100644 --- a/src/soc/amd/morgana/include/soc/msr.h +++ b/src/soc/amd/phoenix/include/soc/msr.h @@ -1,9 +1,9 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ -#ifndef AMD_MORGANA_MSR_H -#define AMD_MORGANA_MSR_H +#ifndef AMD_PHOENIX_MSR_H +#define AMD_PHOENIX_MSR_H /* MSRC001_00[6B:64] P-state [7:0] bit definitions */ #define PSTATE_DEF_HI_ENABLE_SHIFT 31 @@ -45,4 +45,4 @@ #define MSR_MAX_PERFORMANCE_FREQUENCY_CLOCK_COUNT 0xe7 #define MSR_ACTUAL_PERFORMANCE_FREQUENCY_CLOCK_COUNT 0xe8 -#endif /* AMD_MORGANA_MSR_H */ +#endif /* AMD_PHOENIX_MSR_H */ diff --git a/src/soc/amd/morgana/include/soc/nvs.h b/src/soc/amd/phoenix/include/soc/nvs.h index 572c776a89..f3f2540e13 100644 --- a/src/soc/amd/morgana/include/soc/nvs.h +++ b/src/soc/amd/phoenix/include/soc/nvs.h @@ -1,15 +1,15 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ /* * NOTE: The layout of the global_nvs structure below must match the layout - * in soc/soc/amd/morgana/acpi/globalnvs.asl !!! + * in soc/soc/amd/phoenix/acpi/globalnvs.asl !!! * */ -#ifndef AMD_MORGANA_NVS_H -#define AMD_MORGANA_NVS_H +#ifndef AMD_PHOENIX_NVS_H +#define AMD_PHOENIX_NVS_H #include <stdint.h> @@ -26,4 +26,4 @@ struct __packed global_nvs { uint8_t tpsv; /* 0x19 - Passive Threshold */ }; -#endif /* AMD_MORGANA_NVS_H */ +#endif /* AMD_PHOENIX_NVS_H */ diff --git a/src/soc/amd/morgana/include/soc/pci_devs.h b/src/soc/amd/phoenix/include/soc/pci_devs.h index 4eb4e113cd..efe84bcdad 100644 --- a/src/soc/amd/morgana/include/soc/pci_devs.h +++ b/src/soc/amd/phoenix/include/soc/pci_devs.h @@ -1,9 +1,9 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ -#ifndef AMD_MORGANA_PCI_DEVS_H -#define AMD_MORGANA_PCI_DEVS_H +#ifndef AMD_PHOENIX_PCI_DEVS_H +#define AMD_PHOENIX_PCI_DEVS_H #include <device/pci_def.h> #include <amdblocks/pci_devs.h> @@ -132,4 +132,4 @@ #define DF_F7_DEVFN PCI_DEVFN(DF_DEV, 7) #define SOC_DF_F7_DEV _SOC_DEV(DF_DEV, 7) -#endif /* AMD_MORGANA_PCI_DEVS_H */ +#endif /* AMD_PHOENIX_PCI_DEVS_H */ diff --git a/src/soc/amd/morgana/include/soc/platform_descriptors.h b/src/soc/amd/phoenix/include/soc/platform_descriptors.h index d6ece12087..de18012717 100644 --- a/src/soc/amd/morgana/include/soc/platform_descriptors.h +++ b/src/soc/amd/phoenix/include/soc/platform_descriptors.h @@ -1,9 +1,9 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ -#ifndef AMD_MORGANA_PLATFORM_DESCRIPTORS_H -#define AMD_MORGANA_PLATFORM_DESCRIPTORS_H +#ifndef AMD_PHOENIX_PLATFORM_DESCRIPTORS_H +#define AMD_PHOENIX_PLATFORM_DESCRIPTORS_H #include <types.h> #include <platform_descriptors.h> @@ -16,4 +16,4 @@ void mainboard_get_dxio_ddi_descriptors( void mb_pre_fspm(FSP_M_CONFIG *mcfg); -#endif /* AMD_MORGANA_PLATFORM_DESCRIPTORS_H */ +#endif /* AMD_PHOENIX_PLATFORM_DESCRIPTORS_H */ diff --git a/src/soc/amd/morgana/include/soc/psp_transfer.h b/src/soc/amd/phoenix/include/soc/psp_transfer.h index 20b1cc82c6..a197bb8f83 100644 --- a/src/soc/amd/morgana/include/soc/psp_transfer.h +++ b/src/soc/amd/phoenix/include/soc/psp_transfer.h @@ -1,9 +1,9 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ -#ifndef AMD_MORGANA_PSP_TRANSFER_H -#define AMD_MORGANA_PSP_TRANSFER_H +#ifndef AMD_PHOENIX_PSP_TRANSFER_H +#define AMD_PHOENIX_PSP_TRANSFER_H # if (CONFIG_CMOS_RECOVERY_BYTE != 0) # define CMOS_RECOVERY_BYTE CONFIG_CMOS_RECOVERY_BYTE @@ -61,4 +61,4 @@ void replay_transfer_buffer_cbmemc(void); void boot_with_psp_timestamp(uint64_t base_timestamp); #endif -#endif /* AMD_MORGANA_PSP_TRANSFER_H */ +#endif /* AMD_PHOENIX_PSP_TRANSFER_H */ diff --git a/src/soc/amd/morgana/include/soc/psp_verstage_addr.h b/src/soc/amd/phoenix/include/soc/psp_verstage_addr.h index e99c525131..ee9dedad46 100644 --- a/src/soc/amd/morgana/include/soc/psp_verstage_addr.h +++ b/src/soc/amd/phoenix/include/soc/psp_verstage_addr.h @@ -1,9 +1,9 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ -#ifndef AMD_MORGANA_PSP_VERSTAGE_ADDR_H -#define AMD_MORGANA_PSP_VERSTAGE_ADDR_H +#ifndef AMD_PHOENIX_PSP_VERSTAGE_ADDR_H +#define AMD_PHOENIX_PSP_VERSTAGE_ADDR_H /* * Start of available space is 0x0 and this is where the @@ -22,4 +22,4 @@ #define PSP_VERSTAGE_STACK_START 0x2a000 #define PSP_VERSTAGE_STACK_SIZE (40K) -#endif /* AMD_MORGANA_PSP_VERSTAGE_ADDR_H */ +#endif /* AMD_PHOENIX_PSP_VERSTAGE_ADDR_H */ diff --git a/src/soc/amd/morgana/include/soc/smi.h b/src/soc/amd/phoenix/include/soc/smi.h index 5b82a6a164..034a327c2d 100644 --- a/src/soc/amd/morgana/include/soc/smi.h +++ b/src/soc/amd/phoenix/include/soc/smi.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ -#ifndef AMD_MORGANA_SMI_H -#define AMD_MORGANA_SMI_H +#ifndef AMD_PHOENIX_SMI_H +#define AMD_PHOENIX_SMI_H #include <types.h> @@ -179,4 +179,4 @@ #define SMI_MODE_MASK 0x03 -#endif /* AMD_MORGANA_SMI_H */ +#endif /* AMD_PHOENIX_SMI_H */ diff --git a/src/soc/amd/morgana/include/soc/smu.h b/src/soc/amd/phoenix/include/soc/smu.h index dc1d65958f..edab19a9f4 100644 --- a/src/soc/amd/morgana/include/soc/smu.h +++ b/src/soc/amd/phoenix/include/soc/smu.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef AMD_MORGANA_SMU_H -#define AMD_MORGANA_SMU_H +#ifndef AMD_PHOENIX_SMU_H +#define AMD_PHOENIX_SMU_H /* SMU mailbox register offsets in SMN */ #define SMN_SMU_MESG_ID 0x3b10528 @@ -20,4 +20,4 @@ enum smu_message_id { */ void smu_sx_entry(void); -#endif /* AMD_MORGANA_SMU_H */ +#endif /* AMD_PHOENIX_SMU_H */ diff --git a/src/soc/amd/morgana/include/soc/southbridge.h b/src/soc/amd/phoenix/include/soc/southbridge.h index b64d38a8f7..9b84934258 100644 --- a/src/soc/amd/morgana/include/soc/southbridge.h +++ b/src/soc/amd/phoenix/include/soc/southbridge.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef AMD_MORGANA_SOUTHBRIDGE_H -#define AMD_MORGANA_SOUTHBRIDGE_H +#ifndef AMD_PHOENIX_SOUTHBRIDGE_H +#define AMD_PHOENIX_SOUTHBRIDGE_H #include <soc/iomap.h> @@ -118,4 +118,4 @@ void fch_early_init(void); void fch_init(void *chip_info); void fch_final(void *chip_info); -#endif /* AMD_MORGANA_SOUTHBRIDGE_H */ +#endif /* AMD_PHOENIX_SOUTHBRIDGE_H */ diff --git a/src/soc/amd/morgana/include/soc/uart.h b/src/soc/amd/phoenix/include/soc/uart.h index ef911b5f5f..b8d6e17bb0 100644 --- a/src/soc/amd/morgana/include/soc/uart.h +++ b/src/soc/amd/phoenix/include/soc/uart.h @@ -1,12 +1,12 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ -#ifndef AMD_MORGANA_UART_H -#define AMD_MORGANA_UART_H +#ifndef AMD_PHOENIX_UART_H +#define AMD_PHOENIX_UART_H #include <types.h> void clear_uart_legacy_config(void); /* disable legacy I/O decode for FCH UART */ -#endif /* AMD_MORGANA_UART_H */ +#endif /* AMD_PHOENIX_UART_H */ diff --git a/src/soc/amd/morgana/mca.c b/src/soc/amd/phoenix/mca.c index 63b040b25e..63b040b25e 100644 --- a/src/soc/amd/morgana/mca.c +++ b/src/soc/amd/phoenix/mca.c diff --git a/src/soc/amd/morgana/preload.c b/src/soc/amd/phoenix/preload.c index 47f3580714..47f3580714 100644 --- a/src/soc/amd/morgana/preload.c +++ b/src/soc/amd/phoenix/preload.c diff --git a/src/soc/amd/morgana/psp_verstage/Makefile.inc b/src/soc/amd/phoenix/psp_verstage/Makefile.inc index 8d1e5e4aa0..6ff447c3a3 100644 --- a/src/soc/amd/morgana/psp_verstage/Makefile.inc +++ b/src/soc/amd/phoenix/psp_verstage/Makefile.inc @@ -4,9 +4,9 @@ ifeq $($(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),y) subdirs-y += ../../common/psp_verstage -verstage-generic-ccopts += -I$(src)/soc/amd/morgana/psp_verstage/include +verstage-generic-ccopts += -I$(src)/soc/amd/phoenix/psp_verstage/include verstage-generic-ccopts += -I$(src)/soc/amd/common/psp_verstage/include -verstage-generic-ccopts += -Isrc/vendorcode/amd/fsp/morgana/include +verstage-generic-ccopts += -Isrc/vendorcode/amd/fsp/phoenix/include verstage-generic-ccopts += -Isrc/vendorcode/amd/fsp/common/include verstage-y += svc.c diff --git a/src/soc/amd/morgana/psp_verstage/chipset.c b/src/soc/amd/phoenix/psp_verstage/chipset.c index 2f5fb44945..3f3a7cfcba 100644 --- a/src/soc/amd/morgana/psp_verstage/chipset.c +++ b/src/soc/amd/phoenix/psp_verstage/chipset.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ #include <bl_uapp/bl_syscall_public.h> #include <cbfs.h> diff --git a/src/soc/amd/morgana/psp_verstage/svc.c b/src/soc/amd/phoenix/psp_verstage/svc.c index 9517f97952..becfcb09ca 100644 --- a/src/soc/amd/morgana/psp_verstage/svc.c +++ b/src/soc/amd/phoenix/psp_verstage/svc.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ #include "svc.h" diff --git a/src/soc/amd/morgana/psp_verstage/svc.h b/src/soc/amd/phoenix/psp_verstage/svc.h index 3e5d53a312..3c59a1c281 100644 --- a/src/soc/amd/morgana/psp_verstage/svc.h +++ b/src/soc/amd/phoenix/psp_verstage/svc.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ /* TODO: See what can be made common */ #ifndef PSP_VERSTAGE_SVC_H diff --git a/src/soc/amd/morgana/psp_verstage/uart.c b/src/soc/amd/phoenix/psp_verstage/uart.c index d2cba27891..d2cba27891 100644 --- a/src/soc/amd/morgana/psp_verstage/uart.c +++ b/src/soc/amd/phoenix/psp_verstage/uart.c diff --git a/src/soc/amd/morgana/reset.c b/src/soc/amd/phoenix/reset.c index 83bfcee546..83bfcee546 100644 --- a/src/soc/amd/morgana/reset.c +++ b/src/soc/amd/phoenix/reset.c diff --git a/src/soc/amd/morgana/romstage.c b/src/soc/amd/phoenix/romstage.c index 2bf5e230c9..2bf5e230c9 100644 --- a/src/soc/amd/morgana/romstage.c +++ b/src/soc/amd/phoenix/romstage.c diff --git a/src/soc/amd/morgana/root_complex.c b/src/soc/amd/phoenix/root_complex.c index 72a69a4dc8..83fb047952 100644 --- a/src/soc/amd/morgana/root_complex.c +++ b/src/soc/amd/phoenix/root_complex.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ #include <acpi/acpigen.h> #include <amdblocks/acpi.h> @@ -191,7 +191,7 @@ static void root_complex_init(struct device *dev) static void acipgen_dptci(void) { - const struct soc_amd_morgana_config *config = config_of_soc(); + const struct soc_amd_phoenix_config *config = config_of_soc(); /* Normal mode DPTC values. */ struct dptc_input default_input = DPTC_INPUTS(config->thermctl_limit_degreeC, @@ -228,7 +228,7 @@ static const char *gnb_acpi_name(const struct device *dev) return "GNB"; } -struct device_operations morgana_root_complex_operations = { +struct device_operations phoenix_root_complex_operations = { .read_resources = read_resources, .set_resources = noop_set_resources, .enable_resources = pci_dev_enable_resources, diff --git a/src/soc/amd/morgana/smihandler.c b/src/soc/amd/phoenix/smihandler.c index f7519684b4..a0099cfe94 100644 --- a/src/soc/amd/morgana/smihandler.c +++ b/src/soc/amd/phoenix/smihandler.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ #include <acpi/acpi.h> #include <amdblocks/acpi.h> diff --git a/src/soc/amd/morgana/smu.c b/src/soc/amd/phoenix/smu.c index d8cd081bad..d8cd081bad 100644 --- a/src/soc/amd/morgana/smu.c +++ b/src/soc/amd/phoenix/smu.c diff --git a/src/soc/amd/morgana/uart.c b/src/soc/amd/phoenix/uart.c index 03fc593624..03fc593624 100644 --- a/src/soc/amd/morgana/uart.c +++ b/src/soc/amd/phoenix/uart.c diff --git a/src/soc/amd/morgana/xhci.c b/src/soc/amd/phoenix/xhci.c index 214618d63f..ef1b60a063 100644 --- a/src/soc/amd/morgana/xhci.c +++ b/src/soc/amd/phoenix/xhci.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Update for Morgana */ +/* TODO: Update for Phoenix */ #include <amdblocks/gpio.h> #include <amdblocks/smi.h> |