siimage: do clocking register posting earlier in setup_mmio_siimage()

Do clocking register posting earlier in setup_mmio_siimage()
to match code in init_chipset_siimage().

This is a preparation for the next patch which merges PCI and MMIO
code paths together.
Acked-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 16bb69c1
...@@ -521,7 +521,9 @@ static unsigned int setup_mmio_siimage (struct pci_dev *dev, const char *name) ...@@ -521,7 +521,9 @@ static unsigned int setup_mmio_siimage (struct pci_dev *dev, const char *name)
writeb(tmpbyte & ~0x20, ioaddr + 0x4A); writeb(tmpbyte & ~0x20, ioaddr + 0x4A);
break; break;
} }
tmpbyte = readb(ioaddr + 0x4A);
writeb( 0x72, ioaddr + 0xA1); writeb( 0x72, ioaddr + 0xA1);
writew( 0x328A, ioaddr + 0xA2); writew( 0x328A, ioaddr + 0xA2);
writel(0x62DD62DD, ioaddr + 0xA4); writel(0x62DD62DD, ioaddr + 0xA4);
...@@ -540,8 +542,6 @@ static unsigned int setup_mmio_siimage (struct pci_dev *dev, const char *name) ...@@ -540,8 +542,6 @@ static unsigned int setup_mmio_siimage (struct pci_dev *dev, const char *name)
writel(0x00680000, ioaddr + 0x1C8); writel(0x00680000, ioaddr + 0x1C8);
} }
tmpbyte = readb(ioaddr + 0x4A);
proc_reports_siimage(dev, (tmpbyte>>4), name); proc_reports_siimage(dev, (tmpbyte>>4), name);
return 1; return 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment