summaryrefslogtreecommitdiff
path: root/src/soc/amd
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
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')
-rw-r--r--src/soc/amd/cezanne/agesa_acpi.c2
-rw-r--r--src/soc/amd/picasso/agesa_acpi.c2
-rw-r--r--src/soc/amd/sabrina/agesa_acpi.c2
-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
6 files changed, 7 insertions, 7 deletions
diff --git a/src/soc/amd/cezanne/agesa_acpi.c b/src/soc/amd/cezanne/agesa_acpi.c
index 47ca5f2375..a397360bce 100644
--- a/src/soc/amd/cezanne/agesa_acpi.c
+++ b/src/soc/amd/cezanne/agesa_acpi.c
@@ -17,7 +17,7 @@ uintptr_t agesa_write_acpi_tables(const struct device *device, uintptr_t current
/* IVRS */
current = ALIGN(current, 8);
- ivrs = (acpi_ivrs_t *) current;
+ ivrs = (acpi_ivrs_t *)current;
acpi_create_ivrs(ivrs, acpi_fill_ivrs);
current += ivrs->header.length;
acpi_add_table(rsdp, ivrs);
diff --git a/src/soc/amd/picasso/agesa_acpi.c b/src/soc/amd/picasso/agesa_acpi.c
index db95b92f5a..e4a9b1421c 100644
--- a/src/soc/amd/picasso/agesa_acpi.c
+++ b/src/soc/amd/picasso/agesa_acpi.c
@@ -558,7 +558,7 @@ uintptr_t agesa_write_acpi_tables(const struct device *device, uintptr_t current
/* IVRS */
current = ALIGN(current, 8);
- ivrs = (acpi_ivrs_t *) current;
+ ivrs = (acpi_ivrs_t *)current;
acpi_create_ivrs(ivrs, acpi_fill_ivrs);
current += ivrs->header.length;
acpi_add_table(rsdp, ivrs);
diff --git a/src/soc/amd/sabrina/agesa_acpi.c b/src/soc/amd/sabrina/agesa_acpi.c
index f8193c7cc9..9062c7a748 100644
--- a/src/soc/amd/sabrina/agesa_acpi.c
+++ b/src/soc/amd/sabrina/agesa_acpi.c
@@ -19,7 +19,7 @@ uintptr_t agesa_write_acpi_tables(const struct device *device, uintptr_t current
/* IVRS */
current = ALIGN(current, 8);
- ivrs = (acpi_ivrs_t *) current;
+ ivrs = (acpi_ivrs_t *)current;
acpi_create_ivrs(ivrs, acpi_fill_ivrs);
current += ivrs->header.length;
acpi_add_table(rsdp, ivrs);
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");