ck804 whitespace fixes

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3584 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Myles Watson 2008-09-18 16:27:00 +00:00
parent a67c354cbf
commit 64caf3607e
20 changed files with 783 additions and 791 deletions

View File

@ -157,13 +157,11 @@ void ck804_enable(device_t dev)
final_reg &= ~((1<<16)|(1<<8)|(1<<20)|(1<<10)|(1<<12)|(1<<13)|(1<<14)|(1<<22)|(1<<18)|(1<<15));
pci_write_config32(lpc_dev, 0xe8, final_reg);
#if 1
reg_old = reg = pci_read_config32(lpc_dev, 0xe4);
reg |= (1<<20);
if (reg != reg_old) {
pci_write_config32(lpc_dev, 0xe4, reg);
}
#endif
byte = pci_read_config8(lpc_dev, 0x74);
byte |= ((1<<1));

View File

@ -394,10 +394,9 @@ static void hard_reset(void)
static void soft_reset(void)
{
set_bios_reset();
#if 1
/* link reset */
outb(0x02, 0x0cf9);
outb(0x06, 0x0cf9);
#endif
}

View File

@ -42,8 +42,6 @@ static void sata_com_reset(struct device *dev, unsigned reset)
*(base + 0x48) = dword;
#endif
if(reset) return;
dword = *(base+ 0);
@ -58,7 +56,6 @@ static void sata_com_reset(struct device *dev, unsigned reset)
printk_debug("loop=%d, *(base+4)=%08x\r\n",loop, dword);
}
dword = *(base+ 0x40);
printk_debug("*(base+0x40)=%08x\r\n",dword);
if(dword == 0x113) {
@ -70,8 +67,6 @@ static void sata_com_reset(struct device *dev, unsigned reset)
} while (--loop>0);
printk_debug("loop=%d, *(base+0x44)=%08x\r\n",loop, dword);
}
}
static void sata_init(struct device *dev)