summaryrefslogtreecommitdiff
path: root/src/soc/amd/stoneyridge
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-07-16 09:53:05 +0200
committerMartin L Roth <gaumless@tutanota.com>2022-07-17 22:03:37 +0000
commit55d0f40734e64e38c1a46b96266daf468c5efad6 (patch)
tree9848a1b1ab916e30d296e9811b8ec3af986b2c33 /src/soc/amd/stoneyridge
parentab304bc091b793b52cd5a8d1255e6e144727451a (diff)
soc/amd: Fix some white spaces issues
Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Change-Id: Ibe20d48bdd8c776f9658620a13814f96e564dabc Reviewed-on: https://review.coreboot.org/c/coreboot/+/65907 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/soc/amd/stoneyridge')
-rw-r--r--src/soc/amd/stoneyridge/memmap.c2
-rw-r--r--src/soc/amd/stoneyridge/northbridge.c2
-rw-r--r--src/soc/amd/stoneyridge/smbus_spd.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/soc/amd/stoneyridge/memmap.c b/src/soc/amd/stoneyridge/memmap.c
index f7c6b0075c..f01574097a 100644
--- a/src/soc/amd/stoneyridge/memmap.c
+++ b/src/soc/amd/stoneyridge/memmap.c
@@ -21,7 +21,7 @@ void *cbmem_top_chipset(void)
/* 8MB alignment to keep MTRR usage low */
return (void *)ALIGN_DOWN(restore_top_of_low_cacheable()
- - CONFIG_SMM_TSEG_SIZE, 8*MiB);
+ - CONFIG_SMM_TSEG_SIZE, 8 * MiB);
}
static uintptr_t smm_region_start(void)
diff --git a/src/soc/amd/stoneyridge/northbridge.c b/src/soc/amd/stoneyridge/northbridge.c
index a47ef25e72..500940cee4 100644
--- a/src/soc/amd/stoneyridge/northbridge.c
+++ b/src/soc/amd/stoneyridge/northbridge.c
@@ -110,7 +110,7 @@ static void set_resource(struct device *dev, struct resource *res, u32 nodeid)
link_num = IOINDEX_LINK(res->index);
if (res->flags & IORESOURCE_IO)
- set_io_addr_reg(dev, nodeid, link_num, reg, rbase>>8, rend>>8);
+ set_io_addr_reg(dev, nodeid, link_num, reg, rbase >> 8, rend >> 8);
else if (res->flags & IORESOURCE_MEM)
set_mmio_addr_reg(nodeid, link_num, reg,
(res->index >> 24), rbase >> 8, rend >> 8);
diff --git a/src/soc/amd/stoneyridge/smbus_spd.c b/src/soc/amd/stoneyridge/smbus_spd.c
index 773aad19f4..1f83448cd3 100644
--- a/src/soc/amd/stoneyridge/smbus_spd.c
+++ b/src/soc/amd/stoneyridge/smbus_spd.c
@@ -39,7 +39,7 @@ static int readspd(uint8_t SmbusSlaveAddress, char *buffer, size_t count)
printk(BIOS_ERR, "-------------SPD READ ERROR-----------\n");
return error;
}
- *pbuf = (char) error;
+ *pbuf = (char)error;
pbuf++;
/* Read the remaining SPD bytes using do_smbus_recv_byte for speed */
@@ -49,7 +49,7 @@ static int readspd(uint8_t SmbusSlaveAddress, char *buffer, size_t count)
printk(BIOS_ERR, "-------------SPD READ ERROR-----------\n");
return error;
}
- *pbuf = (char) error;
+ *pbuf = (char)error;
pbuf++;
}
printk(BIOS_SPEW, "\n");