summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHaiying Wang <Haiying.Wang@freescale.com>2009-05-21 15:34:14 -0400
committerKumar Gala <galak@kernel.crashing.org>2009-06-12 17:16:59 -0500
commit7211fbfa18f3061858696150ee6e9e093d9eceae (patch)
tree6be78918f7bc3679ab9327b4859812eafae342ff /include
parentb3d7f20f43a0f8d11c65e2f92153b5512b11580c (diff)
downloadu-boot-imx-7211fbfa18f3061858696150ee6e9e093d9eceae.zip
u-boot-imx-7211fbfa18f3061858696150ee6e9e093d9eceae.tar.gz
u-boot-imx-7211fbfa18f3061858696150ee6e9e093d9eceae.tar.bz2
drivers/qe: Change QE RISC ALLOCATION to support 4 RISCs
Also define the QE_RISC_ALLOCATION_RISCs to MACROs instead of using enum, and define MAX_QE_RISC for QE based silicons. Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com> Acked-by: Timur Tabi <timur@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-ppc/immap_qe.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-ppc/immap_qe.h b/include/asm-ppc/immap_qe.h
index 44c0c0a..41e4583 100644
--- a/include/asm-ppc/immap_qe.h
+++ b/include/asm-ppc/immap_qe.h
@@ -607,4 +607,12 @@ extern qe_map_t *qe_immr;
#define QE_MURAM_SIZE 0x4000UL
#endif
+#if defined(CONFIG_MPC8323)
+#define MAX_QE_RISC 1
+#elif defined(CONFIG_MPC8569)
+#define MAX_QE_RISC 4
+#else
+#define MAX_QE_RISC 2
+#endif
+
#endif /* __IMMAP_QE_H__ */