]> git.karo-electronics.de Git - karo-tx-redboot.git/blobdiff - packages/hal/arm/mx27/var/v2_0/include/hal_mm.h
RedBoot STK5 Release 2010-03-04
[karo-tx-redboot.git] / packages / hal / arm / mx27 / var / v2_0 / include / hal_mm.h
index b67a2107634937f27465c973c19f632ab0d1f7fc..21881c9f31b7ddfd211bf7a29dbaa2da4d1855a5 100644 (file)
@@ -165,35 +165,6 @@ union ARM_MMU_FIRST_LEVEL_DESCRIPTOR {
                ARM_ACCESS_TYPE_NO_ACCESS(13) |                 \
                ARM_ACCESS_TYPE_NO_ACCESS(14) |                 \
                ARM_ACCESS_TYPE_NO_ACCESS(15)  )
-#if 0
-/*
- * translate the virtual address of ram space to physical address
- * It is dependent on the implementation of hal_mmu_init
- */
-static unsigned long __inline__ hal_virt_to_phy(unsigned long virt)
-{
-               if(virt < 0x08000000) {
-                               return virt|0xA0000000;
-               }
-               if((virt & 0xF0000000) == 0xA0000000) {
-                               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)
-{
-               /* 0xA8000000~0xA8FFFFFF is uncacheable meory space which is mapped to SDRAM*/
-               if((phy & 0xF0000000) == 0xA0000000) {
-                               phy |= 0x08000000;
-               }
-               return phy;
-}
-#endif
 
 // ------------------------------------------------------------------------
 #endif // ifndef CYGONCE_HAL_MM_H