sb/intel/bd82x6x/early_usb.c: Fix formatting
Remove whitespace between the function name and open parenthesis, and fix 81+ characters lines. Unnecessary comment about 'include sandybridge.h'removed. Change-Id: I0db1263ec11240003fe1f7080c758994fc0224d3 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/29428 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@ -17,11 +17,10 @@
|
|||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#include <northbridge/intel/sandybridge/sandybridge.h> /* For DEFAULT_RCBABASE. */
|
#include <northbridge/intel/sandybridge/sandybridge.h>
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
|
|
||||||
void
|
void early_usb_init(const struct southbridge_usb_port *portmap)
|
||||||
early_usb_init (const struct southbridge_usb_port *portmap)
|
|
||||||
{
|
{
|
||||||
u32 reg32;
|
u32 reg32;
|
||||||
const u32 rcba_dump[8] = {
|
const u32 rcba_dump[8] = {
|
||||||
@ -35,7 +34,8 @@ early_usb_init (const struct southbridge_usb_port *portmap)
|
|||||||
/* Activate PMBAR. */
|
/* Activate PMBAR. */
|
||||||
pci_write_config32(PCI_DEV(0, 0x1f, 0), PMBASE, DEFAULT_PMBASE | 1);
|
pci_write_config32(PCI_DEV(0, 0x1f, 0), PMBASE, DEFAULT_PMBASE | 1);
|
||||||
pci_write_config32(PCI_DEV(0, 0x1f, 0), PMBASE + 4, 0);
|
pci_write_config32(PCI_DEV(0, 0x1f, 0), PMBASE + 4, 0);
|
||||||
pci_write_config8(PCI_DEV(0, 0x1f, 0), 0x44 /* ACPI_CNTL */, 0x80); /* Enable ACPI BAR */
|
/* Enable ACPI BAR */
|
||||||
|
pci_write_config8(PCI_DEV(0, 0x1f, 0), 0x44 /* ACPI_CNTL */, 0x80);
|
||||||
|
|
||||||
/* Unlock registers. */
|
/* Unlock registers. */
|
||||||
outw(inw(DEFAULT_PMBASE | UPRWC) | UPRWC_WR_EN,
|
outw(inw(DEFAULT_PMBASE | UPRWC) | UPRWC_WR_EN,
|
||||||
|
Reference in New Issue
Block a user