aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/intel/ironlake/early_init.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-06-22 18:11:31 +0200
committerAngel Pons <th3fanbus@gmail.com>2020-07-02 19:29:10 +0000
commit43bcc7b6ed1502de80a857f94443f7c83269ad36 (patch)
tree90339cc8e0aa32d51be79af708c626552bd8ec07 /src/northbridge/intel/ironlake/early_init.c
parentaee3b148ba8263e983de12cfb873ee5ec6d0569f (diff)
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>
Diffstat (limited to 'src/northbridge/intel/ironlake/early_init.c')
-rw-r--r--src/northbridge/intel/ironlake/early_init.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/northbridge/intel/ironlake/early_init.c b/src/northbridge/intel/ironlake/early_init.c
index 4f221bfe9c..e6e9ace211 100644
--- a/src/northbridge/intel/ironlake/early_init.c
+++ b/src/northbridge/intel/ironlake/early_init.c
@@ -31,8 +31,7 @@ static void ironlake_setup_bars(void)
/* 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 @@ static void ironlake_setup_bars(void)
printk(BIOS_DEBUG, " done.\n");
}
-static void early_cpu_init (void)
+static void early_cpu_init(void)
{
msr_t m;
@@ -121,8 +120,7 @@ void ironlake_early_initialization(int chipset_type)
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 @@ void ironlake_early_initialization(int chipset_type)
/* 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;
}
}