summaryrefslogtreecommitdiff
path: root/src/southbridge/amd/sb700/sata.c
diff options
context:
space:
mode:
authorWang Qing Pei <wangqingpei@gmail.com>2010-11-09 09:17:07 +0100
committerPatrick Georgi <patrick@georgi-clan.de>2011-09-04 12:22:09 +0200
commit16d3ec6a58b7a7ba52d4d17299b977e5c3e0557f (patch)
tree657655e77f9615a7626641c95990ad7207bc2ff5 /src/southbridge/amd/sb700/sata.c
parentf6e37316d0f751844898e92745182be9104d7df2 (diff)
Adjust some code/comment of sb700 sata init
The inline comment of sata_init function seems not placed correctly. Rearrange it. Change-Id: I63480da60e51cdc68e64c302ad2d8a6197e288f6 Signed-off-by: Wang Qing Pei <wangqingpei@gmail.com> Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/186 Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/southbridge/amd/sb700/sata.c')
-rwxr-xr-xsrc/southbridge/amd/sb700/sata.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/southbridge/amd/sb700/sata.c b/src/southbridge/amd/sb700/sata.c
index 411baf571f..58b72ad538 100755
--- a/src/southbridge/amd/sb700/sata.c
+++ b/src/southbridge/amd/sb700/sata.c
@@ -91,14 +91,13 @@ static void sata_init(struct device *dev)
device_t sm_dev;
/* SATA SMBus Disable */
- /* sm_dev = pci_locate_device(PCI_ID(0x1002, 0x4385), 0); */
sm_dev = dev_find_slot(0, PCI_DEVFN(0x14, 0));
- /* Disable SATA SMBUS */
- byte = pci_read_config8(sm_dev, 0xad);
- byte |= (1 << 1);
- /* Enable SATA and power saving */
+
byte = pci_read_config8(sm_dev, 0xad);
+ /* Disable SATA SMBUS */
byte |= (1 << 0);
+ /* Enable SATA and power saving */
+ byte |= (1 << 1);
byte |= (1 << 5);
pci_write_config8(sm_dev, 0xad, byte);