]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - patches/0143-ENGR00125757-mx28-change-the-boot-mode-offset-to-TO.patch
imported Ka-Ro specific additions to U-Boot 2009.08 for TX28
[karo-tx-uboot.git] / patches / 0143-ENGR00125757-mx28-change-the-boot-mode-offset-to-TO.patch
1 From 9da7bd8c3a3bc34d6a3014edb86827964ff94dcb Mon Sep 17 00:00:00 2001
2 From: Aisheng.Dong <b29396@freescale.com>
3 Date: Fri, 30 Jul 2010 16:02:19 +0800
4 Subject: [PATCH] ENGR00125757 mx28: change the boot mode offset to TO1.2 version
5
6 The boot mode offset has been changed in TO1.2.
7
8 Signed-off-by: Aisheng.Dong <b29396@freescale.com>
9 ---
10  include/configs/mx28_evk.h |   13 ++++++++++---
11  1 files changed, 10 insertions(+), 3 deletions(-)
12
13 diff --git a/include/configs/mx28_evk.h b/include/configs/mx28_evk.h
14 index 81c8e9e..3148fd2 100644
15 --- a/include/configs/mx28_evk.h
16 +++ b/include/configs/mx28_evk.h
17 @@ -25,6 +25,7 @@
18   * SoC configurations
19   */
20  #define CONFIG_MX28                            /* i.MX28 SoC */
21 +#define CONFIG_MX28_TO1_2
22  #define CONFIG_SYS_HZ          1000            /* Ticks per second */
23  /* ROM loads UBOOT into DRAM */
24  #define CONFIG_SKIP_RELOCATE_UBOOT
25 @@ -143,10 +144,16 @@
26  #define CONFIG_ENV_SIZE                        (0x20000 - 0x400) /* 127 KB */
27  #define CONFIG_DYNAMIC_MMC_DEVNO
28  
29 -/* The global boot mode has been detected by Boot ROM and a boot mode value
30 - * is stored at address of 0x0001a7f0.
31 +/* The global boot mode will be detected by ROM code and
32 + * a boot mode value will be stored at fixed address:
33 + * TO1.0 addr 0x0001a7f0
34 + * TO1.2 addr 0x00019BF0
35   */
36 -#define GLOBAL_BOOT_MODE_ADDR 0x0001a7f0
37 +#ifndef MX28_EVK_TO1_0
38 + #define GLOBAL_BOOT_MODE_ADDR 0x00019BF0
39 +#else
40 + #define GLOBAL_BOOT_MODE_ADDR 0x0001a7f0
41 +#endif
42  #define BOOT_MODE_SD0 0x9
43  #define BOOT_MODE_SD1 0xa
44  
45 -- 
46 1.5.4.4
47