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:
parent
a67c354cbf
commit
64caf3607e
|
@ -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));
|
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);
|
pci_write_config32(lpc_dev, 0xe8, final_reg);
|
||||||
|
|
||||||
#if 1
|
|
||||||
reg_old = reg = pci_read_config32(lpc_dev, 0xe4);
|
reg_old = reg = pci_read_config32(lpc_dev, 0xe4);
|
||||||
reg |= (1<<20);
|
reg |= (1<<20);
|
||||||
if (reg != reg_old) {
|
if (reg != reg_old) {
|
||||||
pci_write_config32(lpc_dev, 0xe4, reg);
|
pci_write_config32(lpc_dev, 0xe4, reg);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
byte = pci_read_config8(lpc_dev, 0x74);
|
byte = pci_read_config8(lpc_dev, 0x74);
|
||||||
byte |= ((1<<1));
|
byte |= ((1<<1));
|
||||||
|
|
|
@ -394,10 +394,9 @@ static void hard_reset(void)
|
||||||
static void soft_reset(void)
|
static void soft_reset(void)
|
||||||
{
|
{
|
||||||
set_bios_reset();
|
set_bios_reset();
|
||||||
#if 1
|
|
||||||
/* link reset */
|
/* link reset */
|
||||||
outb(0x02, 0x0cf9);
|
outb(0x02, 0x0cf9);
|
||||||
outb(0x06, 0x0cf9);
|
outb(0x06, 0x0cf9);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,8 +42,6 @@ static void sata_com_reset(struct device *dev, unsigned reset)
|
||||||
*(base + 0x48) = dword;
|
*(base + 0x48) = dword;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(reset) return;
|
if(reset) return;
|
||||||
|
|
||||||
dword = *(base+ 0);
|
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);
|
printk_debug("loop=%d, *(base+4)=%08x\r\n",loop, dword);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
dword = *(base+ 0x40);
|
dword = *(base+ 0x40);
|
||||||
printk_debug("*(base+0x40)=%08x\r\n",dword);
|
printk_debug("*(base+0x40)=%08x\r\n",dword);
|
||||||
if(dword == 0x113) {
|
if(dword == 0x113) {
|
||||||
|
@ -70,8 +67,6 @@ static void sata_com_reset(struct device *dev, unsigned reset)
|
||||||
} while (--loop>0);
|
} while (--loop>0);
|
||||||
printk_debug("loop=%d, *(base+0x44)=%08x\r\n",loop, dword);
|
printk_debug("loop=%d, *(base+0x44)=%08x\r\n",loop, dword);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sata_init(struct device *dev)
|
static void sata_init(struct device *dev)
|
||||||
|
|
Loading…
Reference in New Issue