You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
689 B
29 lines
689 B
7 months ago
|
subdir-ccflags-y += -I$(srctree)/drivers/huanglong/fmc/include
|
||
|
|
||
|
ifeq ($(CONFIG_SOCT_DRV_BUILDIN),y)
|
||
|
obj-$(CONFIG_MTD_FMC100) += fmc.o
|
||
|
else
|
||
|
obj-m += fmc.o
|
||
|
endif
|
||
|
|
||
|
fmc-objs := common/flash_cache.o common/regop_intf.o fmc100/fmc100_host.o
|
||
|
|
||
|
ifneq ($(CONFIG_MTD_FMC100),)
|
||
|
ifneq ($(CONFIG_MTD_FMC100_SPINOR),)
|
||
|
fmc-objs += fmc100/fmc100_spinor.o spinor/spinor_driver.o spinor/spinor_ids.o
|
||
|
endif
|
||
|
|
||
|
ifneq ($(CONFIG_MTD_FMC100_NAND)_$(CONFIG_MTD_FMC100_SPINAND),_)
|
||
|
fmc-objs += fmc100/fmc100_xnand.o
|
||
|
endif
|
||
|
|
||
|
ifneq ($(CONFIG_ARCH_RESERVED19)_$(CONFIG_ARCH_HI3751V811),_)
|
||
|
fmc-objs += fmc100/fmc100_hal_t9.o
|
||
|
endif
|
||
|
|
||
|
ifneq ($(CONFIG_ARCH_RESERVED23),)
|
||
|
fmc-objs += fmc100/fmc100_hal_reserved23.o
|
||
|
endif
|
||
|
endif
|
||
|
|