summaryrefslogtreecommitdiff
path: root/src/southbridge/broadcom/bcm5785
diff options
context:
space:
mode:
authorbxshi <bxshi@msik.com.cn>2006-11-02 16:02:33 +0000
committerRonald G. Minnich <rminnich@gmail.com>2006-11-02 16:02:33 +0000
commitfaea4c59abb37c80b530df0b5901eb3a89fb2dea (patch)
tree129059a7b68c21a857e3d903a400b8bf54a9aab5 /src/southbridge/broadcom/bcm5785
parent9c33b7b81e611526998d1b58b7177e7bdf63dacc (diff)
Sorry, this is the last commit I will do this way, but MSI has waited a
long time and I could not get into the tracker. These are patches to enable ms9185 support. Abuild passes. Signed-off-by: bxshi <bxshi@msik.com.cn> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2486 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge/broadcom/bcm5785')
-rw-r--r--src/southbridge/broadcom/bcm5785/bcm5785_sata.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/southbridge/broadcom/bcm5785/bcm5785_sata.c b/src/southbridge/broadcom/bcm5785/bcm5785_sata.c
index 470bc47c73..426ee0ff0b 100644
--- a/src/southbridge/broadcom/bcm5785/bcm5785_sata.c
+++ b/src/southbridge/broadcom/bcm5785/bcm5785_sata.c
@@ -21,6 +21,8 @@ static void sata_init(struct device *dev)
uint8_t *base;
uint8_t *mmio;
struct resource *res;
+ unsigned int mmio_base;
+ volatile unsigned int *mmio_reg;
int i;
if(!(dev->path.u.pci.devfn & 7)) { // only set it in Func0
@@ -30,6 +32,21 @@ static void sata_init(struct device *dev)
res = find_resource(dev, 0x24);
base = res->base;
+
+ mmio_base = base;
+ mmio_base &= 0xfffffffc;
+ mmio_reg = (unsigned int *)( mmio_base + 0x10f0 );
+ * mmio_reg = 0x40000001;
+ mmio_reg = ( unsigned int *)( mmio_base + 0x8c );
+ * mmio_reg = 0x00ff2007;
+ mdelay( 10 );
+ * mmio_reg = 0x78592009;
+ mdelay( 10 );
+ * mmio_reg = 0x00082004;
+ mdelay( 10 );
+ * mmio_reg = 0x00002004;
+ mdelay( 10 );
+
//init PHY
printk_debug("init PHY...\n");