]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/mx1ads/mx1ads.c
mx6slevk: Include "mx6_common.h"
[karo-tx-uboot.git] / board / mx1ads / mx1ads.c
index 86b49fb60dffa67bbcf79ad9396b833af23ac985..4266048981c678f8aa2531701b37f23fa84304c8 100644 (file)
@@ -7,26 +7,14 @@
  *
  * Ming-Len Wu <minglen_wu@techware.com.tw>
  *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
 #include <netdev.h>
 /*#include <mc9328.h>*/
 #include <asm/arch/imx-regs.h>
+#include <asm/io.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -80,8 +68,6 @@ static u32 mc9328sid;
 
 int board_early_init_f(void)
 {
-       volatile unsigned int tmp;
-
        mc9328sid = SIDR;
 
        GPCR = 0x000003AB;      /* I/O pad driving strength     */
@@ -107,8 +93,8 @@ int board_early_init_f(void)
        GIUS (0) &= 0xFF3FFFFF;
        GPR (0) &= 0xFF3FFFFF;
 
-       tmp = *(unsigned int *) (0x1500000C);
-       tmp = *(unsigned int *) (0x1500000C);
+       readl(0x1500000C);
+       readl(0x1500000C);
 
        SetAsynchMode ();