From 5f7373e548c7862364511891596a97f18b945978 Mon Sep 17 00:00:00 2001 From: Fred Fan Date: Mon, 23 Feb 2009 14:08:23 +0800 Subject: 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 --- include/asm-arm/arch-mx35/mx35.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'include/asm-arm/arch-mx35') 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 */ -- cgit v1.1