blob: cd2d6ed4b121fb678dbe9dbaf94cef1a3e433596 [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
10static void zen_2_3_init(struct device *dev)
11{
Felix Heldaa77d132021-02-10 16:13:56 +010012 setup_lapic();
13 set_cstate_io_addr();
Felix Held060b8ad2021-02-05 22:51:33 +010014}
15
16static struct device_operations cpu_dev_ops = {
17 .init = zen_2_3_init,
18};
19
20static struct cpu_device_id cpu_table[] = {
21 { X86_VENDOR_AMD, CEZANNE_A0_CPUID},
22 { 0, 0 },
23};
24
25static const struct cpu_driver zen_2_3 __cpu_driver = {
26 .ops = &cpu_dev_ops,
27 .id_table = cpu_table,
28};