MIPS: Loongson: Split common loongson source code out
To share common loongson source code between all of the loongson-based machines. there is a need to split it out of the fuloong-2e/ directory. at the same time, other according tuning is needed. the machine-specific parts are defined as macros in relative header file, pci.h, mem.h, machine.h. Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
committed by
Ralf Baechle
parent
8e4971175a
commit
85749d24bc
@ -24,8 +24,14 @@
|
||||
|
||||
extern struct pci_ops bonito64_pci_ops;
|
||||
|
||||
#define LOONGSON2E_PCI_MEM_START BONITO_PCILO1_BASE
|
||||
#define LOONGSON2E_PCI_MEM_END (BONITO_PCILO1_BASE + 0x04000000 * 2)
|
||||
#define LOONGSON2E_PCI_IO_START 0x00004000UL
|
||||
#ifdef CONFIG_LEMOTE_FULOONG2E
|
||||
|
||||
/* this pci memory space is mapped by pcimap in pci.c */
|
||||
#define LOONGSON_PCI_MEM_START BONITO_PCILO1_BASE
|
||||
#define LOONGSON_PCI_MEM_END (BONITO_PCILO1_BASE + 0x04000000 * 2)
|
||||
/* this is an offset from mips_io_port_base */
|
||||
#define LOONGSON_PCI_IO_START 0x00004000UL
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* !__ASM_MACH_LOONGSON_PCI_H_ */
|
||||
|
Reference in New Issue
Block a user