aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/amd/sb600/sb600_sata.c
diff options
context:
space:
mode:
authorJoe Bao <zheng.bao@amd.com>2008-12-01 19:37:21 +0000
committerMarc Jones <marc.jones@amd.com>2008-12-01 19:37:21 +0000
commit164463c551367d0ae3a9f8e5a1719200af99b060 (patch)
tree0b2b1a6682749dcc44302548edbebb08ce914df4 /src/southbridge/amd/sb600/sb600_sata.c
parent7a51e50582b65bb6ac54e8923470807b5975c6e1 (diff)
Add AMD sb600 HPET setup and some minor cleanups.
Signed-off-by: Joe Bao <zheng.bao@amd.com> Reviewed-by: Maggie Li <maggie.li@amd.com> Acked-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Marc Jones <marcj303@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3785 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge/amd/sb600/sb600_sata.c')
-rw-r--r--src/southbridge/amd/sb600/sb600_sata.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/southbridge/amd/sb600/sb600_sata.c b/src/southbridge/amd/sb600/sb600_sata.c
index 995e5a7376..5b3c500bd9 100644
--- a/src/southbridge/amd/sb600/sb600_sata.c
+++ b/src/southbridge/amd/sb600/sb600_sata.c
@@ -62,12 +62,12 @@ static void sata_init(struct device *dev)
sata_bar3 = pci_read_config16(dev, 0x1C) & ~0x7;
sata_bar4 = pci_read_config16(dev, 0x20) & ~0x7;
- printk_debug("sata_bar0=%x\n", sata_bar0); /* 3030 */
- printk_debug("sata_bar1=%x\n", sata_bar1); /* 3070 */
- printk_debug("sata_bar2=%x\n", sata_bar2); /* 3040 */
- printk_debug("sata_bar3=%x\n", sata_bar3); /* 3080 */
- printk_debug("sata_bar4=%x\n", sata_bar4); /* 3000 */
- printk_debug("sata_bar5=%x\n", sata_bar5); /* e0309000 */
+ /* printk_debug("sata_bar0=%x\n", sata_bar0); */ /* 3030 */
+ /* printk_debug("sata_bar1=%x\n", sata_bar1); */ /* 3070 */
+ /* printk_debug("sata_bar2=%x\n", sata_bar2); */ /* 3040 */
+ /* printk_debug("sata_bar3=%x\n", sata_bar3); */ /* 3080 */
+ /* printk_debug("sata_bar4=%x\n", sata_bar4); */ /* 3000 */
+ /* printk_debug("sata_bar5=%x\n", sata_bar5); */ /* e0309000 */
/* Program the 2C to 0x43801002 */
dword = 0x43801002;
@@ -142,15 +142,15 @@ static void sata_init(struct device *dev)
/* Use BAR5+0x2A8,BAR0+0x6 for Secondary Slave */
byte = readb(sata_bar5 + 0x128);
- printk_debug("byte=%x\n", byte);
+ /* printk_debug("byte=%x\n", byte); */
byte &= 0xF;
if (byte == 0x3) {
outb(0xA0, sata_bar0 + 0x6);
while ((inb(sata_bar0 + 0x6) != 0xA0)
|| ((inb(sata_bar0 + 0x7) & 0x88) != 0)) {
mdelay(10);
- printk_debug("0x6=%x,0x7=%x\n", inb(sata_bar0 + 0x6),
- inb(sata_bar0 + 0x7));
+ /* printk_debug("0x6=%x,0x7=%x\n", inb(sata_bar0 + 0x6),
+ inb(sata_bar0 + 0x7)); */
printk_debug("drive detection fail,trying...\n");
}
printk_debug("Primary master device is ready\n");