summaryrefslogtreecommitdiff
path: root/include/asm-arm/arch-mx35/mx35.h
diff options
context:
space:
mode:
authorFred Fan <r01011@freescale.com>2009-02-23 14:08:23 +0800
committerFred Fan <r01011@freescale.com>2009-09-10 13:57:39 +0800
commit5f7373e548c7862364511891596a97f18b945978 (patch)
tree6de1435253d69c7398d7571ca08ff4803839133b /include/asm-arm/arch-mx35/mx35.h
parent5f4c0867c01da00f9d092750acbea5fc6430359a (diff)
downloadu-boot-imx-5f7373e548c7862364511891596a97f18b945978.zip
u-boot-imx-5f7373e548c7862364511891596a97f18b945978.tar.gz
u-boot-imx-5f7373e548c7862364511891596a97f18b945978.tar.bz2
ENGR00104583 MX35 can not boot up kernel
uboot can not boot kernel. There are no more messages excepts uncompression message. The root cause is wrong romfile version offset. Signed-off-by: Fred Fan <r01011@freescale.com>
Diffstat (limited to 'include/asm-arm/arch-mx35/mx35.h')
-rw-r--r--include/asm-arm/arch-mx35/mx35.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/asm-arm/arch-mx35/mx35.h b/include/asm-arm/arch-mx35/mx35.h
index 2ed85d3..c96092c 100644
--- a/include/asm-arm/arch-mx35/mx35.h
+++ b/include/asm-arm/arch-mx35/mx35.h
@@ -221,6 +221,12 @@
#define FDO_PAGE_SPARE_VAL 0x8
#define NAND_BUF_NUM 8
+#define CHIP_REV_1_0 0x10
+#define CHIP_REV_2_0 0x20
+
+#define BOARD_REV_1_0 0x0
+#define BOARD_REV_2_0 0x1
+
#ifndef __ASSEMBLER__
enum mxc_clock {
@@ -239,12 +245,16 @@ MXC_UART_CLK,
#define NFMS_NF_DWIDTH 14
#define NFMS_NF_PG_SZ 8
+
extern unsigned int mxc_get_clock(enum mxc_clock clk);
+extern unsigned int get_board_rev(void);
+extern int is_soc_rev(int rev);
#define fixup_before_linux \
{ \
volatile unsigned long *l2cc_ctl = (unsigned long *)0x30000100;\
- *l2cc_ctl = 1;\
+ if (is_soc_rev(CHIP_REV_2_0) < 0) \
+ *l2cc_ctl = 1;\
}
#endif /* __ASSEMBLER__*/
#endif /* __ASM_ARCH_MX35_H */