soc/intel/xeon_sp: Fix compiling with CONFIG_DEBUG_RESOURCES
Change-Id: I42ddea2c04bf1ecb2466db3d56d15d51bda486c8 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48660 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
This commit is contained in:
parent
9c581a74f6
commit
08d8dd3bd3
|
@ -230,8 +230,8 @@ static void mc_add_dram_resources(struct device *dev, int *res_count)
|
||||||
configure_dpr(dev);
|
configure_dpr(dev);
|
||||||
union dpr_register dpr = { .raw = pci_read_config32(dev, VTD_LTDPR) };
|
union dpr_register dpr = { .raw = pci_read_config32(dev, VTD_LTDPR) };
|
||||||
if (dpr.size) {
|
if (dpr.size) {
|
||||||
uint32_t dpr_base_k = (dpr.top - dpr.size) << 10;
|
uint64_t dpr_base_k = (dpr.top - dpr.size) << 10;
|
||||||
uint32_t dpr_size_k = dpr.size << 10;
|
uint64_t dpr_size_k = dpr.size << 10;
|
||||||
reserved_ram_resource(dev, index++, dpr_base_k, dpr_size_k);
|
reserved_ram_resource(dev, index++, dpr_base_k, dpr_size_k);
|
||||||
LOG_MEM_RESOURCE("dpr", dev, index, dpr_base_k, dpr_size_k);
|
LOG_MEM_RESOURCE("dpr", dev, index, dpr_base_k, dpr_size_k);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue