diff options
author | Aneesh V <aneesh@ti.com> | 2011-07-21 09:10:12 -0400 |
---|---|---|
committer | U-Boot <uboot@aari01-12.(none)> | 2011-08-03 12:49:19 +0200 |
commit | 095aea293b70114dda0d958788a8acc15e3cd665 (patch) | |
tree | 7b8aac0828ca5a801aac25bb0e2c7ac8c3626189 /include | |
parent | 2ae610f030c376323515321280352b3fe6278a0f (diff) | |
download | u-boot-imx-095aea293b70114dda0d958788a8acc15e3cd665.zip u-boot-imx-095aea293b70114dda0d958788a8acc15e3cd665.tar.gz u-boot-imx-095aea293b70114dda0d958788a8acc15e3cd665.tar.bz2 |
omap4: calculate EMIF register values
Calculate EMIF register values based on AC timing parameters
from the SDRAM datasheet and the DDR frequency rather than
using the hard-coded values.
For a new board the user doen't have to go through the tedious
process of calculating the register values. Instead, just
provide the AC timings from the device data sheet as input
and the driver will automatically calculate the register values.
Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/omap4_panda.h | 5 | ||||
-rw-r--r-- | include/configs/omap4_sdp4430.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/configs/omap4_panda.h b/include/configs/omap4_panda.h index 1daffb7..9f82ef4 100644 --- a/include/configs/omap4_panda.h +++ b/include/configs/omap4_panda.h @@ -237,4 +237,9 @@ #define CONFIG_SYS_PL310_BASE 0x48242000 #endif +/* Defines for SDRAM init */ +#ifndef CONFIG_SYS_EMIF_PRECALCULATED_TIMING_REGS +#define CONFIG_SYS_DEFAULT_LPDDR2_TIMINGS +#endif + #endif /* __CONFIG_H */ diff --git a/include/configs/omap4_sdp4430.h b/include/configs/omap4_sdp4430.h index 68ffa87..6df1c3d 100644 --- a/include/configs/omap4_sdp4430.h +++ b/include/configs/omap4_sdp4430.h @@ -243,4 +243,9 @@ #define CONFIG_SYS_PL310_BASE 0x48242000 #endif +/* Defines for SDRAM init */ +#ifndef CONFIG_SYS_EMIF_PRECALCULATED_TIMING_REGS +#define CONFIG_SYS_DEFAULT_LPDDR2_TIMINGS +#endif + #endif /* __CONFIG_H */ |