From patchwork Tue Sep 27 23:08:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 12991470 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0CFEEC6FA82 for ; Tue, 27 Sep 2022 23:09:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NCidEmXoIYrXKWnoLIHpxsGfp/rvyDligeudaAbtuRQ=; b=TwZDMMXMfCvEOF LCg0kcM7Bhp+k6INPJKDrGArFppIAaTPrbXI4o/9z/lPrOhw4FXRhJWVScdQDBBMikMiQsgYiAZ2q 2e913Jssx7VdVTnil8RJDE1hreRjhIhsMIVdysbLMuAxyMo5Kta+NYrnrfQWTQuW9aANhykHPWlwZ V63a6XOK2s0mfyg4Xg6NOp74qmV5R1e7UXQe4dnGp8tgKq2LcQM+2PBmTZha7J6s7JrdtJXSuyblj PCJFwp5bv46KaSSrkvzhAmBKc208qM6574rROv5d9a7UwnHikAHr8ANenXRm+hEnwPRZ8/RY45Rnc 4IZ9lQA0bLxanCbIsSpA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1odJgq-00D7QH-L7; Tue, 27 Sep 2022 23:08:36 +0000 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1odJgS-00D7Nx-2m for linux-arm-kernel@lists.infradead.org; Tue, 27 Sep 2022 23:08:13 +0000 Received: by mail-pj1-x1031.google.com with SMTP id r8-20020a17090a560800b00205eaaba073so148623pjf.1 for ; Tue, 27 Sep 2022 16:08:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=yeSMLt0QcWRozcoJu3RXA4AvoS1ZsHlIkOCTmTowx7I=; b=XLcAMNhytbBtG/x4qe4JVVXoU/oRahrzMNPA9XzB+cuOn8igGK7LvuqiDYN/KeMHep mEBzCU6kLdYlrA3J/EU3V9wS2irZUAE8JMJEsNz+88j4p7Ys0wisPZy0WomNwOWjOxYF hU9Rcpc+uPty0rtryu/ueazfzufLAL97Iops1jTr9An0Oy0cltL9JI0xUNdu0a5Y8nm9 Fm5wb0hS8ZL9jaZD5CarJEhwytuP56ZeBIsQfTBITPWFLRxLN+tzpkAAhVx4veStuSGT SNhhIzPYoQcfyTADq7Bv6CfpdV9chQVSYo+myWL1CkJZoCjtF7pjeIFZsPwY6KRwSFR/ tkgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=yeSMLt0QcWRozcoJu3RXA4AvoS1ZsHlIkOCTmTowx7I=; b=OjqJsGtJVNvuyS9+Ogrfg8Q8hSn3qzkj/TIx6PXZjyA8YasmM+qijExUlgHZMbgib0 hQgwkGdT0FiJSsTuMBePpXys2goSeH20FRoIow5wIQp8Zz/YA1Ca8foF4wEsorE045fA /fqrE6GfF4xxrLylwTHKh0jKxB3ZecGeCyjL0qsXnRnO0E5oDL6uCEk6LOG6uIE+RTzv Z4hpqv1RK5Jq397d6r1keXov1pHFc19RmBfB6uLOy/C30fkA7IB3bWrHH4X7s0EW/M4M b/wG9RNZhNv1ZkuRIM+hHaZ2IsUEyQgrgL9HNxpiI2oMANj9DiURncZuF/OdVQ3FcF2B ayMQ== X-Gm-Message-State: ACrzQf1nu6T5VxGkSDLdo/HhhYdI0SttsyjEkvB8UJRlSviiiwnbPN9Q 8KvxgzZLu9+1VFWE7IK6h0lImQ== X-Google-Smtp-Source: AMsMyM5nOkGYTE6OZybegez1sBEh42c3rGjThtjItYnhiNhXeGlAfwkwT3KjR3niFYWOwRx+6naXRA== X-Received: by 2002:a17:90b:1d8a:b0:203:6db:ed6f with SMTP id pf10-20020a17090b1d8a00b0020306dbed6fmr7148972pjb.228.1664320091272; Tue, 27 Sep 2022 16:08:11 -0700 (PDT) Received: from localhost ([76.146.1.42]) by smtp.gmail.com with ESMTPSA id i14-20020a636d0e000000b0043954df3162sm2097103pgc.10.2022.09.27.16.08.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 16:08:10 -0700 (PDT) From: Kevin Hilman To: Peter Ujfalusi , dmaengine@vger.kernel.org Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Nicolas Frayer Subject: [PATCH v2 3/3] dma/ti: convert PSIL to be buildable as module Date: Tue, 27 Sep 2022 16:08:04 -0700 Message-Id: <20220927230804.4085579-4-khilman@baylibre.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220927230804.4085579-1-khilman@baylibre.com> References: <20220927230804.4085579-1-khilman@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220927_160812_149839_84B85F1E X-CRM114-Status: GOOD ( 12.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Combine all the SoC specific files into a single lib that can be built-in or built as a module. Signed-off-by: Kevin Hilman Acked-by: Peter Ujfalusi --- drivers/dma/ti/Kconfig | 3 ++- drivers/dma/ti/Makefile | 15 ++++++++------- drivers/dma/ti/k3-psil.c | 2 ++ 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/dma/ti/Kconfig b/drivers/dma/ti/Kconfig index f196be3b222f..2adc2cca10e9 100644 --- a/drivers/dma/ti/Kconfig +++ b/drivers/dma/ti/Kconfig @@ -56,7 +56,8 @@ config TI_K3_UDMA_GLUE_LAYER If unsure, say N. config TI_K3_PSIL - bool + tristate + default TI_K3_UDMA config TI_DMA_CROSSBAR bool diff --git a/drivers/dma/ti/Makefile b/drivers/dma/ti/Makefile index d3a303f0d7c6..383bbd6d12b9 100644 --- a/drivers/dma/ti/Makefile +++ b/drivers/dma/ti/Makefile @@ -4,11 +4,12 @@ obj-$(CONFIG_TI_EDMA) += edma.o obj-$(CONFIG_DMA_OMAP) += omap-dma.o obj-$(CONFIG_TI_K3_UDMA) += k3-udma.o obj-$(CONFIG_TI_K3_UDMA_GLUE_LAYER) += k3-udma-glue.o -obj-$(CONFIG_TI_K3_PSIL) += k3-psil.o \ - k3-psil-am654.o \ - k3-psil-j721e.o \ - k3-psil-j7200.o \ - k3-psil-am64.o \ - k3-psil-j721s2.o \ - k3-psil-am62.o +obj-$(CONFIG_TI_K3_PSIL) += k3-psil-lib.o +k3-psil-lib-objs := k3-psil.o \ + k3-psil-am654.o \ + k3-psil-j721e.o \ + k3-psil-j7200.o \ + k3-psil-am64.o \ + k3-psil-j721s2.o \ + k3-psil-am62.o obj-$(CONFIG_TI_DMA_CROSSBAR) += dma-crossbar.o diff --git a/drivers/dma/ti/k3-psil.c b/drivers/dma/ti/k3-psil.c index 761a384093d2..8b6533a1eeeb 100644 --- a/drivers/dma/ti/k3-psil.c +++ b/drivers/dma/ti/k3-psil.c @@ -5,6 +5,7 @@ */ #include +#include #include #include #include @@ -101,3 +102,4 @@ int psil_set_new_ep_config(struct device *dev, const char *name, return 0; } EXPORT_SYMBOL_GPL(psil_set_new_ep_config); +MODULE_LICENSE("GPL v2");