blob: b199d99251f5f893c6cc413ca89fc4d361b172b1 [file] [log] [blame]
Felix Held060b8ad2021-02-05 22:51:33 +01001/* SPDX-License-Identifier: GPL-2.0-only */
2
Felix Heldaa77d132021-02-10 16:13:56 +01003#include <amdblocks/cpu.h>
Felix Held060b8ad2021-02-05 22:51:33 +01004#include <console/console.h>
5#include <cpu/cpu.h>
Felix Heldaa77d132021-02-10 16:13:56 +01006#include <cpu/x86/lapic.h>
Felix Held060b8ad2021-02-05 22:51:33 +01007#include <device/device.h>
8#include <soc/cpu.h>
9
Felix Heldb2d8a5c2021-02-10 16:17:13 +010010void mp_init_cpus(struct bus *cpu_bus)
11{
12}
13
Felix Held060b8ad2021-02-05 22:51:33 +010014static void zen_2_3_init(struct device *dev)
15{
Felix Heldaa77d132021-02-10 16:13:56 +010016 setup_lapic();
17 set_cstate_io_addr();
Felix Held060b8ad2021-02-05 22:51:33 +010018}
19
20static struct device_operations cpu_dev_ops = {
21 .init = zen_2_3_init,
22};
23
24static struct cpu_device_id cpu_table[] = {
25 { X86_VENDOR_AMD, CEZANNE_A0_CPUID},
26 { 0, 0 },
27};
28
29static const struct cpu_driver zen_2_3 __cpu_driver = {
30 .ops = &cpu_dev_ops,
31 .id_table = cpu_table,
32};