diff options
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/mx35_3stack/lowlevel_init.S | 5 | ||||
-rw-r--r-- | board/freescale/mx35_3stack/mx35_3stack.c | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/board/freescale/mx35_3stack/lowlevel_init.S b/board/freescale/mx35_3stack/lowlevel_init.S index c4454fa..9608aa5 100644 --- a/board/freescale/mx35_3stack/lowlevel_init.S +++ b/board/freescale/mx35_3stack/lowlevel_init.S @@ -204,8 +204,9 @@ check_soc_version r1, r2 cmp r1, #CHIP_REV_2_0 - movhs r2, #CLKMODE_CONSUMER - ldrlo r2, [r0, #CLKCTL_PDR0] + ldrhs r3, =CCM_MPLL_532_HZ + bhs 1f + ldr r2, [r0, #CLKCTL_PDR0] tst r2, #CLKMODE_CONSUMER ldrne r3, =CCM_MPLL_532_HZ /* consumer path*/ ldreq r3, =CCM_MPLL_399_HZ /* auto path*/ diff --git a/board/freescale/mx35_3stack/mx35_3stack.c b/board/freescale/mx35_3stack/mx35_3stack.c index 9eea6ad..4f79942 100644 --- a/board/freescale/mx35_3stack/mx35_3stack.c +++ b/board/freescale/mx35_3stack/mx35_3stack.c @@ -322,7 +322,13 @@ int board_late_init(void) int checkboard(void) { - printf("Board: MX35 3STACK ["); + printf("Board: MX35 3STACK "); + + if (system_rev & CHIP_REV_2_0) + printf("2.0 ["); + else + printf("1.0 ["); + switch (__REG(CCM_BASE_ADDR + CLKCTL_RCSR) & 0x0F) { case 0x0000: printf("POR"); |