summaryrefslogtreecommitdiff
path: root/src/cpu/amd/model_fxx
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-02-08 13:38:21 +0100
committerPatrick Georgi <pgeorgi@google.com>2018-04-30 09:23:47 +0000
commitd2d8a31305d83dd6c068d51a7f002377f5b5a0a5 (patch)
treeba1fe06193436e28a5cbbe6c5f2ed2b81c98789b /src/cpu/amd/model_fxx
parentfc1b49691f3c1c509ff0b6fb9e569893e687b4ef (diff)
downloadcoreboot-d2d8a31305d83dd6c068d51a7f002377f5b5a0a5.tar.xz
cpu/amd: Get rid of device_t
Use of `device_t` has been abandoned in ramstage. Change-Id: I4b930a191130941c8349861cdd803a5be4219274 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/23653 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/cpu/amd/model_fxx')
-rw-r--r--src/cpu/amd/model_fxx/model_fxx_init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cpu/amd/model_fxx/model_fxx_init.c b/src/cpu/amd/model_fxx/model_fxx_init.c
index f5a6773219..85e9045a1f 100644
--- a/src/cpu/amd/model_fxx/model_fxx_init.c
+++ b/src/cpu/amd/model_fxx/model_fxx_init.c
@@ -65,7 +65,7 @@ int is_e0_later_in_bsp(int nodeid)
return !is_cpu_pre_e0();
}
// d0 will be treated as e0 with this methods, but the d0 nb_cfg_54 always 0
- device_t dev;
+ struct device *dev;
dev = dev_find_slot(0, PCI_DEVFN(0x18 + nodeid, 2));
if (!dev)
return 0;
@@ -85,7 +85,7 @@ int is_e0_later_in_bsp(int nodeid)
int is_cpu_f0_in_bsp(int nodeid)
{
uint32_t dword;
- device_t dev;
+ struct device *dev;
if (!IS_ENABLED(CONFIG_K8_REV_F_SUPPORT))
return 0;
@@ -243,7 +243,7 @@ static void init_ecc_memory(unsigned node_id)
unsigned long basek;
struct mtrr_state mtrr_state;
- device_t f1_dev, f2_dev, f3_dev;
+ struct device *f1_dev, *f2_dev, *f3_dev;
int enable_scrubbing;
uint32_t dcl;
@@ -463,7 +463,7 @@ static void k8_errata(void)
wrmsr(HWCR_MSR, msr);
}
-static void model_fxx_init(device_t dev)
+static void model_fxx_init(struct device *dev)
{
unsigned long i;
msr_t msr;