diff options
author | Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> | 2009-02-25 14:26:42 +0900 |
---|---|---|
committer | Nobuhiro Iwamatsu <iwamatsu@nigauri.org> | 2009-03-12 23:58:30 +0900 |
commit | 06b18163b57e6b0349b0c299222d50e7b1e41e50 (patch) | |
tree | 3f1e3665b801ef1c945ecdac1b11c46f18f48cd2 /drivers/pci/pci_sh7780.c | |
parent | 06e2735eb85cbea7cecb3c308d6d078b3651b22c (diff) | |
download | u-boot-imx-06b18163b57e6b0349b0c299222d50e7b1e41e50.zip u-boot-imx-06b18163b57e6b0349b0c299222d50e7b1e41e50.tar.gz u-boot-imx-06b18163b57e6b0349b0c299222d50e7b1e41e50.tar.bz2 |
sh: Add some register value configurable to PCI of SH7780
Some register value was hardcoded for System memory size 128MB and
memory offset 0x08000000. This patch fixed the problem.
Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'drivers/pci/pci_sh7780.c')
-rw-r--r-- | drivers/pci/pci_sh7780.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/pci_sh7780.c b/drivers/pci/pci_sh7780.c index 7555d96..bc06f49 100644 --- a/drivers/pci/pci_sh7780.c +++ b/drivers/pci/pci_sh7780.c @@ -85,11 +85,11 @@ int pci_sh7780_init(struct pci_controller *hose) p4_out(SH7780_PCICR_PREFIX, SH7780_PCICR); p4_outw(0x0047, SH7780_PCICMD); - p4_out(0x07F00001, SH7780_PCILSR0); - p4_out(0x08000000, SH7780_PCILAR0); + p4_out(CONFIG_SH7780_PCI_LSR, SH7780_PCILSR0); + p4_out(CONFIG_SH7780_PCI_LAR, SH7780_PCILAR0); p4_out(0x00000000, SH7780_PCILSR1); p4_out(0, SH7780_PCILAR1); - p4_out(0x08000000, SH7780_PCIMBAR0); + p4_out(CONFIG_SH7780_PCI_BAR, SH7780_PCIMBAR0); p4_out(0x00000000, SH7780_PCIMBAR1); p4_out(0xFD000000, SH7780_PCIMBR0); |