summaryrefslogtreecommitdiffstats
path: root/src/southbridge/broadcom
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2016-08-21 18:36:06 +0200
committerMartin Roth <martinroth@google.com>2016-08-28 18:26:07 +0200
commit70d79a454676b551f3bc2059217179e31905ee5c (patch)
tree1a27cd7c57a9d46d0c7d6e7aaeb361c73dfac872 /src/southbridge/broadcom
parent03b040b95f1a16d07b98e15c1aeef77ec7a4eca9 (diff)
downloadcoreboot-70d79a454676b551f3bc2059217179e31905ee5c.tar.gz
coreboot-70d79a454676b551f3bc2059217179e31905ee5c.tar.bz2
coreboot-70d79a454676b551f3bc2059217179e31905ee5c.zip
src/southbridge: Add required space before opening parenthesis '('
Change-Id: I43b9b86fd51dbdc50108026099c60238f3012cbe Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/16290 Tested-by: build bot (Jenkins) Reviewed-by: Omar Pakker
Diffstat (limited to 'src/southbridge/broadcom')
-rw-r--r--src/southbridge/broadcom/bcm5785/bcm5785.c6
-rw-r--r--src/southbridge/broadcom/bcm5785/early_setup.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/southbridge/broadcom/bcm5785/bcm5785.c b/src/southbridge/broadcom/bcm5785/bcm5785.c
index 7e8d8c32c41e..efe38ab3ac1d 100644
--- a/src/southbridge/broadcom/bcm5785/bcm5785.c
+++ b/src/southbridge/broadcom/bcm5785/bcm5785.c
@@ -46,10 +46,10 @@ void bcm5785_enable(device_t dev)
else { // same bus
unsigned devfn;
devfn = (dev->path.pci.devfn) & ~7;
- if( dev->vendor == PCI_VENDOR_ID_SERVERWORKS ) {
- if(dev->device == 0x0036) //PCI-X Bridge
+ if (dev->vendor == PCI_VENDOR_ID_SERVERWORKS ) {
+ if (dev->device == 0x0036) //PCI-X Bridge
{ devfn += (1<<3); }
- else if(dev->device == 0x0223) // USB
+ else if (dev->device == 0x0223) // USB
{ devfn -= (1<<3); }
}
sb_pci_main_dev = dev_find_slot(dev->bus->secondary, devfn);
diff --git a/src/southbridge/broadcom/bcm5785/early_setup.c b/src/southbridge/broadcom/bcm5785/early_setup.c
index e29fab470092..3ddc9ca64346 100644
--- a/src/southbridge/broadcom/bcm5785/early_setup.c
+++ b/src/southbridge/broadcom/bcm5785/early_setup.c
@@ -47,13 +47,13 @@ static void bcm5785_enable_wdt_port_cf9(void)
dword_old = pci_read_config32(dev, 0x4c);
dword = dword_old | (1<<4); //enable Timer Func
- if(dword != dword_old ) {
+ if (dword != dword_old ) {
pci_write_config32(dev, 0x4c, dword);
}
dword_old = pci_read_config32(dev, 0x6c);
dword = dword_old | (1<<9); //unhide Timer Func in pci space
- if(dword != dword_old ) {
+ if (dword != dword_old ) {
pci_write_config32(dev, 0x6c, dword);
}
@@ -149,7 +149,7 @@ static void bcm5785_enable_msg(void)
// bit 1: enable upsteam messages
// bit 0: enable shutdowm message to init generation
dword = dword_old | (1<<5) | (1<<3) | (1<<2) | (1<<1) | (1<<0); // bit 1 and bit 4 must be set, otherwise interrupt msg will not be delivered to the processor
- if(dword != dword_old ) {
+ if (dword != dword_old ) {
pci_write_config32(dev, 0x6c, dword);
}
}