X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fasm-arm%2Farch-mx27%2Fimx-regs.h;h=8b9065f95c11e2dcdadd9978729b482ede941d33;hb=d496c3e0ad77be0cd0993bfa7ecba752aa999e22;hp=d36a6da96d32142ffc381f89f5d0d13ae34915f7;hpb=0052a051f60a043f1730b3a46f23b3c7b0eb7820;p=u-boot diff --git a/include/asm-arm/arch-mx27/imx-regs.h b/include/asm-arm/arch-mx27/imx-regs.h index d36a6da96d..8b9065f95c 100644 --- a/include/asm-arm/arch-mx27/imx-regs.h +++ b/include/asm-arm/arch-mx27/imx-regs.h @@ -204,6 +204,7 @@ struct iim_regs { u32 res[0x1F0]; u32 iim_bank_area0[0x100]; }; + #endif #define IMX_IO_BASE 0x10000000 @@ -253,6 +254,16 @@ struct iim_regs { #define SDCS1_SEL (1 << 1) #define SDCS0_SEL (1 << 0) +#ifndef __ASSEMBLY__ +static inline long mxc_get_nfc_info(void) +{ + struct system_control_regs *sc_regs = + (struct system_control_regs *)IMX_SYSTEM_CTL_BASE; + return readl(&sc_regs->fmcr); +} +#define IMX_NFC_IS_16BIT(fmcr) (fmcr & NF_16BIT_SEL) +#define IMX_NFC_IS_2KPAGE(fmcr) (!(fmcr & NF_FMS)) +#endif /* important definition of some bits of WCR */ #define WCR_WDE 0x04