unsigned int eptcfg;
        int psize;
 
-#ifdef CONFIG_PPC_E500
        unsigned int mmucfg = mfspr(SPRN_MMUCFG);
        int fsl_mmu = mmu_has_feature(MMU_FTR_TYPE_FSL_E);
 
 
                goto out;
        }
-#endif
 out:
        /* Cleanup array and print summary */
        pr_info("MMU: Supported page sizes\n");
         */
 
        switch (book3e_htw_mode) {
-#ifdef CONFIG_PPC_E500
        case PPC_HTW_E6500:
                extlb_level_exc = EX_TLB_SIZE;
                patch_exception(0x1c0, exc_data_tlb_miss_e6500_book3e);
                patch_exception(0x1e0, exc_instruction_tlb_miss_e6500_book3e);
                break;
-#endif
        }
        pr_info("MMU: Book3E HW tablewalk %s\n",
                book3e_htw_mode != PPC_HTW_NONE ? "enabled" : "not supported");
        }
        mtspr(SPRN_MAS4, mas4);
 
-#ifdef CONFIG_PPC_E500
        if (mmu_has_feature(MMU_FTR_TYPE_FSL_E)) {
                unsigned int num_cams;
                bool map = true;
                        linear_map_top = map_mem_in_cams(linear_map_top,
                                                         num_cams, false, true);
        }
-#endif
 
        /* A sync won't hurt us after mucking around with
         * the MMU configuration
        /* Look for HW tablewalk support */
        setup_mmu_htw();
 
-#ifdef CONFIG_PPC_E500
        if (mmu_has_feature(MMU_FTR_TYPE_FSL_E)) {
                if (book3e_htw_mode == PPC_HTW_NONE) {
                        extlb_level_exc = EX_TLB_SIZE;
                                exc_instruction_tlb_miss_bolted_book3e);
                }
        }
-#endif
 
        /* Set the global containing the top of the linear mapping
         * for use by the TLB miss code
 
 static void __init early_mmu_set_memory_limit(void)
 {
-#ifdef CONFIG_PPC_E500
        if (mmu_has_feature(MMU_FTR_TYPE_FSL_E)) {
                /*
                 * Limit memory so we dont have linear faults.
                 */
                memblock_enforce_memory_limit(linear_map_top);
        }
-#endif
 
        memblock_set_current_limit(linear_map_top);
 }
         * We crop it to the size of the first MEMBLOCK to
         * avoid going over total available memory just in case...
         */
-#ifdef CONFIG_PPC_E500
        if (early_mmu_has_feature(MMU_FTR_TYPE_FSL_E)) {
                unsigned long linear_sz;
                unsigned int num_cams;
 
                ppc64_rma_size = min_t(u64, linear_sz, 0x40000000);
        } else
-#endif
                ppc64_rma_size = min_t(u64, first_memblock_size, 0x40000000);
 
        /* Finally limit subsequent allocations */