diff mbox series

[2/9] scsi: bht: Add Bayhub module's Kconfig and Makefile for compiling Bayhub's SD/MMC Card interface driver

Message ID 20231013083306.10261-1-liuchang_125125@163.com
State New
Headers show
Series [1/9] scsi: Update Kconfig and Makefile for supporting Bayhub's SD/MMC Card interface driver | expand

Commit Message

liuchang_125125@163.com Oct. 13, 2023, 8:33 a.m. UTC
From: Charl Liu <liuchang_125125@163.com>

1.Add Bayhub module's config "SCSI_BHT"
2.Add Bayhub module's Makefile

Signed-off-by: Charl Liu <liuchang_125125@163.com>
---
Change in V1:
Add Bayhub module's Kconfig and Makefile for compiling Bayhub's
SD/MMC Card interface driver.
---
 drivers/scsi/bht/Kconfig  | 10 ++++++++++
 drivers/scsi/bht/Makefile | 18 ++++++++++++++++++
 2 files changed, 28 insertions(+)
 create mode 100644 drivers/scsi/bht/Kconfig
 create mode 100644 drivers/scsi/bht/Makefile
diff mbox series

Patch

diff --git a/drivers/scsi/bht/Kconfig b/drivers/scsi/bht/Kconfig
new file mode 100644
index 000000000000..f6d224799885
--- /dev/null
+++ b/drivers/scsi/bht/Kconfig
@@ -0,0 +1,10 @@ 
+# SPDX-License-Identifier: GPL-2.0-only
+config SCSI_BHT
+	tristate "Bayhub's SD/MMC Card Interface Driver"
+	depends on PCI && SCSI
+	help
+	  This driver supports the Bayhub's SD/MMC host controllers.
+
+	  If you have the Bayhub's SD/MMC host controllers, say Y or M here.
+
+	  If unsure, say N.
diff --git a/drivers/scsi/bht/Makefile b/drivers/scsi/bht/Makefile
new file mode 100644
index 000000000000..65fa352c51b2
--- /dev/null
+++ b/drivers/scsi/bht/Makefile
@@ -0,0 +1,18 @@ 
+# SPDX-License-Identifier: GPL-2.0-only
+INCLUDE = -I$(KERNEL_SOURCE)/include	\
+	-I$(KERNEL_SOURCE)/drivers/scsi	\
+	-I$(PWD)
+
+ccflags-y += -g $(INCLUDE)
+
+OBJ = linux_os/linux_base.o linux_os/linux_api.o linux_os/linux_scsi.o
+CARD_OBJ = card/cardcommon.o card/cardinterface.o card/mmc.o card/sd.o card/thermal.o card/uhs2.o card/card_ddr200_support.o card/output_tuning.o
+HOST_OBJ = host/host.o host/hostven.o host/cmdhandler.o host/irqhandler.o host/transhandler.o
+MAIN_OBJ = main/cfgmng.o main/thread.o main/autotimerfunc.o main/geniofunc.o main/pmfunc.o main/reqmng.o main/testcase.o
+TQ_OBJ = tagqueue/tagqueue.o  tagqueue/tqadma2.o tagqueue/tqadma3.o tagqueue/tqadma_sdma_like.o tagqueue/tqpolicy.o tagqueue/tqsdma.o tagqueue/tq_merge.o
+UTIL_OBJ = util/util.o util/debug.o
+
+obj-$(CONFIG_SCSI_BHT) := bht-sd.o
+bht-sd-objs := $(OBJ) $(CARD_OBJ) $(HOST_OBJ) $(MAIN_OBJ) $(TQ_OBJ) $(UTIL_OBJ)
+
+