summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorMarkus Klotzbuecher <mk@creamnet.de>2007-01-09 14:57:10 +0100
committerMarkus Klotzbuecher <mk@pollux.denx.de>2007-01-09 14:57:10 +0100
commitd28707dbce1e9ac2017ad051da4133bf22b4204f (patch)
tree94c5168762a51c4eb8bb861848ddd7664eb3bd60 /include/configs
parentf4eb54529bb3664c3a562e488b460fe075f79d67 (diff)
downloadu-boot-imx-d28707dbce1e9ac2017ad051da4133bf22b4204f.zip
u-boot-imx-d28707dbce1e9ac2017ad051da4133bf22b4204f.tar.gz
u-boot-imx-d28707dbce1e9ac2017ad051da4133bf22b4204f.tar.bz2
Add support for the tms320671x host port interface (HPI)
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/spc1920.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/configs/spc1920.h b/include/configs/spc1920.h
index 9d3609a..6e99699 100644
--- a/include/configs/spc1920.h
+++ b/include/configs/spc1920.h
@@ -330,6 +330,40 @@
MBMR_TLFB_4X) /* 0x04804114 */ /* 0x10802114 */
+/*
+ * DSP Host Port Interface CS3
+ */
+#define CFG_SPC1920_HPI_BASE 0x90000000
+#define CFG_PRELIM_OR3_AM 0xF0000000
+
+#define CFG_OR3_PRELIM (CFG_PRELIM_OR3_AM | \
+ OR_G5LS | \
+ OR_SCY_0_CLK | \
+ OR_BI)
+
+#define CFG_BR3_PRELIM ((CFG_SPC1920_HPI_BASE & BR_BA_MSK) | \
+ BR_MS_UPMA | \
+ BR_PS_16 | \
+ BR_V);
+
+#define CFG_MAMR (MAMR_GPL_A4DIS | \
+ MAMR_RLFA_5X | \
+ MAMR_WLFA_5X)
+
+#define CONFIG_SPC1920_HPI_TEST
+
+#ifdef CONFIG_SPC1920_HPI_TEST
+#define HPI_REG(x) (*((volatile u16 *) (CFG_SPC1920_HPI_BASE + x)))
+#define HPI_HPIC_1 HPI_REG(0)
+#define HPI_HPIC_2 HPI_REG(2)
+#define HPI_HPIA_1 HPI_REG(0x2000000)
+#define HPI_HPIA_2 HPI_REG(0x2000000 + 2)
+#define HPI_HPID_INC_1 HPI_REG(0x1000000)
+#define HPI_HPID_INC_2 HPI_REG(0x1000000 + 2)
+#define HPI_HPID_NOINC_1 HPI_REG(0x3000000)
+#define HPI_HPID_NOINC_2 HPI_REG(0x3000000 + 2)
+#endif /* CONFIG_SPC1920_HPI_TEST */
+
/* PLD CS5 */
#define CFG_SPC1920_PLD_BASE 0x80000000
#define CFG_PRELIM_OR5_AM 0xffff8000