summaryrefslogtreecommitdiff
path: root/src/southbridge/amd/cimx/sb800/spi.c
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-07-16 09:50:29 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-07-18 11:21:35 +0000
commit616be8cd1fbdfa77caa02fa77eabe7b9edc9dc36 (patch)
tree60dc7c808877a1e60a173b25f2558fa97c5bb96e /src/southbridge/amd/cimx/sb800/spi.c
parent4d7285df1d3c7e48100ed39b030b67a7bcf07d0e (diff)
sb/amd/cimx: Fix some white spaces issues
Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Change-Id: Iba81be8ec48fa744f3263e340267a56158656a8f Reviewed-on: https://review.coreboot.org/c/coreboot/+/65903 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/southbridge/amd/cimx/sb800/spi.c')
-rw-r--r--src/southbridge/amd/cimx/sb800/spi.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/southbridge/amd/cimx/sb800/spi.c b/src/southbridge/amd/cimx/sb800/spi.c
index 38439d0d93..792a4a1d7e 100644
--- a/src/southbridge/amd/cimx/sb800/spi.c
+++ b/src/southbridge/amd/cimx/sb800/spi.c
@@ -29,7 +29,7 @@ static void execute_command(void)
write8((void *)(spibar + 2), read8((void *)(spibar + 2)) | 1);
while ((read8((void *)(spibar + 2)) & 1) &&
- (read8((void *)(spibar+3)) & 0x80));
+ (read8((void *)(spibar + 3)) & 0x80));
}
void spi_init(void)
@@ -98,9 +98,9 @@ static void ImcSleep(void)
u8 reg0_val = 0; /* clear response register */
u8 reg1_val = 0xB4; /* request ownership flag */
- WriteECmsg (MSG_REG0, AccWidthUint8, &reg0_val);
- WriteECmsg (MSG_REG1, AccWidthUint8, &reg1_val);
- WriteECmsg (MSG_SYS_TO_IMC, AccWidthUint8, &cmd_val);
+ WriteECmsg(MSG_REG0, AccWidthUint8, &reg0_val);
+ WriteECmsg(MSG_REG1, AccWidthUint8, &reg1_val);
+ WriteECmsg(MSG_SYS_TO_IMC, AccWidthUint8, &cmd_val);
WaitForEcLDN9MailboxCmdAck();
}
@@ -111,9 +111,9 @@ static void ImcWakeup(void)
u8 reg0_val = 0; /* clear response register */
u8 reg1_val = 0xB5; /* release ownership flag */
- WriteECmsg (MSG_REG0, AccWidthUint8, &reg0_val);
- WriteECmsg (MSG_REG1, AccWidthUint8, &reg1_val);
- WriteECmsg (MSG_SYS_TO_IMC, AccWidthUint8, &cmd_val);
+ WriteECmsg(MSG_REG0, AccWidthUint8, &reg0_val);
+ WriteECmsg(MSG_REG1, AccWidthUint8, &reg1_val);
+ WriteECmsg(MSG_SYS_TO_IMC, AccWidthUint8, &cmd_val);
WaitForEcLDN9MailboxCmdAck();
}