Arthur Heymans | 6d3682e | 2023-07-13 12:34:04 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
2 | |||||
Felix Held | d9e8263 | 2024-01-26 14:22:31 +0100 | [diff] [blame] | 3 | #include <amdblocks/acpi.h> |
Felix Held | 769af20 | 2024-02-06 18:43:14 +0100 | [diff] [blame] | 4 | #include <amdblocks/data_fabric.h> |
Arthur Heymans | 6d3682e | 2023-07-13 12:34:04 +0200 | [diff] [blame] | 5 | #include <device/device.h> |
Felix Held | b499c1f | 2023-12-12 20:39:38 +0100 | [diff] [blame] | 6 | #include <soc/southbridge.h> |
Felix Held | dc12a38 | 2024-01-16 00:50:46 +0100 | [diff] [blame] | 7 | #include <soc/southbridge.h> |
8 | #include <vendorcode/amd/opensil/genoa_poc/opensil.h> | ||||
Arthur Heymans | 6d3682e | 2023-07-13 12:34:04 +0200 | [diff] [blame] | 9 | |
Felix Held | d018268 | 2023-12-12 20:34:46 +0100 | [diff] [blame] | 10 | static void soc_init(void *chip_info) |
11 | { | ||||
Felix Held | b499c1f | 2023-12-12 20:39:38 +0100 | [diff] [blame] | 12 | default_dev_ops_root.write_acpi_tables = soc_acpi_write_tables; |
Felix Held | dc12a38 | 2024-01-16 00:50:46 +0100 | [diff] [blame] | 13 | |
14 | setup_opensil(); | ||||
Felix Held | 3730ce8 | 2024-02-01 16:16:23 +0100 | [diff] [blame] | 15 | opensil_xSIM_timepoint_1(); |
Felix Held | dc12a38 | 2024-01-16 00:50:46 +0100 | [diff] [blame] | 16 | |
Felix Held | 769af20 | 2024-02-06 18:43:14 +0100 | [diff] [blame] | 17 | data_fabric_print_mmio_conf(); |
18 | |||||
Felix Held | dc12a38 | 2024-01-16 00:50:46 +0100 | [diff] [blame] | 19 | fch_init(chip_info); |
Felix Held | d018268 | 2023-12-12 20:34:46 +0100 | [diff] [blame] | 20 | } |
21 | |||||
22 | static void soc_final(void *chip_info) | ||||
23 | { | ||||
24 | } | ||||
25 | |||||
Felix Held | d123f8d | 2023-12-15 10:57:30 +0100 | [diff] [blame] | 26 | struct chip_operations soc_amd_genoa_poc_ops = { |
Nicholas Sudsgaard | bfb11be | 2024-01-30 09:53:46 +0900 | [diff] [blame] | 27 | .name = "AMD Genoa SoC Proof of Concept", |
Felix Held | d018268 | 2023-12-12 20:34:46 +0100 | [diff] [blame] | 28 | .init = soc_init, |
29 | .final = soc_final, | ||||
30 | }; |