aboutsummaryrefslogtreecommitdiffstats
path: root/board/freescale/t104xrdb/ddr.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2015-07-31 20:16:21 -0400
committerTom Rini <trini@konsulko.com>2015-07-31 20:16:21 -0400
commit8968b914be7bfd67d179d0395898bd9db67aaad1 (patch)
treea7640f8f1f5166ed7c62df773984cfcebb33bbf2 /board/freescale/t104xrdb/ddr.h
parent352bc77054ceb10a580f871ef4008fa9b0e82be6 (diff)
parentf2af1c37a09cdd28a78fde4ee4275aedf59be620 (diff)
downloadu-boot-midas-8968b914be7bfd67d179d0395898bd9db67aaad1.tar.gz
u-boot-midas-8968b914be7bfd67d179d0395898bd9db67aaad1.tar.bz2
u-boot-midas-8968b914be7bfd67d179d0395898bd9db67aaad1.zip
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Diffstat (limited to 'board/freescale/t104xrdb/ddr.h')
-rw-r--r--board/freescale/t104xrdb/ddr.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/board/freescale/t104xrdb/ddr.h b/board/freescale/t104xrdb/ddr.h
index ab1c32d10e..b9c02f7fe0 100644
--- a/board/freescale/t104xrdb/ddr.h
+++ b/board/freescale/t104xrdb/ddr.h
@@ -28,6 +28,9 @@ static const struct board_specific_parameters udimm0[] = {
* num| hi| rank| clk| wrlvl | wrlvl
* ranks| mhz| GB |adjst| start | ctl2
*/
+#ifdef CONFIG_SYS_FSL_DDR4
+ {2, 1600, 4, 4, 6, 0x07090A0c, 0x0e0f100a},
+#elif defined(CONFIG_SYS_FSL_DDR3)
{2, 833, 4, 4, 6, 0x06060607, 0x08080807},
{2, 833, 0, 4, 6, 0x06060607, 0x08080807},
{2, 1350, 4, 4, 7, 0x0708080A, 0x0A0B0C09},
@@ -40,10 +43,14 @@ static const struct board_specific_parameters udimm0[] = {
{1, 1350, 0, 4, 7, 0x0708080A, 0x0A0B0C09},
{1, 1666, 4, 4, 7, 0x0808090B, 0x0C0D0E0A},
{1, 1666, 0, 4, 7, 0x0808090B, 0x0C0D0E0A},
+#else
+#error DDR type not defined
+#endif
{}
};
+#endif
+
static const struct board_specific_parameters *udimms[] = {
udimm0,
};
-#endif