]> git.kernelconcepts.de Git - karo-tx-redboot.git/blobdiff - packages/hal/arm/mx25/karo/v1_0/include/plf_mmap.h
RedBoot STK5 Release 2010-03-04
[karo-tx-redboot.git] / packages / hal / arm / mx25 / karo / v1_0 / include / plf_mmap.h
index b703569e7f1907697e04e8a8672958a3f101ee45..d2a32a21843373c9c96f5a3651f4b86db029d3a4 100644 (file)
        (paddr) = _v_;                                                                          \
        CYG_MACRO_END
 
-/*
- * translate the virtual address of ram space to physical address
- * It is dependent on the implementation of hal_mmu_init
- */
-#if 1
 /*
  * translate the virtual address of ram space to physical address
  * It is dependent on the implementation of hal_mmu_init
@@ -111,31 +106,6 @@ static unsigned long __inline__ hal_ioremap_nocache(unsigned long phy)
        }
        return phy;
 }
-#else
-static unsigned long __inline__ hal_virt_to_phy(unsigned long virt)
-{
-       if (virt < 0x08000000) {
-               return virt|0x80000000;
-       }
-       if((virt & 0xF0000000) == 0x80000000) {
-               return virt&(~0x08000000);
-       }
-       return virt;
-}
-
-/*
- * remap the physical address of ram space to uncacheable virtual address space
- * It is dependent on the implementation of hal_mmu_init
- */
-static unsigned long __inline__ hal_ioremap_nocache(unsigned long phy)
-{
-       /* 0x88000000~0x87FFFFFF is uncacheable meory space which is mapped to SDRAM*/
-       if ((phy & 0xF0000000) == 0x80000000) {
-               phy |= 0x08000000;
-       }
-       return phy;
-}
-#endif
 
 //---------------------------------------------------------------------------
 #endif // CYGONCE_HAL_BOARD_PLATFORM_PLF_MMAP_H