summaryrefslogtreecommitdiff
path: root/include/configs/TQM85xx.h
diff options
context:
space:
mode:
authorWolfgang Grandegger <wg@grandegger.com>2008-06-05 13:12:05 +0200
committerAndrew Fleming-AFLEMING <afleming@freescale.com>2008-06-10 23:59:44 -0500
commitd9ee843d54c54776e1fdb86336ce554906a87331 (patch)
tree3b0d55c9ed3680defecf3b345ff19305cb315e0f /include/configs/TQM85xx.h
parent518d5cfe72916323c746af1647764459914f555f (diff)
downloadu-boot-imx-d9ee843d54c54776e1fdb86336ce554906a87331.zip
u-boot-imx-d9ee843d54c54776e1fdb86336ce554906a87331.tar.gz
u-boot-imx-d9ee843d54c54776e1fdb86336ce554906a87331.tar.bz2
TQM85xx: Support for Intel 82527 compatible CAN controller
This patch adds initialization of the UPMC RAM to support up to two Intel 82527 compatible CAN controller on the TQM85xx modules. Signed-off-by: Thomas Waehner <thomas.waehner@tqs.de> Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Diffstat (limited to 'include/configs/TQM85xx.h')
-rw-r--r--include/configs/TQM85xx.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/configs/TQM85xx.h b/include/configs/TQM85xx.h
index 432c155..17df118 100644
--- a/include/configs/TQM85xx.h
+++ b/include/configs/TQM85xx.h
@@ -52,6 +52,8 @@
#define CONFIG_FSL_LAW 1 /* Use common FSL init code */
+#undef CONFIG_CAN_DRIVER /* CAN Driver support */
+
/*
* sysclk for MPC85xx
*
@@ -199,6 +201,15 @@
#define CFG_PROMPT_HUSH_PS2 "> "
#endif
+/* CAN */
+#ifdef CONFIG_CAN_DRIVER
+#define CFG_CAN_BASE 0xE3000000 /* CAN base address */
+#define CFG_CAN_OR_AM 0xFFFF8000 /* 32 KiB address mask */
+#define CFG_OR2_CAN (CFG_CAN_OR_AM | OR_UPM_BI)
+#define CFG_BR2_CAN ((CFG_CAN_BASE & BR_BA) | \
+ BR_PS_8 | BR_MS_UPMC | BR_V)
+#endif /* CONFIG_CAN_DRIVER */
+
/*
* I2C
*/