162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Makefile for the Linux SuperH-specific parts of the memory manager.
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciobj-y			:= alignment.o cache.o init.o consistent.o mmap.o
762306a36Sopenharmony_ci
862306a36Sopenharmony_cicacheops-$(CONFIG_CPU_J2)		:= cache-j2.o
962306a36Sopenharmony_cicacheops-$(CONFIG_CPU_SUBTYPE_SH7619)	:= cache-sh2.o
1062306a36Sopenharmony_cicacheops-$(CONFIG_CPU_SH2A)		:= cache-sh2a.o
1162306a36Sopenharmony_cicacheops-$(CONFIG_CPU_SH3)		:= cache-sh3.o
1262306a36Sopenharmony_cicacheops-$(CONFIG_CPU_SH4)		:= cache-sh4.o flush-sh4.o
1362306a36Sopenharmony_cicacheops-$(CONFIG_SH7705_CACHE_32KB)	+= cache-sh7705.o
1462306a36Sopenharmony_cicacheops-$(CONFIG_CPU_SHX3)		+= cache-shx3.o
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ciobj-y			+= $(cacheops-y)
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_cimmu-y			:= nommu.o extable_32.o
1962306a36Sopenharmony_cimmu-$(CONFIG_MMU)	:= extable_32.o fault.o ioremap.o kmap.o \
2062306a36Sopenharmony_ci			   pgtable.o tlbex_32.o tlbflush_32.o
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ciobj-y			+= $(mmu-y)
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_cidebugfs-y			:= asids-debugfs.o
2562306a36Sopenharmony_ciifndef CONFIG_CACHE_OFF
2662306a36Sopenharmony_cidebugfs-$(CONFIG_CPU_SH4)	+= cache-debugfs.o
2762306a36Sopenharmony_ciendif
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ciifdef CONFIG_MMU
3062306a36Sopenharmony_cidebugfs-$(CONFIG_CPU_SH4)	+= tlb-debugfs.o
3162306a36Sopenharmony_citlb-$(CONFIG_CPU_SH3)		:= tlb-sh3.o
3262306a36Sopenharmony_citlb-$(CONFIG_CPU_SH4)		:= tlb-sh4.o tlb-urb.o
3362306a36Sopenharmony_citlb-$(CONFIG_CPU_HAS_PTEAEX)	:= tlb-pteaex.o tlb-urb.o
3462306a36Sopenharmony_ciobj-y				+= $(tlb-y)
3562306a36Sopenharmony_ciendif
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ciobj-$(CONFIG_DEBUG_FS)		+= $(debugfs-y)
3862306a36Sopenharmony_ciobj-$(CONFIG_HUGETLB_PAGE)	+= hugetlbpage.o
3962306a36Sopenharmony_ciobj-$(CONFIG_PMB)		+= pmb.o
4062306a36Sopenharmony_ciobj-$(CONFIG_NUMA)		+= numa.o
4162306a36Sopenharmony_ciobj-$(CONFIG_IOREMAP_FIXED)	+= ioremap_fixed.o
4262306a36Sopenharmony_ciobj-$(CONFIG_UNCACHED_MAPPING)	+= uncached.o
4362306a36Sopenharmony_ciobj-$(CONFIG_HAVE_SRAM_POOL)	+= sram.o
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ciGCOV_PROFILE_pmb.o := n
46