armv8: ls1043ardb: fix types of variables
authorQianyu Gong <qianyu.gong@nxp.com>
Tue, 26 Apr 2016 04:51:43 +0000 (12:51 +0800)
committerYork Sun <york.sun@nxp.com>
Wed, 18 May 2016 15:51:45 +0000 (08:51 -0700)
Using u16 for cfg_rcw_src and u8 for sd1refclk_sel is enough.

Signed-off-by: Gong Qianyu <Qianyu.Gong@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
board/freescale/ls1043ardb/ls1043ardb.c

index 2ed5ce16ed5d373924b1420afc15a25c7fbe70e8..b1691393e6e71cd9cdba5639e812d9ead91d2869 100644 (file)
@@ -30,12 +30,12 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int checkboard(void)
 {
-       static const char *freq[3] = {"100.00MHZ", "156.25MHZ"};
+       static const char *freq[2] = {"100.00MHZ", "156.25MHZ"};
 #ifndef CONFIG_SD_BOOT
        u8 cfg_rcw_src1, cfg_rcw_src2;
-       u32 cfg_rcw_src;
+       u16 cfg_rcw_src;
 #endif
-       u32 sd1refclk_sel;
+       u8 sd1refclk_sel;
 
        printf("Board: LS1043ARDB, boot from ");