remove trailing whitespace

Change-Id: Ib91889a374515d36a2b12b53aeb12b6ea6e22732
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/364
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
Stefan Reinauer
2011-10-31 12:56:45 -07:00
committed by Patrick Georgi
parent 784544b934
commit 5ff7c13e85
259 changed files with 824 additions and 824 deletions

View File

@@ -20,7 +20,7 @@
* ***************************************************************************
*
*/
#ifndef _AMD_SBPLATFORM_H_
#define _AMD_SBPLATFORM_H_
@@ -112,7 +112,7 @@ typedef union _PCI_ADDR {
*/
#define SB_CIMx_PARAMETER 0x02
// Generic
// Generic
#define cimSpreadSpectrumDefault TRUE
#define cimSpreadSpectrumTypeDefault 0x00 // Normal
#define cimHpetTimerDefault TRUE
@@ -121,7 +121,7 @@ typedef union _PCI_ADDR {
#define cimSpiFastReadEnableDefault 0x01 // Enable
#define cimSpiFastReadSpeedDefault 0x01 // 33 MHz
#define cimSioHwmPortEnableDefault FALSE
// GPP/AB Controller
// GPP/AB Controller
#define cimNbSbGen2Default TRUE
#define cimAlinkPhyPllPowerDownDefault TRUE
#define cimResetCpuOnSyncFloodDefault TRUE
@@ -129,13 +129,13 @@ typedef union _PCI_ADDR {
#define cimGppMemWrImproveDefault TRUE
#define cimGppPortAspmDefault FALSE
#define cimGppLaneReversalDefault FALSE
#define cimGppPhyPllPowerDownDefault TRUE
#define cimGppPhyPllPowerDownDefault TRUE
// USB Controller
#define cimUsbPhyPowerDownDefault FALSE
// GEC Controller
#define cimSBGecDebugBusDefault FALSE
#define cimSBGecPwrDefault 0x03
// Sata Controller
// Sata Controller
#define cimSataSetMaxGen2Default 0x00
#define cimSATARefClkSelDefault 0x10
#define cimSATARefDivSelDefault 0x80
@@ -143,11 +143,11 @@ typedef union _PCI_ADDR {
#define cimSataPortMultCapDefault TRUE
#define cimSataPscCapDefault 0x00 // Enable
#define cimSataSscCapDefault 0x00 // Enable
#define cimSataFisBasedSwitchingDefault FALSE
#define cimSataFisBasedSwitchingDefault FALSE
#define cimSataCccSupportDefault FALSE
#define cimSataClkAutoOffDefault FALSE
#define cimNativepciesupportDefault FALSE
// Fusion Related
// Fusion Related
#define cimAcDcMsgDefault FALSE
#define cimTimerTickTrackDefault FALSE
#define cimClockInterruptTagDefault FALSE

View File

@@ -39,8 +39,8 @@ static void enable_rom(void)
pci_io_write_config32(dev, 0x44, dword);
/* SB800 LPC Bridge 0:20:3:48h.
* BIT0: Port Enable for SuperIO 0x2E-0x2F
* BIT1: Port Enable for SuperIO 0x4E-0x4F
* BIT0: Port Enable for SuperIO 0x2E-0x2F
* BIT1: Port Enable for SuperIO 0x4E-0x4F
* BIT4: Port Enable for LPC ROM Address Arrage2 (0x68-0x6C)
* BIT6: Port Enable for RTC IO 0x70-0x73
* BIT21: Port Enable for Port 0x80

0
src/southbridge/amd/cimx/sb900/Amd.h Executable file → Normal file
View File

0
src/southbridge/amd/cimx/sb900/AmdSbLib.h Executable file → Normal file
View File

0
src/southbridge/amd/cimx/sb900/SbEarly.h Executable file → Normal file
View File

0
src/southbridge/amd/cimx/sb900/SbPlatform.h Executable file → Normal file
View File

6
src/southbridge/amd/cimx/sb900/bootblock.c Executable file → Normal file
View File

@@ -73,8 +73,8 @@ static void sb900_enable_rom(void)
pci_io_write_config32(dev, 0x44, dword);
/* SB900 LPC Bridge 0:20:3:48h.
* BIT0: Port Enable for SuperIO 0x2E-0x2F
* BIT1: Port Enable for SuperIO 0x4E-0x4F
* BIT0: Port Enable for SuperIO 0x2E-0x2F
* BIT1: Port Enable for SuperIO 0x4E-0x4F
* BIT4: Port Enable for LPC ROM Address Arrage2 (0x68-0x6C)
* BIT6: Port Enable for RTC IO 0x70-0x73
* BIT21: Port Enable for Port 0x80
@@ -86,7 +86,7 @@ static void sb900_enable_rom(void)
/* Enable 4MB rom access at 0xFFE00000 - 0xFFFFFFFF */
/* Set the 4MB enable bits */
word = pci_io_read_config16(dev, 0x6c);
word = 0xFFC0;
word = 0xFFC0;
pci_io_write_config16(dev, 0x6c, word);
}

0
src/southbridge/amd/cimx/sb900/cbtypes.h Executable file → Normal file
View File

0
src/southbridge/amd/cimx/sb900/chip.h Executable file → Normal file
View File

0
src/southbridge/amd/cimx/sb900/chip_name.c Executable file → Normal file
View File

2
src/southbridge/amd/cimx/sb900/early.c Executable file → Normal file
View File

@@ -142,7 +142,7 @@ void sb_Late_Post(void)
//AMD_IMAGE_HEADER was missing, when using AmdSbDispatcher,
// VerifyImage() will fail, LocateImage() take minitues to find the image.
sbLatePost(&sb_early_cfg);
//Set ACPI SCI IRQ to 0x9.
data = CONFIG_ACPI_SCI_IRQ;
outb(0x10, 0xC00);

0
src/southbridge/amd/cimx/sb900/late.c Executable file → Normal file
View File

0
src/southbridge/amd/cimx/sb900/lpc.c Executable file → Normal file
View File

0
src/southbridge/amd/cimx/sb900/lpc.h Executable file → Normal file
View File

0
src/southbridge/amd/cimx/sb900/smbus.c Executable file → Normal file
View File

0
src/southbridge/amd/cimx/sb900/smbus.h Executable file → Normal file
View File

View File

@@ -28,25 +28,25 @@
static void ht_dev_set_resources(device_t dev)
{
#if CONFIG_EXT_CONF_SUPPORT == 1
unsigned reg;
unsigned reg;
device_t k8_f1;
resource_t rbase, rend;
u32 base, limit;
struct resource *resource;
printk(BIOS_DEBUG,"%s %s\n", dev_path(dev), __func__);
resource = probe_resource(dev, 0x1C);
if (resource) {
set_nbmisc_enable_bits(dev, 0x0, 1 << 3, 0 << 3); // make bar3 visible
set_nbmisc_enable_bits(dev, 0x0, 1 << 3, 0 << 3); // make bar3 visible
set_nbcfg_enable_bits(dev, 0x7C, 1 << 30, 1 << 30); /* Enables writes to the BAR3 register. */
set_nbcfg_enable_bits(dev, 0x84, 7 << 16, 0 << 16); // program bus range: 255 busses
set_nbcfg_enable_bits(dev, 0x84, 7 << 16, 0 << 16); // program bus range: 255 busses
pci_write_config32(dev, 0x1C, resource->base);
/* Enable MMCONFIG decoding. */
set_htiu_enable_bits(dev, 0x32, 1 << 28, 1 << 28); /* PCIEMiscInit */
set_nbcfg_enable_bits(dev, 0x7C, 1 << 30, 0 << 30); /* Disable writes to the BAR3 register. */
set_nbmisc_enable_bits(dev, 0x0, 1 << 3, 1 << 3); // hide bar 3
// setup resource nonposted in k8 mmio
/* Get the base address */
rbase = resource->base;
@@ -74,9 +74,9 @@ static void ht_dev_set_resources(device_t dev)
limit &= 0x00000048;
limit |= ((rend >> 8) & 0xffffff00);
limit |= (sblk << 4);
limit |= (1 << 7);
limit |= (1 << 7);
printk(BIOS_INFO, "%s <- index %x base %04x limit %04x\n", dev_path(k8_f1), reg, base, limit);
pci_write_config32(k8_f1, reg+4, limit);
pci_write_config32(k8_f1, reg+4, limit);
pci_write_config32(k8_f1, reg, base);
}
}
@@ -88,13 +88,13 @@ static void ht_dev_read_resources(device_t dev)
{
#if CONFIG_EXT_CONF_SUPPORT == 1
struct resource *res;
printk(BIOS_DEBUG,"%s %s\n", dev_path(dev), __func__);
set_nbmisc_enable_bits(dev, 0x0, 1 << 3, 1 << 3); // hide bar 3
printk(BIOS_DEBUG,"%s %s\n", dev_path(dev), __func__);
set_nbmisc_enable_bits(dev, 0x0, 1 << 3, 1 << 3); // hide bar 3
#endif
pci_dev_read_resources(dev);
#if CONFIG_EXT_CONF_SUPPORT == 1
/* Add an MMCONFIG resource. */
res = new_resource(dev, 0x1C);
@@ -104,9 +104,9 @@ static void ht_dev_read_resources(device_t dev)
res->gran = log2(res->size);
res->limit = 0xffffffffffffffffULL; /* 64bit */
res->flags = IORESOURCE_FIXED | IORESOURCE_MEM | IORESOURCE_PCI64 | IORESOURCE_ASSIGNED;
compact_resources(dev);
#endif
#endif
}
/* for UMA internal graphics */

View File

@@ -381,7 +381,7 @@ u32 extractbits(u32 source, int lsb, int msb)
int cpuidFamily(void)
{
u32 baseFamily, extendedFamily, fms;
fms = cpuid_eax (1);
baseFamily = extractbits (fms, 8, 11);
extendedFamily = extractbits (fms, 20, 27);

View File

@@ -511,7 +511,7 @@ static void internal_gfx_pci_dev_init(struct device *dev)
vgainfo.ucUMAChannelNumber = 2;
}
}
// processor type
if (is_family0Fh())
vgainfo.ulCPUCapInfo = 3;
@@ -539,9 +539,9 @@ static void internal_gfx_pci_dev_init(struct device *dev)
/* HT width. */
value = pci_read_config8(nb_dev, 0xcb);
vgainfo.usMinDownStreamHTLinkWidth =
vgainfo.usMaxDownStreamHTLinkWidth =
vgainfo.usMinUpStreamHTLinkWidth =
vgainfo.usMinDownStreamHTLinkWidth =
vgainfo.usMaxDownStreamHTLinkWidth =
vgainfo.usMinUpStreamHTLinkWidth =
vgainfo.usMaxUpStreamHTLinkWidth =
vgainfo.usMinHTLinkWidth =
vgainfo.usMaxHTLinkWidth = ht_width_lookup [extractbits(value, 0, 2)];

View File

@@ -223,7 +223,7 @@ static void rs780_nb_gfx_dev_table(device_t nb_dev, device_t dev)
#if (CONFIG_GFXUMA == 1)
extern uint64_t uma_memory_size;
// bits 7-9: aperture size
// 0-7: 128mb, 256mb, 64mb, 32mb, 512mb, 1g, 2g, 4g
// 0-7: 128mb, 256mb, 64mb, 32mb, 512mb, 1g, 2g, 4g
if (uma_memory_size == 0x02000000) romstrap2 |= 3 << 7;
if (uma_memory_size == 0x04000000) romstrap2 |= 2 << 7;
if (uma_memory_size == 0x08000000) romstrap2 |= 0 << 7;

View File

@@ -123,8 +123,8 @@ static void sata_init(struct device *dev)
// no cmos option
i = CONFIG_SATA_MODE;
}
printk(BIOS_INFO, "%s: setting sata mode = %s\n", __func__, (i == SATA_MODE_IDE)?"ide":"ahci" );
printk(BIOS_INFO, "%s: setting sata mode = %s\n", __func__, (i == SATA_MODE_IDE)?"ide":"ahci" );
dword = pci_read_config32(dev, 0x8);
dword &= 0xff0000ff;
if (i == SATA_MODE_IDE)

0
src/southbridge/amd/sb700/early_setup.c Executable file → Normal file
View File

View File

@@ -51,8 +51,8 @@ static void ide_init(struct device *dev)
/* set ide as primary, if you want to boot from IDE, you'd better set it
* in $vendor/$mainboard/devicetree.cb */
if (conf->boot_switch_sata_ide == 1) {
struct device *sm_dev = dev_find_slot(0, PCI_DEVFN(0x14, 0));
byte = pci_read_config8(sm_dev, 0xAD);

0
src/southbridge/amd/sb700/pmio.c Executable file → Normal file
View File

0
src/southbridge/amd/sb700/pmio.h Executable file → Normal file
View File

0
src/southbridge/amd/sb700/reset.c Executable file → Normal file
View File

0
src/southbridge/amd/sb700/sata.c Executable file → Normal file
View File

0
src/southbridge/amd/sb700/sb700.h Executable file → Normal file
View File

0
src/southbridge/amd/sb700/sm.c Executable file → Normal file
View File

0
src/southbridge/amd/sb700/smbus.c Executable file → Normal file
View File

0
src/southbridge/amd/sb700/smbus.h Executable file → Normal file
View File

0
src/southbridge/amd/sb700/usb.c Executable file → Normal file
View File

0
src/southbridge/amd/sr5650/cmn.h Executable file → Normal file
View File

0
src/southbridge/amd/sr5650/early_setup.c Executable file → Normal file
View File

0
src/southbridge/amd/sr5650/pcie.c Executable file → Normal file
View File

0
src/southbridge/amd/sr5650/sr5650.c Executable file → Normal file
View File

0
src/southbridge/amd/sr5650/sr5650.h Executable file → Normal file
View File

View File

@@ -24,7 +24,7 @@ extern struct chip_operations southbridge_ti_pcixx12_ops;
struct southbridge_ti_pcixx12_config {
int dummy;
};
#endif /* _SOUTHBRIDGE_TI_PCIXX12 */

View File

@@ -27,7 +27,7 @@ static void bridge_enable(struct device *dev)
{
u8 tmp;
print_debug("B188 device dump\n");
/* VIA recommends this, sorry no known info. */
writeback(dev, 0x40, 0x91);

View File

@@ -34,7 +34,7 @@ static void vt8237r_cfg(struct device *dev, struct device *devsb)
u8 regm, regm3;
device_t devfun3;
devfun3 = dev_find_device(PCI_VENDOR_ID_VIA,
PCI_DEVICE_ID_VIA_K8T800_DRAM, 0);
@@ -45,7 +45,7 @@ static void vt8237r_cfg(struct device *dev, struct device *devsb)
if (!devfun3)
devfun3 = dev_find_device(PCI_VENDOR_ID_VIA,
PCI_DEVICE_ID_VIA_K8T890CE_3, 0);
if (!devfun3)
devfun3 = dev_find_device(PCI_VENDOR_ID_VIA,
PCI_DEVICE_ID_VIA_K8T890CF_3, 0);
@@ -53,12 +53,12 @@ static void vt8237r_cfg(struct device *dev, struct device *devsb)
if (!devfun3)
devfun3 = dev_find_device(PCI_VENDOR_ID_VIA,
PCI_DEVICE_ID_VIA_K8M890CE_3, 0);
if(!devfun3)
die("\n vt8237r_cfg: Unable to find K8x8xx bridge via PCI scan. Stopping.\n");
pci_write_config8(dev, 0x70, 0xc2);
/* PCI Control */
pci_write_config8(dev, 0x72, 0xee);
pci_write_config8(dev, 0x73, 0x01);
@@ -157,7 +157,7 @@ static void vt8237r_vlink_init(struct device *dev)
pci_write_config8(dev, 0x48, 0xa3);
}
static void ctrl_init(struct device *dev)
static void ctrl_init(struct device *dev)
{
print_debug("K8x8xx: Initializing V-Link to VT8237R sb: ");

View File

@@ -65,7 +65,7 @@ static void dram_enable(struct device *dev)
/* The Address Next to the Last Valid DRAM Address */
pci_write_config16(dev, 0x88, (msr.lo >> 24) | reg);
print_debug(" VIA_X_3 device dump:\n");
dump_south(dev);

View File

@@ -36,7 +36,7 @@ static void error_enable(struct device *dev)
print_debug("Done\n");
/* TODO: enable AGP errors reporting on K8M890 */
print_debug(" VIA_X_1 device dump:\n");
dump_south(dev);
}

View File

@@ -1,6 +1,6 @@
/*
* This file is part of the coreboot project.
*
*
* Copyright (C) 2011 Alexandru Gagniuc <mr.nuke.me@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
@@ -12,7 +12,7 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

View File

@@ -297,7 +297,7 @@ static void vt8237r_init(struct device *dev)
*/
pci_write_config8(dev, 0x48, 0x0c);
#else
#if CONFIG_SOUTHBRIDGE_VIA_K8T800
/* It seems that when we pair with the K8T800, we need to disable
* the A2 mask
@@ -310,7 +310,7 @@ static void vt8237r_init(struct device *dev)
*/
pci_write_config8(dev, 0x48, 0x8c);
#endif
#endif
southbridge_init_common(dev);
@@ -327,7 +327,7 @@ static void vt8237r_init(struct device *dev)
printk(BIOS_SPEW, "Leaving %s.\n", __func__);
printk(BIOS_SPEW, "And taking a dump:\n");
dump_south(dev);
dump_south(dev);
}
static void vt8237a_init(struct device *dev)