1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-12 21:46:44 +02:00

MIPS: qemu-malta: add PCI support

Qemu emulates the Galileo GT64120 System Controller
which provides a CPU bus to PCI bus bridge.

The patch adds driver for this bridge and enables
PCI support for the emulated Malta board.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
This commit is contained in:
Gabor Juhos
2013-05-22 03:57:42 +00:00
committed by Tom Rini
parent ac12984de8
commit feaa606627
5 changed files with 216 additions and 0 deletions

View File

@@ -17,6 +17,10 @@
*/
#define CONFIG_QEMU_MALTA
#define CONFIG_PCI
#define CONFIG_PCI_GT64120
#define CONFIG_PCI_PNP
/*
* CPU Configuration
*/
@@ -104,6 +108,8 @@
#undef CONFIG_CMD_NET
#undef CONFIG_CMD_NFS
#define CONFIG_CMD_PCI
#define CONFIG_SYS_LONGHELP /* verbose help, undef to save memory */
#endif /* _QEMU_MALTA_CONFIG_H */

19
include/pci_gt64120.h Normal file
View File

@@ -0,0 +1,19 @@
/*
* Copyright (C) 2013 Gabor Juhos <juhosg@openwrt.org>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*/
#ifndef _PCI_GT64120_H
#define _PCI_GT64120_H
void gt64120_pci_init(void *regs, unsigned long sys_bus, unsigned long sys_phys,
unsigned long sys_size, unsigned long mem_bus,
unsigned long mem_phys, unsigned long mem_size,
unsigned long io_bus, unsigned long io_phys,
unsigned long io_size);
#endif /* _PCI_GT64120_H */