nb/intel/ironlake: Clean up code style (except raminit)
Reflow lines, correct coding style and align struct members, among
other things. As raminit is very large, handle it on a follow-up.
Tested with BUILD_TIMELESS=1, packardbell/ms2290 does not change.
Change-Id: I343edf1bc2a5ac20ff0aa6de4486e685ce430737
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42701
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/src/northbridge/intel/ironlake/early_init.c b/src/northbridge/intel/ironlake/early_init.c
index 4f221bf..e6e9ace 100644
--- a/src/northbridge/intel/ironlake/early_init.c
+++ b/src/northbridge/intel/ironlake/early_init.c
@@ -31,8 +31,7 @@
/* halt timer */
outw((1 << 11), DEFAULT_PMBASE | 0x60 | 0x08);
/* halt timer */
- outw(inw(DEFAULT_PMBASE | 0x60 | 0x06) | 2,
- DEFAULT_PMBASE | 0x60 | 0x06);
+ outw(inw(DEFAULT_PMBASE | 0x60 | 0x06) | 2, DEFAULT_PMBASE | 0x60 | 0x06);
printk(BIOS_DEBUG, " done.\n");
printk(BIOS_DEBUG, "Setting up static northbridge registers...");
@@ -56,7 +55,7 @@
printk(BIOS_DEBUG, " done.\n");
}
-static void early_cpu_init (void)
+static void early_cpu_init(void)
{
msr_t m;
@@ -121,8 +120,7 @@
elog_boot_notify(s3_resume);
/* Device Enable */
- pci_write_config32(PCI_DEV(0, 0, 0), D0F0_DEVEN,
- DEVEN_IGD | DEVEN_PEG10 | DEVEN_HOST);
+ pci_write_config32(PCI_DEV(0, 0, 0), D0F0_DEVEN, DEVEN_IGD | DEVEN_PEG10 | DEVEN_HOST);
early_cpu_init();
@@ -132,7 +130,7 @@
/* Magic for S3 resume. Must be done early. */
if (s3_resume) {
- MCHBAR32 (0x1e8) = (MCHBAR32(0x1e8) & ~1) | 6;
- MCHBAR32 (0x1e8) = (MCHBAR32(0x1e8) & ~3) | 4;
+ MCHBAR32(0x1e8) = (MCHBAR32(0x1e8) & ~1) | 6;
+ MCHBAR32(0x1e8) = (MCHBAR32(0x1e8) & ~3) | 4;
}
}