Hi, Babic > -----Original Message----- > From: u-boot-boun...@lists.denx.de > [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Stefano Babic > Sent: 2010年3月5日 3:22 > To: u-boot@lists.denx.de > Subject: [U-Boot] [PATCH V5 03/11] MX51: Add register definitions > > The patch add header files to support the Freescale i.MX51 > processor, setting definitions for internal registers. > > Signed-off-by: Stefano Babic <sba...@denx.de> > Signed-off-by: Fred Fan <fanyef...@gmail.com> > --- > > Changes since last version: > > Removed enum mxc_clock (moved in clock.h) from imx-regs.h > (required to remove warnings during compilation). > > include/asm-arm/arch-mx51/asm-offsets.h | 50 ++++++ > include/asm-arm/arch-mx51/crm_regs.h | 192 ++++++++++++++++++++++ > include/asm-arm/arch-mx51/imx-regs.h | 272 > +++++++++++++++++++++++++++++++ > 3 files changed, 514 insertions(+), 0 deletions(-) create > mode 100644 include/asm-arm/arch-mx51/asm-offsets.h > create mode 100644 include/asm-arm/arch-mx51/crm_regs.h > create mode 100644 include/asm-arm/arch-mx51/imx-regs.h > > +/*! > + * NFMS bit in RCSR register for pagesize of nandflash */ > +#define NFMS (*((volatile u32 *)(CCM_BASE_ADDR+0x18))) > +#define NFMS_BIT 8 > +#define NFMS_NF_DWIDTH 14 > +#define NFMS_NF_PG_SZ 8
This NFMS register definion is wrong and more MX51 does not have such kind of NFMS register. Which is in I.MX25/35. Please remove it to avoid confusion. > + > +extern unsigned int get_board_rev(void); extern int is_soc_rev(int > +rev); > + > +#endif /* __ASSEMBLER__*/ > + > +#endif /* __ASM_ARCH_MXC_MX51_H__ */ > -- > 1.6.3.3 > > _______________________________________________ > U-Boot mailing list > U-Boot@lists.denx.de > http://lists.denx.de/mailman/listinfo/u-boot > > _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot