mx53ard: Move register masks into imx-regs.h
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 24 Apr 2013 14:44:27 +0000 (14:44 +0000)
committerStefano Babic <sbabic@denx.de>
Thu, 25 Apr 2013 19:48:21 +0000 (21:48 +0200)
imx-regs.h is more appropriate location for containing register masks.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
arch/arm/include/asm/arch-mx5/imx-regs.h
board/freescale/mx53ard/mx53ard.c

index a71cc13e2ab498d0ea615d4dad98641786a33165..6aff3be1528678b7c3af8f7766303eb0f4960ad5 100644 (file)
 /* M4IF */
 #define M4IF_FBPM0     0x40
 #define M4IF_FIDBP     0x48
+#define M4IF_GENP_WEIM_MM_MASK         0x00000001
+#define WEIM_GCR2_MUX16_BYP_GRANT_MASK 0x00001000
 
 /* Assuming 24MHz input clock with doubler ON */
 /*                            MFI         PDF */
index 8d433a3d8688b9712703652d3a7b5b8d265e1c05..32c4d5f7095e4622c80ffe8112f4db2c8e43c6b2 100644 (file)
@@ -62,8 +62,6 @@ void dram_init_banksize(void)
 static void setup_iomux_nand(void)
 {
        u32 i, reg;
-       #define M4IF_GENP_WEIM_MM_MASK          0x00000001
-       #define WEIM_GCR2_MUX16_BYP_GRANT_MASK  0x00001000
 
        reg = __raw_readl(M4IF_BASE_ADDR + 0xc);
        reg &= ~M4IF_GENP_WEIM_MM_MASK;