From faea4c59abb37c80b530df0b5901eb3a89fb2dea Mon Sep 17 00:00:00 2001 From: bxshi Date: Thu, 2 Nov 2006 16:02:33 +0000 Subject: 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 Acked-by: Ronald G. Minnich git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2486 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/southbridge/broadcom/bcm5785/bcm5785_sata.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/southbridge') 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"); -- cgit v1.2.3