u-boot 2011.12: fix beagleboard C4 memory detection
[glsdk/meta-ti-glsdk.git] / recipes-bsp / u-boot / u-boot / 2011.12 / 0009-Beagleboard-Correct-memory-size-on-rev-C4.patch
1 From 588d0e7259e17f302cb79d12ed0f47410a0d8697 Mon Sep 17 00:00:00 2001
2 From: robertcnelson@gmail.com <robertcnelson@gmail.com>
3 Date: Fri, 27 Jan 2012 07:09:42 +0000
4 Subject: [PATCH 09/10] Beagleboard: Correct memory size on rev C4
6 Beagleboard: Correct memory size on rev C4
8 The logic for the rev C4 boards was missing one of the cases
9 (variant with Micron NAND and 2x128MB).
11 Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
12 Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
13 ---
14  board/ti/beagle/beagle.c |    7 +++++++
15  1 files changed, 7 insertions(+), 0 deletions(-)
17 diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c
18 index 5ea50d1..4555977 100644
19 --- a/board/ti/beagle/beagle.c
20 +++ b/board/ti/beagle/beagle.c
21 @@ -169,6 +169,13 @@ void get_board_mem_timings(u32 *mcfg, u32 *ctrla, u32 *ctrlb, u32 *rfr_ctrl,
22                         *ctrlb = NUMONYX_V_ACTIMB_165;
23                         *rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_165MHz;
24                         break;
25 +               } else if (pop_mfr == NAND_MFR_MICRON && pop_id == 0xba) {
26 +                       /* Beagleboard Rev C4, 512MB Nand/256MB DDR*/
27 +                       *mcfg = MICRON_V_MCFG_165(128 << 20);
28 +                       *ctrla = MICRON_V_ACTIMA_165;
29 +                       *ctrlb = MICRON_V_ACTIMB_165;
30 +                       *rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_165MHz;
31 +                       break;
32                 } else if (pop_mfr == NAND_MFR_MICRON && pop_id == 0xbc) {
33                         /* Beagleboard Rev C5, 256MB DDR */
34                         *mcfg = MICRON_V_MCFG_200(256 << 20);
35 -- 
36 1.7.2.5