xref: /linux/drivers/nvmem/Makefile (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for nvmem drivers.
4#
5
6obj-$(CONFIG_NVMEM)		+= nvmem_core.o
7nvmem_core-y			:= core.o
8obj-$(CONFIG_NVMEM_LAYOUTS)	+= nvmem_layouts.o
9nvmem_layouts-y			:= layouts.o
10obj-y				+= layouts/
11
12# Devices
13obj-$(CONFIG_NVMEM_APPLE_EFUSES)	+= nvmem-apple-efuses.o
14nvmem-apple-efuses-y 			:= apple-efuses.o
15obj-$(CONFIG_NVMEM_BCM_OCOTP)		+= nvmem-bcm-ocotp.o
16nvmem-bcm-ocotp-y			:= bcm-ocotp.o
17obj-$(CONFIG_NVMEM_BRCM_NVRAM)		+= nvmem_brcm_nvram.o
18nvmem_brcm_nvram-y			:= brcm_nvram.o
19obj-$(CONFIG_NVMEM_IMX_IIM)		+= nvmem-imx-iim.o
20nvmem-imx-iim-y				:= imx-iim.o
21obj-$(CONFIG_NVMEM_IMX_OCOTP)		+= nvmem-imx-ocotp.o
22nvmem-imx-ocotp-y			:= imx-ocotp.o
23obj-$(CONFIG_NVMEM_IMX_OCOTP_ELE)	+= nvmem-imx-ocotp-ele.o
24nvmem-imx-ocotp-ele-y			:= imx-ocotp-ele.o
25obj-$(CONFIG_NVMEM_IMX_OCOTP_SCU)	+= nvmem-imx-ocotp-scu.o
26nvmem-imx-ocotp-scu-y			:= imx-ocotp-scu.o
27obj-$(CONFIG_NVMEM_JZ4780_EFUSE)	+= nvmem_jz4780_efuse.o
28nvmem_jz4780_efuse-y			:= jz4780-efuse.o
29obj-$(CONFIG_NVMEM_LAN9662_OTPC)	+= nvmem-lan9662-otpc.o
30nvmem-lan9662-otpc-y		:= lan9662-otpc.o
31obj-$(CONFIG_NVMEM_LAYERSCAPE_SFP)	+= nvmem-layerscape-sfp.o
32nvmem-layerscape-sfp-y			:= layerscape-sfp.o
33obj-$(CONFIG_NVMEM_LPC18XX_EEPROM)	+= nvmem_lpc18xx_eeprom.o
34nvmem_lpc18xx_eeprom-y			:= lpc18xx_eeprom.o
35obj-$(CONFIG_NVMEM_LPC18XX_OTP)		+= nvmem_lpc18xx_otp.o
36nvmem_lpc18xx_otp-y			:= lpc18xx_otp.o
37obj-$(CONFIG_NVMEM_MESON_EFUSE)		+= nvmem_meson_efuse.o
38nvmem_meson_efuse-y			:= meson-efuse.o
39obj-$(CONFIG_NVMEM_MESON_MX_EFUSE)	+= nvmem_meson_mx_efuse.o
40nvmem_meson_mx_efuse-y			:= meson-mx-efuse.o
41obj-$(CONFIG_NVMEM_MICROCHIP_OTPC)	+= nvmem-microchip-otpc.o
42nvmem-microchip-otpc-y			:= microchip-otpc.o
43obj-$(CONFIG_NVMEM_MTK_EFUSE)		+= nvmem_mtk-efuse.o
44nvmem_mtk-efuse-y			:= mtk-efuse.o
45obj-$(CONFIG_NVMEM_MXS_OCOTP)		+= nvmem-mxs-ocotp.o
46nvmem-mxs-ocotp-y			:= mxs-ocotp.o
47obj-$(CONFIG_NVMEM_NINTENDO_OTP)	+= nvmem-nintendo-otp.o
48nvmem-nintendo-otp-y			:= nintendo-otp.o
49obj-$(CONFIG_NVMEM_QCOM_QFPROM)		+= nvmem_qfprom.o
50nvmem_qfprom-y				:= qfprom.o
51obj-$(CONFIG_NVMEM_QCOM_SEC_QFPROM)	+= nvmem_sec_qfprom.o
52nvmem_sec_qfprom-y			:= sec-qfprom.o
53obj-$(CONFIG_NVMEM_RAVE_SP_EEPROM)	+= nvmem-rave-sp-eeprom.o
54nvmem-rave-sp-eeprom-y			:= rave-sp-eeprom.o
55obj-$(CONFIG_NVMEM_RCAR_EFUSE)		+= nvmem-rcar-efuse.o
56nvmem-rcar-efuse-y			:= rcar-efuse.o
57obj-$(CONFIG_NVMEM_RMEM) 		+= nvmem-rmem.o
58nvmem-rmem-y				:= rmem.o
59obj-$(CONFIG_NVMEM_ROCKCHIP_EFUSE)	+= nvmem_rockchip_efuse.o
60nvmem_rockchip_efuse-y			:= rockchip-efuse.o
61obj-$(CONFIG_NVMEM_ROCKCHIP_OTP)	+= nvmem-rockchip-otp.o
62nvmem-rockchip-otp-y			:= rockchip-otp.o
63obj-$(CONFIG_NVMEM_SC27XX_EFUSE)	+= nvmem-sc27xx-efuse.o
64nvmem-sc27xx-efuse-y			:= sc27xx-efuse.o
65obj-$(CONFIG_NVMEM_SNVS_LPGPR)		+= nvmem_snvs_lpgpr.o
66nvmem_snvs_lpgpr-y			:= snvs_lpgpr.o
67obj-$(CONFIG_NVMEM_SPMI_SDAM)		+= nvmem_qcom-spmi-sdam.o
68nvmem_qcom-spmi-sdam-y			+= qcom-spmi-sdam.o
69obj-$(CONFIG_NVMEM_SPRD_EFUSE)		+= nvmem_sprd_efuse.o
70nvmem_sprd_efuse-y			:= sprd-efuse.o
71obj-$(CONFIG_NVMEM_STM32_ROMEM)		+= nvmem_stm32_romem.o
72nvmem_stm32_romem-y 			:= stm32-romem.o
73nvmem_stm32_romem-$(CONFIG_NVMEM_STM32_BSEC_OPTEE_TA) += stm32-bsec-optee-ta.o
74obj-$(CONFIG_NVMEM_SUNPLUS_OCOTP)	+= nvmem_sunplus_ocotp.o
75nvmem_sunplus_ocotp-y			:= sunplus-ocotp.o
76obj-$(CONFIG_NVMEM_SUNXI_SID)		+= nvmem_sunxi_sid.o
77nvmem_sunxi_sid-y			:= sunxi_sid.o
78obj-$(CONFIG_NVMEM_U_BOOT_ENV)		+= nvmem_u-boot-env.o
79nvmem_u-boot-env-y			:= u-boot-env.o
80obj-$(CONFIG_NVMEM_UNIPHIER_EFUSE)	+= nvmem-uniphier-efuse.o
81nvmem-uniphier-efuse-y			:= uniphier-efuse.o
82obj-$(CONFIG_NVMEM_VF610_OCOTP)		+= nvmem-vf610-ocotp.o
83nvmem-vf610-ocotp-y			:= vf610-ocotp.o
84obj-$(CONFIG_NVMEM_ZYNQMP)		+= nvmem_zynqmp_nvmem.o
85nvmem_zynqmp_nvmem-y			:= zynqmp_nvmem.o
86obj-$(CONFIG_NVMEM_QORIQ_EFUSE)		+= nvmem-qoriq-efuse.o
87nvmem-qoriq-efuse-y			:= qoriq-efuse.o
88