]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
MX35: mx35pdk: wrong board revision
authorStefano Babic <sbabic@denx.de>
Mon, 9 Apr 2012 11:29:06 +0000 (13:29 +0200)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 16 Apr 2012 12:53:59 +0000 (14:53 +0200)
The board revision is detected accessing to the pmic,
that is not available before relocation (I2C).
This generates the following error:

CPU:   Freescale i.MX35 rev 2.0 at 532 MHz.
Reset cause: WDOG
<reg num> = 7 is invalid. Should be less than 0
Board: MX35 PDK 1.0

The revision number is wrong, as a default value is printed
(tested on a mx35pdk Rev. 2.0).

Move the output in the board_late_init(), when
pmic can be accessed.

Signed-off-by: Stefano Babic <sbabic@denx.de>
board/freescale/mx35pdk/mx35pdk.c
include/configs/mx35pdk.h

index cce712354f53fd64b61dd243ad88be8d69e240d6..bc415b846262749d4b5ec920e72ee3f3746f57b8 100644 (file)
@@ -258,17 +258,6 @@ int board_late_init(void)
        val |= 0x80;
        mc9sdz60_reg_write(MC9SDZ60_REG_RESET_1, val);
 
-       return 0;
-}
-
-int checkboard(void)
-{
-       /*
-        * Be sure that I2C is initialized to check
-        * the board revision
-        */
-       i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
-
        /* Print board revision */
        printf("Board: MX35 PDK %d.0\n", ((get_board_rev() >> 8) + 1) & 0x0F);
 
index 1e03639adfb40339360e9b9ea29927f9065e9dde..de4b954a52fa3d225aa8766e1004cf0a294a1e1b 100644 (file)
@@ -34,7 +34,6 @@
 #define CONFIG_MX35_HCLK_FREQ  24000000
 
 #define CONFIG_DISPLAY_CPUINFO
-#define CONFIG_DISPLAY_BOARDINFO
 
 /* Set TEXT at the beginning of the NOR flash */
 #define CONFIG_SYS_TEXT_BASE   0xA0000000