]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
karo: tx51: use .error asm instruction to print error message if DCD is too large
authorLothar Waßmann <LW@KARO-electronics.de>
Fri, 8 Aug 2014 12:40:50 +0000 (14:40 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 8 Aug 2014 12:40:50 +0000 (14:40 +0200)
board/karo/tx51/lowlevel_init.S

index 9038b3a84fed7434b3b179337cb19fb8d765c4dd..af0f6017081809e3d7a4469b215570ba11f1a410 100644 (file)
@@ -192,8 +192,8 @@ dcd_start:
        DCDGEN(4, IOMUXC_BASE_ADDR + 0x574, 0x20a4)     @ NANDF_D1
        DCDGEN(4, IOMUXC_BASE_ADDR + 0x578, 0x20a4)     @ NANDF_D0
 dcd_end:
-       .ifgt   dcd_end - dcd_start - 720
-       DCD too large!
+       .ifgt   dcd_end - dcd_start - 60 * 12
+       .error "DCD too large!"
        .endif
 image_len:
        .long   CONFIG_U_BOOT_IMG_SIZE