HAOUAS Elyes (ehaouas@noos.fr) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/16602
-gerrit
commit d049317a3ae02bdc5f0f6d18236acbdc1dc0bf60 Author: Elyes HAOUAS ehaouas@noos.fr Date: Tue Sep 13 22:19:58 2016 +0200
southbridge/sis/sis966/aza.c: Improve code formatting
Change-Id: If5342a2b5bae18b70ea671522efd2691bc9872dc Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- src/southbridge/sis/sis966/aza.c | 58 ++++++++++++++++++++-------------------- 1 file changed, 29 insertions(+), 29 deletions(-)
diff --git a/src/southbridge/sis/sis966/aza.c b/src/southbridge/sis/sis966/aza.c index 9c05cb1..d97ff4d 100644 --- a/src/southbridge/sis/sis966/aza.c +++ b/src/southbridge/sis/sis966/aza.c @@ -65,26 +65,26 @@ static int set_bits(void *port, u32 mask, u32 val)
static u32 send_verb(u8 *base, u32 verb) { - u32 dword; - - dword = read32(base + 0x68); - dword=dword|(unsigned long)0x0002; - write32(base + 0x68, dword); - do { - dword = read32(base + 0x68); - } while ((dword & 1)!=0); - write32(base + 0x60, verb); - udelay(500); - dword = read32(base + 0x68); - dword =(dword |0x1); - write32(base + 0x68, dword); - do { - udelay(100); + u32 dword; + + dword = read32(base + 0x68); + dword=dword|(unsigned long)0x0002; + write32(base + 0x68, dword); + do { dword = read32(base + 0x68); - } while ((dword & 3) != 2); + } while ((dword & 1)!=0); + write32(base + 0x60, verb); + udelay(500); + dword = read32(base + 0x68); + dword =(dword |0x1); + write32(base + 0x68, dword); + do { + udelay(100); + dword = read32(base + 0x68); + } while ((dword & 3) != 2);
- dword = read32(base + 0x64); - return dword; + dword = read32(base + 0x64); + return dword; }
@@ -98,21 +98,21 @@ static int codec_detect(u8 *base)
set_bits(base + 0x08, 1, 1);
- do { - dword = read32(base + 0x08)&0x1; + do { + dword = read32(base + 0x08)&0x1; if (idx++>1000) { printk(BIOS_DEBUG, "controller reset fail !!!\n"); break;} - } while (dword !=1); + } while (dword !=1);
- dword=send_verb(base,0x000F0000); // get codec VendorId and DeviceId + dword=send_verb(base,0x000F0000); // get codec VendorId and DeviceId
- if (dword==0) { - printk(BIOS_DEBUG, "No codec!\n"); + 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;
} @@ -185,7 +185,7 @@ static u32 verb_data[] = { static unsigned find_verb(u32 viddid, u32 **verb) { if ((viddid == 0x10ec0883) || (viddid == 0x10ec0882) || (viddid == 0x10ec0880)) return 0; - *verb = (u32 *)verb_data; + *verb = (u32 *)verb_data; return sizeof(verb_data)/sizeof(u32); }
@@ -244,7 +244,7 @@ static void aza_init(struct device *dev)
//-------------- enable AZA (SiS7502) ------------------------- { - u8 temp8; + u8 temp8; int i=0; while (SiS_SiS7502_init[i][0] != 0) { @@ -305,7 +305,7 @@ static struct pci_operations lops_pci = { .set_subsystem = lpci_set_subsystem, };
-static struct device_operations aza_audio_ops = { +static struct device_operations aza_audio_ops = { .read_resources = pci_dev_read_resources, .set_resources = pci_dev_set_resources, .enable_resources = pci_dev_enable_resources,