southbridge/sis/sis966/aza.c: Improve code formatting

Change-Id: If5342a2b5bae18b70ea671522efd2691bc9872dc
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/16602
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Elyes HAOUAS 2016-09-13 22:19:58 +02:00 committed by Patrick Georgi
parent a813160fbc
commit 776498ac7e
1 changed files with 32 additions and 32 deletions

View File

@ -68,15 +68,15 @@ static u32 send_verb(u8 *base, u32 verb)
u32 dword;
dword = read32(base + 0x68);
dword=dword|(unsigned long)0x0002;
dword = dword|(unsigned long)0x0002;
write32(base + 0x68, dword);
do {
dword = read32(base + 0x68);
} while ((dword & 1)!=0);
} while ((dword & 1) != 0);
write32(base + 0x60, verb);
udelay(500);
dword = read32(base + 0x68);
dword =(dword |0x1);
dword = (dword |0x1);
write32(base + 0x68, dword);
do {
udelay(100);
@ -91,7 +91,7 @@ static u32 send_verb(u8 *base, u32 verb)
static int codec_detect(u8 *base)
{
u32 dword;
int idx=0;
int idx = 0;
/* 1 */ // controller reset
printk(BIOS_DEBUG, "controller reset\n");
@ -105,14 +105,14 @@ static int codec_detect(u8 *base)
dword=send_verb(base,0x000F0000); // get codec VendorId and DeviceId
if (dword==0) {
if (dword == 0) {
printk(BIOS_DEBUG, "No codec!\n");
return 0;
}
printk(BIOS_DEBUG, "Codec ID = %x\n", dword);
dword=0x1;
dword = 0x1;
return dword;
}
@ -202,12 +202,12 @@ static void codec_init(u8 *base, int addr)
dword = read32(base + 0x68);
} while (dword & 1);
dword = (addr<<28) | 0x000f0000;
dword = (addr << 28) | 0x000f0000;
write32(base + 0x60, dword);
do {
dword = read32(base + 0x68);
} while ((dword & 3)!=2);
} while ((dword & 3) != 2);
dword = read32(base + 0x64);
@ -268,7 +268,7 @@ static void aza_init(struct device *dev)
printk(BIOS_DEBUG, "****** Azalia PCI config ******");
printk(BIOS_DEBUG, "\n 03020100 07060504 0B0A0908 0F0E0D0C");
for (i=0;i<0xff;i+=4){
for (i=0; i<0xff; i+=4){
if ((i%16)==0){
printk(BIOS_DEBUG, "\n%02x: ", i);
}