summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-05-22 03:57:42 +0000
committerTom Rini <trini@ti.com>2013-07-24 09:51:04 -0400
commitfeaa60662768dcc97fdf7c593583876ce4e1564c (patch)
tree72703233c476cba89131d99c9cc769c3d0d1ba87 /include
parentac12984de8e2239a19c054ffcc615ad4a2e57cc4 (diff)
downloadu-boot-imx-feaa60662768dcc97fdf7c593583876ce4e1564c.zip
u-boot-imx-feaa60662768dcc97fdf7c593583876ce4e1564c.tar.gz
u-boot-imx-feaa60662768dcc97fdf7c593583876ce4e1564c.tar.bz2
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>
Diffstat (limited to 'include')
-rw-r--r--include/configs/qemu-malta.h6
-rw-r--r--include/pci_gt64120.h19
2 files changed, 25 insertions, 0 deletions
diff --git a/include/configs/qemu-malta.h b/include/configs/qemu-malta.h
index 436bb49..ef44d3d 100644
--- a/include/configs/qemu-malta.h
+++ b/include/configs/qemu-malta.h
@@ -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 */
diff --git a/include/pci_gt64120.h b/include/pci_gt64120.h
new file mode 100644
index 0000000..b6d58d8
--- /dev/null
+++ b/include/pci_gt64120.h
@@ -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 */