MX51: Add register definitions
PATCH v3 3/11 MX51: Add register definitions
The patch add header files to support the Freescale i.MX51 processor, setting definitions for internal registers.
--- 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 | 282 +++++++++++++++++++++++++++++++ 3 files changed, 524 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
include/asm-arm/arch-mx51/asm-offsets.h new file +50 -0
@@ -0,0 +1,50 @@ +/* +* needed for cpu/arm_cortexa8/mx51/lowlevel_init.S +* +* These should be auto-generated +*/ +/* CCM */ +#define CLKCTL_CCR 0x00 +#define CLKCTL_CCDR 0x04 +#define CLKCTL_CSR 0x08 +#define CLKCTL_CCSR 0x0C +#define CLKCTL_CACRR 0x10 +#define CLKCTL_CBCDR 0x14 +#define CLKCTL_CBCMR 0x18 +#define CLKCTL_CSCMR1 0x1C +#define CLKCTL_CSCMR2 0x20 +#define CLKCTL_CSCDR1 0x24 +#define CLKCTL_CS1CDR 0x28 +#define CLKCTL_CS2CDR 0x2C +#define CLKCTL_CDCDR 0x30 +#define CLKCTL_CHSCCDR 0x34 +#define CLKCTL_CSCDR2 0x38 +#define CLKCTL_CSCDR3 0x3C +#define CLKCTL_CSCDR4 0x40 +#define CLKCTL_CWDR 0x44 +#define CLKCTL_CDHIPR 0x48 +#define CLKCTL_CDCR 0x4C +#define CLKCTL_CTOR 0x50 +#define CLKCTL_CLPCR 0x54 +#define CLKCTL_CISR 0x58 +#define CLKCTL_CIMR 0x5C +#define CLKCTL_CCOSR 0x60 +#define CLKCTL_CGPR 0x64 +#define CLKCTL_CCGR0 0x68 +#define CLKCTL_CCGR1 0x6C +#define CLKCTL_CCGR2 0x70 +#define CLKCTL_CCGR3 0x74 +#define CLKCTL_CCGR4 0x78 +#define CLKCTL_CCGR5 0x7C +#define CLKCTL_CCGR6 0x80 +#define CLKCTL_CMEOR 0x84 + +/* DPLL */ +#define PLL_DP_CTL 0x00 +#define PLL_DP_CONFIG 0x04 +#define PLL_DP_OP 0x08 +#define PLL_DP_MFD 0x0C +#define PLL_DP_MFN 0x10 +#define PLL_DP_HFS_OP 0x1C +#define PLL_DP_HFS_MFD 0x20 +#define PLL_DP_HFS_MFN 0x24
include/asm-arm/arch-mx51/crm_regs.h new file +192 -0
192 lines not on this page · raw message
include/asm-arm/arch-mx51/imx-regs.h new file +282 -0
282 lines not on this page · raw message
Signature · 1 line
1.6.3.3
PATCH v5 3/11 MX51: Add register definitions
The patch add header files to support the Freescale i.MX51 processor, setting definitions for internal registers.
---
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
include/asm-arm/arch-mx51/asm-offsets.h new file +50 -0
@@ -0,0 +1,50 @@ +/* +* needed for cpu/arm_cortexa8/mx51/lowlevel_init.S +* +* These should be auto-generated +*/ +/* CCM */ +#define CLKCTL_CCR 0x00 +#define CLKCTL_CCDR 0x04 +#define CLKCTL_CSR 0x08 +#define CLKCTL_CCSR 0x0C +#define CLKCTL_CACRR 0x10 +#define CLKCTL_CBCDR 0x14 +#define CLKCTL_CBCMR 0x18 +#define CLKCTL_CSCMR1 0x1C +#define CLKCTL_CSCMR2 0x20 +#define CLKCTL_CSCDR1 0x24 +#define CLKCTL_CS1CDR 0x28 +#define CLKCTL_CS2CDR 0x2C +#define CLKCTL_CDCDR 0x30 +#define CLKCTL_CHSCCDR 0x34 +#define CLKCTL_CSCDR2 0x38 +#define CLKCTL_CSCDR3 0x3C +#define CLKCTL_CSCDR4 0x40 +#define CLKCTL_CWDR 0x44 +#define CLKCTL_CDHIPR 0x48 +#define CLKCTL_CDCR 0x4C +#define CLKCTL_CTOR 0x50 +#define CLKCTL_CLPCR 0x54 +#define CLKCTL_CISR 0x58 +#define CLKCTL_CIMR 0x5C +#define CLKCTL_CCOSR 0x60 +#define CLKCTL_CGPR 0x64 +#define CLKCTL_CCGR0 0x68 +#define CLKCTL_CCGR1 0x6C +#define CLKCTL_CCGR2 0x70 +#define CLKCTL_CCGR3 0x74 +#define CLKCTL_CCGR4 0x78 +#define CLKCTL_CCGR5 0x7C +#define CLKCTL_CCGR6 0x80 +#define CLKCTL_CMEOR 0x84 + +/* DPLL */ +#define PLL_DP_CTL 0x00 +#define PLL_DP_CONFIG 0x04 +#define PLL_DP_OP 0x08 +#define PLL_DP_MFD 0x0C +#define PLL_DP_MFN 0x10 +#define PLL_DP_HFS_OP 0x1C +#define PLL_DP_HFS_MFD 0x20 +#define PLL_DP_HFS_MFN 0x24
include/asm-arm/arch-mx51/crm_regs.h new file +192 -0
192 lines not on this page · raw message
include/asm-arm/arch-mx51/imx-regs.h new file +272 -0
272 lines not on this page · raw message
Signature · 1 line
1.6.3.3
PATCH v5 3/11 MX51: Add register definitions
Hi, Babic
Quoted 28 lines
-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Stefano Babic
Sent: 2010?3?5? 3:22
To: u-boot at lists.denx.de
Subject: [U-Boot] [PATCH V5 03/11] MX51: Add register definitionsThe patch add header files to support the Freescale i.MX51 processor, setting definitions for internal registers.
Signed-off-by Stefano Babic <[email protected]>Signed-off-by Fred Fan <[email protected]>---
Changes since last version:
Removed enum
mxc_clock(moved inclock.h) fromimx-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
include/asm-arm/arch-mx51/imx-regs.h line 265
Quoted 6 lines
include/asm-arm/arch-mx51/imx-regs.h new file +6
-0+/*! +* 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.
Quoted 16 lines
include/asm-arm/arch-mx51/imx-regs.h new file +7
-1+ +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 at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
PATCH v5 3/11 MX51: Add register definitions
Quoted 2 lines · Liu Hui-R64343 wrote:
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.
Agree, removed.
Regards,
Stefano
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================
PATCH v6 3/11 MX51: Add register definitions
In reply to Stefano BabicThe patch add header files to support the Freescale i.MX51 processor, setting definitions for internal registers.
---
Changes since last version(V5):
Comments by Liu Hui:
Removed NFMS bit definition from imx-regs.h
The bit is only related to MX.25/35 and can lead to confusion
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 | 261 +++++++++++++++++++++++++++++++ 3 files changed, 503 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
include/asm-arm/arch-mx51/asm-offsets.h new file +50 -0
@@ -0,0 +1,50 @@ +/* +* needed for cpu/arm_cortexa8/mx51/lowlevel_init.S +* +* These should be auto-generated +*/ +/* CCM */ +#define CLKCTL_CCR 0x00 +#define CLKCTL_CCDR 0x04 +#define CLKCTL_CSR 0x08 +#define CLKCTL_CCSR 0x0C +#define CLKCTL_CACRR 0x10 +#define CLKCTL_CBCDR 0x14 +#define CLKCTL_CBCMR 0x18 +#define CLKCTL_CSCMR1 0x1C +#define CLKCTL_CSCMR2 0x20 +#define CLKCTL_CSCDR1 0x24 +#define CLKCTL_CS1CDR 0x28 +#define CLKCTL_CS2CDR 0x2C +#define CLKCTL_CDCDR 0x30 +#define CLKCTL_CHSCCDR 0x34 +#define CLKCTL_CSCDR2 0x38 +#define CLKCTL_CSCDR3 0x3C +#define CLKCTL_CSCDR4 0x40 +#define CLKCTL_CWDR 0x44 +#define CLKCTL_CDHIPR 0x48 +#define CLKCTL_CDCR 0x4C +#define CLKCTL_CTOR 0x50 +#define CLKCTL_CLPCR 0x54 +#define CLKCTL_CISR 0x58 +#define CLKCTL_CIMR 0x5C +#define CLKCTL_CCOSR 0x60 +#define CLKCTL_CGPR 0x64 +#define CLKCTL_CCGR0 0x68 +#define CLKCTL_CCGR1 0x6C +#define CLKCTL_CCGR2 0x70 +#define CLKCTL_CCGR3 0x74 +#define CLKCTL_CCGR4 0x78 +#define CLKCTL_CCGR5 0x7C +#define CLKCTL_CCGR6 0x80 +#define CLKCTL_CMEOR 0x84 + +/* DPLL */ +#define PLL_DP_CTL 0x00 +#define PLL_DP_CONFIG 0x04 +#define PLL_DP_OP 0x08 +#define PLL_DP_MFD 0x0C +#define PLL_DP_MFN 0x10 +#define PLL_DP_HFS_OP 0x1C +#define PLL_DP_HFS_MFD 0x20 +#define PLL_DP_HFS_MFN 0x24
include/asm-arm/arch-mx51/crm_regs.h new file +192 -0
192 lines not on this page · raw message
include/asm-arm/arch-mx51/imx-regs.h new file +261 -0
261 lines not on this page · raw message
Signature · 1 line
1.6.3.3