summaryrefslogtreecommitdiffstats
path: root/include/linux/bcma/bcma_soc.h
diff options
context:
space:
mode:
authorHauke Mehrtens2011-07-23 01:20:08 +0200
committerJohn W. Linville2011-08-08 20:29:25 +0200
commitecd177c21640e92b059a71139f5850243a8f0942 (patch)
tree70ed92f7b63087bec0a6036dca1c81403d65c86d /include/linux/bcma/bcma_soc.h
parentbcma: add functions to scan cores needed on SoCs (diff)
downloadkernel-qcow2-linux-ecd177c21640e92b059a71139f5850243a8f0942.tar.gz
kernel-qcow2-linux-ecd177c21640e92b059a71139f5850243a8f0942.tar.xz
kernel-qcow2-linux-ecd177c21640e92b059a71139f5850243a8f0942.zip
bcma: add SOC bus
This patch adds support for using bcma on a Broadcom SoC as the system bus. An SoC like the bcm4716 could register this bus and use it to searches for the bcma cores and register the devices on this bus. BCMA_HOSTTYPE_NONE was intended for SoCs at first but BCMA_HOSTTYPE_SOC is a better name. Acked-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Acked-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/bcma/bcma_soc.h')
-rw-r--r--include/linux/bcma/bcma_soc.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/bcma/bcma_soc.h b/include/linux/bcma/bcma_soc.h
new file mode 100644
index 000000000000..4203c5593b9f
--- /dev/null
+++ b/include/linux/bcma/bcma_soc.h
@@ -0,0 +1,16 @@
+#ifndef LINUX_BCMA_SOC_H_
+#define LINUX_BCMA_SOC_H_
+
+#include <linux/bcma/bcma.h>
+
+struct bcma_soc {
+ struct bcma_bus bus;
+ struct bcma_device core_cc;
+ struct bcma_device core_mips;
+};
+
+int __init bcma_host_soc_register(struct bcma_soc *soc);
+
+int bcma_bus_register(struct bcma_bus *bus);
+
+#endif /* LINUX_BCMA_SOC_H_ */