From e4d34492017c95e4041ea0c581e1ab8d1d49381b Mon Sep 17 00:00:00 2001 From: Stefano Babic Date: Fri, 5 Mar 2010 17:54:37 +0100 Subject: MX51: removed warnings for the mx51evk The patch removes warnings at compile time and provides some cleanup code: - Removed comment on NAND (not yet supported) from lowlevel_init.S - Removed NFMS bit definition from imx-regs.h The bit is only related to MX.25/35 and can lead to confusion - Moved is_soc_rev() to soc specific code (removed from mx51evk.c) Signed-off-by: Stefano Babic --- board/freescale/mx51evk/mx51evk.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'board/freescale/mx51evk/mx51evk.c') diff --git a/board/freescale/mx51evk/mx51evk.c b/board/freescale/mx51evk/mx51evk.c index df0e8ed..af1b0bd 100644 --- a/board/freescale/mx51evk/mx51evk.c +++ b/board/freescale/mx51evk/mx51evk.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -48,16 +49,6 @@ u32 get_board_rev(void) return system_rev; } -static inline void set_board_rev(int rev) -{ - system_rev |= (rev & 0xF) << 8; -} - -inline int is_soc_rev(int rev) -{ - return (system_rev & 0xFF) - rev; -} - int dram_init(void) { gd->bd->bi_dram[0].start = PHYS_SDRAM_1; -- cgit v1.1