summaryrefslogtreecommitdiff
path: root/include/asm-arm
diff options
context:
space:
mode:
authorLily Zhang <r58066@freescale.com>2010-12-29 13:30:14 +0800
committerLily Zhang <r58066@freescale.com>2010-12-30 10:15:03 +0800
commit5709f69b6f5c19b429ad5164130ce4b511f131ea (patch)
treef6658d5cf0d02c202301b815274e87967840939c /include/asm-arm
parentf61132fec4ac3249e088e168608407bcf720c8c5 (diff)
downloadu-boot-imx-5709f69b6f5c19b429ad5164130ce4b511f131ea.zip
u-boot-imx-5709f69b6f5c19b429ad5164130ce4b511f131ea.tar.gz
u-boot-imx-5709f69b6f5c19b429ad5164130ce4b511f131ea.tar.bz2
ENGR00136075 MX53: Add SMD board support
Add MX53 SMD support: - Use DDR3 script for SMD board from Mike Kjar: "Rita_init_LCB_CMOS.inc" - Set the default CPU core frequency as 1GHZ. The following functions are tested on SMD board: - SD/MMC boot, read, write via SDHC1 - eMMC4.4 boot, read, write via SDHC3. - SATA boot, read, write. To support SATA boot via internal clock, please ensure the fuse "SATA_ALT_CLK_REF" was blown. - FEC - UART - clk command - iim command Signed-off-by: Liu Ying <b17645@freescale.com> Signed-off-by: Jason Chen <b02280@freescale.com> Signed-off-by: Terry Lv <r65388@freescale.com> Signed-off-by: Anish Trivedi <anish@freescale.com> Signed-off-by: Lily Zhang <r58066@freescale.com>
Diffstat (limited to 'include/asm-arm')
-rw-r--r--include/asm-arm/arch-mx53/mmu.h16
-rw-r--r--include/asm-arm/arch-mx53/mx53.h4
2 files changed, 20 insertions, 0 deletions
diff --git a/include/asm-arm/arch-mx53/mmu.h b/include/asm-arm/arch-mx53/mmu.h
index 5063528..88712c1 100644
--- a/include/asm-arm/arch-mx53/mmu.h
+++ b/include/asm-arm/arch-mx53/mmu.h
@@ -140,8 +140,15 @@ union ARM_MMU_FIRST_LEVEL_DESCRIPTOR {
*/
inline unsigned long iomem_to_phys(unsigned long virt)
{
+#if defined(CONFIG_MX53_SMD)
+ if (virt >= 0x90000000 && virt <= 0xafffffff)
+ return (unsigned long)((virt - 0x90000000) + PHYS_SDRAM_1);
+ if (virt >= 0xD0000000 && virt <= 0xEfffffff)
+ return (unsigned long)((virt - 0xD0000000) + PHYS_SDRAM_2);
+#else
if (virt >= 0xB0000000)
return (unsigned long)((virt - 0xB0000000) + PHYS_SDRAM_1);
+#endif
return (unsigned long)virt;
}
@@ -153,9 +160,18 @@ inline unsigned long iomem_to_phys(unsigned long virt)
void *__ioremap(unsigned long offset, size_t size, unsigned long flags)
{
if (1 == flags) {
+#if defined(CONFIG_MX53_SMD)
+ if (offset >= PHYS_SDRAM_1 &&
+ offset < (unsigned long)(PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE))
+ return (void *)((offset - PHYS_SDRAM_1) + 0x90000000);
+ else if (offset >= PHYS_SDRAM_1 &&
+ offset < (unsigned long)(PHYS_SDRAM_2 + PHYS_SDRAM_2_SIZE))
+ return (void *)((offset - PHYS_SDRAM_2) + 0xD0000000);
+#else
if (offset >= PHYS_SDRAM_1 &&
offset < (unsigned long)(PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE))
return (void *)((offset - PHYS_SDRAM_1) + 0xB0000000);
+#endif
else
return NULL;
} else
diff --git a/include/asm-arm/arch-mx53/mx53.h b/include/asm-arm/arch-mx53/mx53.h
index eb83ae5..1a59998 100644
--- a/include/asm-arm/arch-mx53/mx53.h
+++ b/include/asm-arm/arch-mx53/mx53.h
@@ -346,6 +346,10 @@
/* Assuming 24MHz input clock with doubler ON */
/* MFI PDF */
+#define DP_OP_1000 ((10 << 4) + ((1 - 1) << 0))
+#define DP_MFD_1000 (12 - 1)
+#define DP_MFN_1000 5
+
#define DP_OP_850 ((8 << 4) + ((1 - 1) << 0))
#define DP_MFD_850 (48 - 1)
#define DP_MFN_850 41