src/southbridge: Remove unnecessary whitespace before "\n" and "\t"
Change-Id: I42cc5b8736e73728c5deec6349e8d2a814e19e83 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/16281 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Omar Pakker
This commit is contained in:
committed by
Martin Roth
parent
d6e96864c9
commit
7f9df96825
@ -151,7 +151,7 @@ static void amd8132_scan_bus(struct bus *bus,
|
|||||||
info.sstatus = pci_read_config16(bus->dev, pos + PCI_X_SEC_STATUS);
|
info.sstatus = pci_read_config16(bus->dev, pos + PCI_X_SEC_STATUS);
|
||||||
|
|
||||||
/* Print the PCI-X bus speed */
|
/* Print the PCI-X bus speed */
|
||||||
printk(BIOS_DEBUG, "PCI: %02x: %s sstatus=%04x rev=%02x \n", bus->secondary, pcix_speed(info.sstatus), info.sstatus, info.rev);
|
printk(BIOS_DEBUG, "PCI: %02x: %s sstatus=%04x rev=%02x\n", bus->secondary, pcix_speed(info.sstatus), info.sstatus, info.rev);
|
||||||
|
|
||||||
|
|
||||||
/* Examine the bus and find out how loaded it is */
|
/* Examine the bus and find out how loaded it is */
|
||||||
|
@ -197,7 +197,7 @@ static CIM_STATUS GetCreativeMMIO(MMIORANGE *pMMIO)
|
|||||||
{
|
{
|
||||||
tempdev = dev_find_slot(Bus, Dev << 3);
|
tempdev = dev_find_slot(Bus, Dev << 3);
|
||||||
Value = pci_read_config32(tempdev, 0);
|
Value = pci_read_config32(tempdev, 0);
|
||||||
printk(BIOS_DEBUG, "Dev ID %x \n", Value);
|
printk(BIOS_DEBUG, "Dev ID %x\n", Value);
|
||||||
if((Value & 0xffff) == 0x1102)
|
if((Value & 0xffff) == 0x1102)
|
||||||
{//Creative
|
{//Creative
|
||||||
//Found Creative SB
|
//Found Creative SB
|
||||||
@ -228,7 +228,7 @@ static CIM_STATUS GetCreativeMMIO(MMIORANGE *pMMIO)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
printk(BIOS_DEBUG, " MMIOStart %x MMIOLimit %x \n", MMIOStart, MMIOLimit);
|
printk(BIOS_DEBUG, " MMIOStart %x MMIOLimit %x\n", MMIOStart, MMIOLimit);
|
||||||
if (MMIOStart < MMIOLimit)
|
if (MMIOStart < MMIOLimit)
|
||||||
{
|
{
|
||||||
Status = SetMMIO(MMIOStart>>8, MMIOLimit>>8, 0x80, pMMIO);
|
Status = SetMMIO(MMIOStart>>8, MMIOLimit>>8, 0x80, pMMIO);
|
||||||
@ -570,44 +570,44 @@ static void internal_gfx_pci_dev_init(struct device *dev)
|
|||||||
poweron_ddi_lanes(nb_dev);
|
poweron_ddi_lanes(nb_dev);
|
||||||
|
|
||||||
printk(BIOS_DEBUG,"vgainfo:\n"
|
printk(BIOS_DEBUG,"vgainfo:\n"
|
||||||
" ulBootUpEngineClock:%lu \n"
|
" ulBootUpEngineClock:%lu\n"
|
||||||
" ulBootUpUMAClock:%lu \n"
|
" ulBootUpUMAClock:%lu\n"
|
||||||
" ulBootUpSidePortClock:%lu \n"
|
" ulBootUpSidePortClock:%lu\n"
|
||||||
" ulMinSidePortClock:%lu \n"
|
" ulMinSidePortClock:%lu\n"
|
||||||
" ulSystemConfig:%lu \n"
|
" ulSystemConfig:%lu\n"
|
||||||
" ulBootUpReqDisplayVector:%lu \n"
|
" ulBootUpReqDisplayVector:%lu\n"
|
||||||
" ulOtherDisplayMisc:%lu \n"
|
" ulOtherDisplayMisc:%lu\n"
|
||||||
" ulDDISlot1Config:%lu \n"
|
" ulDDISlot1Config:%lu\n"
|
||||||
" ulDDISlot2Config:%lu \n"
|
" ulDDISlot2Config:%lu\n"
|
||||||
|
|
||||||
" ucMemoryType:%u \n"
|
" ucMemoryType:%u\n"
|
||||||
" ucUMAChannelNumber:%u \n"
|
" ucUMAChannelNumber:%u\n"
|
||||||
" ucDockingPinBit:%u \n"
|
" ucDockingPinBit:%u\n"
|
||||||
" ucDockingPinPolarity:%u \n"
|
" ucDockingPinPolarity:%u\n"
|
||||||
|
|
||||||
" ulDockingPinCFGInfo:%lu \n"
|
" ulDockingPinCFGInfo:%lu\n"
|
||||||
" ulCPUCapInfo: %lu \n"
|
" ulCPUCapInfo: %lu\n"
|
||||||
|
|
||||||
" usNumberOfCyclesInPeriod:%hu \n"
|
" usNumberOfCyclesInPeriod:%hu\n"
|
||||||
" usMaxNBVoltage:%hu \n"
|
" usMaxNBVoltage:%hu\n"
|
||||||
" usMinNBVoltage:%hu \n"
|
" usMinNBVoltage:%hu\n"
|
||||||
" usBootUpNBVoltage:%hu \n"
|
" usBootUpNBVoltage:%hu\n"
|
||||||
|
|
||||||
" ulHTLinkFreq:%lu \n"
|
" ulHTLinkFreq:%lu\n"
|
||||||
|
|
||||||
" usMinHTLinkWidth:%hu \n"
|
" usMinHTLinkWidth:%hu\n"
|
||||||
" usMaxHTLinkWidth:%hu \n"
|
" usMaxHTLinkWidth:%hu\n"
|
||||||
" usUMASyncStartDelay:%hu \n"
|
" usUMASyncStartDelay:%hu\n"
|
||||||
" usUMADataReturnTime:%hu \n"
|
" usUMADataReturnTime:%hu\n"
|
||||||
" usLinkStatusZeroTime:%hu \n"
|
" usLinkStatusZeroTime:%hu\n"
|
||||||
|
|
||||||
" ulHighVoltageHTLinkFreq:%lu \n"
|
" ulHighVoltageHTLinkFreq:%lu\n"
|
||||||
" ulLowVoltageHTLinkFreq:%lu \n"
|
" ulLowVoltageHTLinkFreq:%lu\n"
|
||||||
|
|
||||||
" usMaxUpStreamHTLinkWidth:%hu \n"
|
" usMaxUpStreamHTLinkWidth:%hu\n"
|
||||||
" usMaxDownStreamHTLinkWidth:%hu \n"
|
" usMaxDownStreamHTLinkWidth:%hu\n"
|
||||||
" usMinUpStreamHTLinkWidth:%hu \n"
|
" usMinUpStreamHTLinkWidth:%hu\n"
|
||||||
" usMinDownStreamHTLinkWidth:%hu \n",
|
" usMinDownStreamHTLinkWidth:%hu\n",
|
||||||
|
|
||||||
(unsigned long)vgainfo.ulBootUpEngineClock,
|
(unsigned long)vgainfo.ulBootUpEngineClock,
|
||||||
(unsigned long)vgainfo.ulBootUpUMAClock,
|
(unsigned long)vgainfo.ulBootUpUMAClock,
|
||||||
|
@ -210,7 +210,7 @@ static void soc_pirq_init(device_t dev)
|
|||||||
|
|
||||||
/* Set up the PIRQ PIC routing based on static config. */
|
/* Set up the PIRQ PIC routing based on static config. */
|
||||||
printk(BIOS_SPEW, "Start writing IRQ assignments\n"
|
printk(BIOS_SPEW, "Start writing IRQ assignments\n"
|
||||||
"PIRQ\tA \tB \tC \tD \tE \tF \tG \tH\n"
|
"PIRQ\tA\tB\tC\tD\tE\tF\tG\tH\n"
|
||||||
"IRQ ");
|
"IRQ ");
|
||||||
for (i = 0; i < NUM_PIRQS; i++) {
|
for (i = 0; i < NUM_PIRQS; i++) {
|
||||||
write8(pr_base + i*sizeof(ir->pic[i]), ir->pic[i]);
|
write8(pr_base + i*sizeof(ir->pic[i]), ir->pic[i]);
|
||||||
|
@ -36,7 +36,7 @@ static void ide_init(struct device *dev)
|
|||||||
if (conf->ide1_enable) {
|
if (conf->ide1_enable) {
|
||||||
/* Enable secondary IDE interface. */
|
/* Enable secondary IDE interface. */
|
||||||
word |= (1 << 0);
|
word |= (1 << 0);
|
||||||
printk(BIOS_DEBUG, "IDE1 \t");
|
printk(BIOS_DEBUG, "IDE1\t");
|
||||||
}
|
}
|
||||||
if (conf->ide0_enable) {
|
if (conf->ide0_enable) {
|
||||||
/* Enable primary IDE interface. */
|
/* Enable primary IDE interface. */
|
||||||
|
@ -111,7 +111,7 @@ static void lpc_init(device_t dev)
|
|||||||
lpc_common_init(dev);
|
lpc_common_init(dev);
|
||||||
|
|
||||||
pm_base = pci_read_config32(dev, 0x60) & 0xff00;
|
pm_base = pci_read_config32(dev, 0x60) & 0xff00;
|
||||||
printk(BIOS_INFO, "%s: pm_base = %x \n", __func__, pm_base);
|
printk(BIOS_INFO, "%s: pm_base = %x\n", __func__, pm_base);
|
||||||
|
|
||||||
/* Power after power fail */
|
/* Power after power fail */
|
||||||
on = CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL;
|
on = CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL;
|
||||||
|
@ -102,7 +102,7 @@ static void sata_init(struct device *dev)
|
|||||||
if (conf->sata1_enable) {
|
if (conf->sata1_enable) {
|
||||||
/* Enable secondary SATA interface. */
|
/* Enable secondary SATA interface. */
|
||||||
dword |= (1 << 0);
|
dword |= (1 << 0);
|
||||||
printk(BIOS_DEBUG, "SATA S \t");
|
printk(BIOS_DEBUG, "SATA S\t");
|
||||||
}
|
}
|
||||||
if (conf->sata0_enable) {
|
if (conf->sata0_enable) {
|
||||||
/* Enable primary SATA interface. */
|
/* Enable primary SATA interface. */
|
||||||
|
@ -38,7 +38,7 @@ static void ide_init(struct device *dev)
|
|||||||
if (conf->ide1_enable) {
|
if (conf->ide1_enable) {
|
||||||
/* Enable secondary IDE interface. */
|
/* Enable secondary IDE interface. */
|
||||||
word |= (1 << 0);
|
word |= (1 << 0);
|
||||||
printk(BIOS_DEBUG, "IDE1 \t");
|
printk(BIOS_DEBUG, "IDE1\t");
|
||||||
}
|
}
|
||||||
if (conf->ide0_enable) {
|
if (conf->ide0_enable) {
|
||||||
/* Enable primary IDE interface. */
|
/* Enable primary IDE interface. */
|
||||||
|
@ -39,16 +39,16 @@ static void sata_init(struct device *dev)
|
|||||||
if (conf->sata1_enable) {
|
if (conf->sata1_enable) {
|
||||||
/* Enable secondary SATA interface */
|
/* Enable secondary SATA interface */
|
||||||
dword |= (1<<0);
|
dword |= (1<<0);
|
||||||
printk(BIOS_DEBUG, "SATA S \t");
|
printk(BIOS_DEBUG, "SATA S\t");
|
||||||
}
|
}
|
||||||
if (conf->sata0_enable) {
|
if (conf->sata0_enable) {
|
||||||
/* Enable primary SATA interface */
|
/* Enable primary SATA interface */
|
||||||
dword |= (1<<1);
|
dword |= (1<<1);
|
||||||
printk(BIOS_DEBUG, "SATA P \n");
|
printk(BIOS_DEBUG, "SATA P\n");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
dword |= (1<<1) | (1<<0);
|
dword |= (1<<1) | (1<<0);
|
||||||
printk(BIOS_DEBUG, "SATA P and S \n");
|
printk(BIOS_DEBUG, "SATA P and S\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ static int codec_detect(u8 *base)
|
|||||||
|
|
||||||
do{
|
do{
|
||||||
dword = read32(base + 0x08)&0x1;
|
dword = read32(base + 0x08)&0x1;
|
||||||
if(idx++>1000) { printk(BIOS_DEBUG, "controller reset fail !!! \n"); break;}
|
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
|
||||||
|
@ -120,7 +120,7 @@ printk(BIOS_DEBUG, "IDE_INIT:---------->\n");
|
|||||||
if (conf->ide1_enable) {
|
if (conf->ide1_enable) {
|
||||||
/* Enable secondary ide interface */
|
/* Enable secondary ide interface */
|
||||||
word |= (1<<0);
|
word |= (1<<0);
|
||||||
printk(BIOS_DEBUG, "IDE1 \t");
|
printk(BIOS_DEBUG, "IDE1\t");
|
||||||
}
|
}
|
||||||
if (conf->ide0_enable) {
|
if (conf->ide0_enable) {
|
||||||
/* Enable primary ide interface */
|
/* Enable primary ide interface */
|
||||||
|
@ -221,7 +221,7 @@ static int phy_detect(u8 *base,u16 *PhyAddr) //BOOL PHY_Detect()
|
|||||||
|
|
||||||
if(!bFoundPhy)
|
if(!bFoundPhy)
|
||||||
{
|
{
|
||||||
printk(BIOS_DEBUG, "PHY not found !!!! \n");
|
printk(BIOS_DEBUG, "PHY not found !!!!\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
*PhyAddr=PhyAddress;
|
*PhyAddr=PhyAddress;
|
||||||
@ -283,7 +283,7 @@ static void nic_init(struct device *dev)
|
|||||||
|
|
||||||
// if that is valid we will use that
|
// if that is valid we will use that
|
||||||
|
|
||||||
printk(BIOS_DEBUG, "EEPROM contents %lx \n",ReadEEprom( dev, base, 0LL));
|
printk(BIOS_DEBUG, "EEPROM contents %lx\n",ReadEEprom( dev, base, 0LL));
|
||||||
for(i=0;i<3;i++) {
|
for(i=0;i<3;i++) {
|
||||||
//status = smbus_read_byte(dev_eeprom, i);
|
//status = smbus_read_byte(dev_eeprom, i);
|
||||||
ulValue=ReadEEprom( dev, base, i+3L);
|
ulValue=ReadEEprom( dev, base, i+3L);
|
||||||
@ -294,7 +294,7 @@ static void nic_init(struct device *dev)
|
|||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
// read MAC address from firmware
|
// read MAC address from firmware
|
||||||
printk(BIOS_DEBUG, "EEPROM invalid!!\nReg 0x38h=%.8lx \n",ulValue);
|
printk(BIOS_DEBUG, "EEPROM invalid!!\nReg 0x38h=%.8lx\n",ulValue);
|
||||||
MacAddr[0]=read16((u16 *)0xffffffc0); // mac address store at here
|
MacAddr[0]=read16((u16 *)0xffffffc0); // mac address store at here
|
||||||
MacAddr[1]=read16((u16 *)0xffffffc2);
|
MacAddr[1]=read16((u16 *)0xffffffc2);
|
||||||
MacAddr[2]=read16((u16 *)0xffffffc4);
|
MacAddr[2]=read16((u16 *)0xffffffc4);
|
||||||
|
Reference in New Issue
Block a user