162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Makefile for memory devices
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciobj-$(CONFIG_DDR)		+= jedec_ddr_data.o
762306a36Sopenharmony_ciifeq ($(CONFIG_DDR),y)
862306a36Sopenharmony_ciobj-$(CONFIG_OF)		+= of_memory.o
962306a36Sopenharmony_ciendif
1062306a36Sopenharmony_ciobj-$(CONFIG_ARM_PL172_MPMC)	+= pl172.o
1162306a36Sopenharmony_ciobj-$(CONFIG_ATMEL_EBI)		+= atmel-ebi.o
1262306a36Sopenharmony_ciobj-$(CONFIG_BRCMSTB_DPFE)	+= brcmstb_dpfe.o
1362306a36Sopenharmony_ciobj-$(CONFIG_BRCMSTB_MEMC)	+= brcmstb_memc.o
1462306a36Sopenharmony_ciobj-$(CONFIG_BT1_L2_CTL)	+= bt1-l2-ctl.o
1562306a36Sopenharmony_ciobj-$(CONFIG_TI_AEMIF)		+= ti-aemif.o
1662306a36Sopenharmony_ciobj-$(CONFIG_TI_EMIF)		+= emif.o
1762306a36Sopenharmony_ciobj-$(CONFIG_OMAP_GPMC)		+= omap-gpmc.o
1862306a36Sopenharmony_ciobj-$(CONFIG_FSL_CORENET_CF)	+= fsl-corenet-cf.o
1962306a36Sopenharmony_ciobj-$(CONFIG_FSL_IFC)		+= fsl_ifc.o
2062306a36Sopenharmony_ciobj-$(CONFIG_MVEBU_DEVBUS)	+= mvebu-devbus.o
2162306a36Sopenharmony_ciobj-$(CONFIG_JZ4780_NEMC)	+= jz4780-nemc.o
2262306a36Sopenharmony_ciobj-$(CONFIG_MTK_SMI)		+= mtk-smi.o
2362306a36Sopenharmony_ciobj-$(CONFIG_DA8XX_DDRCTL)	+= da8xx-ddrctl.o
2462306a36Sopenharmony_ciobj-$(CONFIG_PL353_SMC)		+= pl353-smc.o
2562306a36Sopenharmony_ciobj-$(CONFIG_RENESAS_RPCIF)	+= renesas-rpc-if.o
2662306a36Sopenharmony_ciobj-$(CONFIG_STM32_FMC2_EBI)	+= stm32-fmc2-ebi.o
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ciobj-$(CONFIG_SAMSUNG_MC)	+= samsung/
2962306a36Sopenharmony_ciobj-$(CONFIG_TEGRA_MC)		+= tegra/
3062306a36Sopenharmony_ciobj-$(CONFIG_TI_EMIF_SRAM)	+= ti-emif-sram.o
3162306a36Sopenharmony_ciobj-$(CONFIG_FPGA_DFL_EMIF)	+= dfl-emif.o
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_citi-emif-sram-objs		:= ti-emif-pm.o ti-emif-sram-pm.o
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ci$(obj)/ti-emif-sram-pm.o: $(obj)/ti-emif-asm-offsets.h
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ci$(obj)/ti-emif-asm-offsets.h: $(obj)/emif-asm-offsets.s FORCE
3862306a36Sopenharmony_ci	$(call filechk,offsets,__TI_EMIF_ASM_OFFSETS_H__)
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_citargets += emif-asm-offsets.s
4162306a36Sopenharmony_ciclean-files += ti-emif-asm-offsets.h
42