summaryrefslogtreecommitdiff
path: root/target/linux/adm5120-2.6/files/arch/mips/pci/ops-adm5120.c
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-03-29 22:21:43 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-03-29 22:21:43 +0000
commitd1eb342ea702e1185e8fe9753fbc56c744066851 (patch)
treea86688d21e649096832442cb55f2aeb4ece855e8 /target/linux/adm5120-2.6/files/arch/mips/pci/ops-adm5120.c
parentef53f5db7cbf46a97269ac620e2ac2c383255056 (diff)
downloadmtk-20170518-d1eb342ea702e1185e8fe9753fbc56c744066851.zip
mtk-20170518-d1eb342ea702e1185e8fe9753fbc56c744066851.tar.gz
mtk-20170518-d1eb342ea702e1185e8fe9753fbc56c744066851.tar.bz2
Cleanup system code and use definitions
SVN-Revision: 6760
Diffstat (limited to 'target/linux/adm5120-2.6/files/arch/mips/pci/ops-adm5120.c')
-rw-r--r--target/linux/adm5120-2.6/files/arch/mips/pci/ops-adm5120.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/target/linux/adm5120-2.6/files/arch/mips/pci/ops-adm5120.c b/target/linux/adm5120-2.6/files/arch/mips/pci/ops-adm5120.c
index 80b8531..91dae89 100644
--- a/target/linux/adm5120-2.6/files/arch/mips/pci/ops-adm5120.c
+++ b/target/linux/adm5120-2.6/files/arch/mips/pci/ops-adm5120.c
@@ -1,6 +1,8 @@
/*
* Copyright (C) ADMtek Incorporated.
* Copyright (C) 2005 Jeroen Vreeken (pe1rxq@amsat.org)
+ * Copyright (C) 2007 Gabor Juhos <juhosg@freemail.hu>
+ * Copyright (C) 2007 OpenWrt.org
*/
#include <linux/autoconf.h>
@@ -9,11 +11,13 @@
#include <linux/kernel.h>
#include <linux/init.h>
-volatile u32* pci_config_address_reg = (volatile u32*)KSEG1ADDR(0x115ffff0);
-volatile u32* pci_config_data_reg = (volatile u32*)KSEG1ADDR(0x115ffff8);
+#include <adm5120_defs.h>
+
+volatile u32* pci_config_address_reg = (volatile u32*)KSEG1ADDR(ADM5120_PCICFG_ADDR);
+volatile u32* pci_config_data_reg = (volatile u32*)KSEG1ADDR(ADM5120_PCICFG_DATA);
#define PCI_ENABLE 0x80000000
-
+
static int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where,
int size, uint32_t *val)
{