aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Sakoman <steve@sakoman.com>2012-03-02 14:20:31 -0800
committerJohn Rigby <john.rigby@linaro.org>2012-08-16 10:58:07 -0600
commitb6283d5ea06f66ead3cdebf3c8bb5a18a042e534 (patch)
treedd35497c4ae54ab79b9cd14f37209c776e4041d9
parent20129db2cad68d1095fdcc9e443df9eb91902eeb (diff)
downloadu-boot-linaro-stable-b6283d5ea06f66ead3cdebf3c8bb5a18a042e534.tar.gz
overo: support 200Mhz memory on 37XX
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--board/overo/overo.c30
1 files changed, 22 insertions, 8 deletions
diff --git a/board/overo/overo.c b/board/overo/overo.c
index f97387083..fdb541d2f 100644
--- a/board/overo/overo.c
+++ b/board/overo/overo.c
@@ -169,16 +169,30 @@ void get_board_mem_timings(u32 *mcfg, u32 *ctrla, u32 *ctrlb, u32 *rfr_ctrl,
*rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_165MHz;
break;
case REVISION_1: /* Micron 256MB/512MB, 1/2 banks of 256MB */
- *mcfg = MICRON_V_MCFG_165(256 << 20);
- *ctrla = MICRON_V_ACTIMA_165;
- *ctrlb = MICRON_V_ACTIMB_165;
- *rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_165MHz;
+ if (get_cpu_family() != CPU_OMAP36XX) {
+ *mcfg = MICRON_V_MCFG_165(256 << 20);
+ *ctrla = MICRON_V_ACTIMA_165;
+ *ctrlb = MICRON_V_ACTIMB_165;
+ *rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_165MHz;
+ } else {
+ *mcfg = MICRON_V_MCFG_200(256 << 20);
+ *ctrla = MICRON_V_ACTIMA_200;
+ *ctrlb = MICRON_V_ACTIMB_200;
+ *rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_200MHz;
+ }
break;
case REVISION_2: /* Hynix 256MB/512MB, 1/2 banks of 256MB */
- *mcfg = HYNIX_V_MCFG_165(256 << 20);
- *ctrla = HYNIX_V_ACTIMA_165;
- *ctrlb = HYNIX_V_ACTIMB_165;
- *rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_165MHz;
+ if (get_cpu_family() != CPU_OMAP36XX) {
+ *mcfg = HYNIX_V_MCFG_165(256 << 20);
+ *ctrla = HYNIX_V_ACTIMA_165;
+ *ctrlb = HYNIX_V_ACTIMB_165;
+ *rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_165MHz;
+ } else {
+ *mcfg = HYNIX_V_MCFG_200(256 << 20);
+ *ctrla = HYNIX_V_ACTIMA_200;
+ *ctrlb = HYNIX_V_ACTIMB_200;
+ *rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_200MHz;
+ }
break;
default:
*mcfg = MICRON_V_MCFG_165(128 << 20);