From patchwork Thu Sep 29 23:48:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 610768 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E89C6C433F5 for ; Thu, 29 Sep 2022 23:48:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229586AbiI2Xs3 (ORCPT ); Thu, 29 Sep 2022 19:48:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbiI2Xs2 (ORCPT ); Thu, 29 Sep 2022 19:48:28 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5DE51FBCB4 for ; Thu, 29 Sep 2022 16:48:27 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id c198so2779790pfc.13 for ; Thu, 29 Sep 2022 16:48:27 -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=dTDmxuFs3z7wPKBAGhH0lbmw9ej4hIfQh/7fOzv8B9k=; b=OknPLF3QhruqHGOFUgdMYe9vU9jMRxOvbCrmgnSUfE3QRVGsP+SByYmW+j5DGfAgbI 3GZNyJx+uMMG48/QlFGttyOQy40rvLStFHGVfWwKx+t8aU/x0vbC2EJ7jWhzYneesVF6 Dx1XPXoscxUwRBl8K2JRtCXt963On/O3WJvkzOCtPjasR5oLPo710+m7bvuCxktxXp7/ kGaLctd08wbrf4jtURlVOkcTGul2Bb+N9I9sWz2ISyBD8IQ9XKfKJ8HKnO+pEauGJTPg Ja/wZxrd3xO9k/RxvqpKgnU8n8gc8DCcFikh8dRrRY11j3BT/qpfVr9dg1b84bW7ZBQV fCqA== 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=dTDmxuFs3z7wPKBAGhH0lbmw9ej4hIfQh/7fOzv8B9k=; b=nux9TfJYvzCctNkRBNOzvdDO/7hc8yWxfJmwPYPqac9TV1JS0OR02HcwTq8im44HOo 0AYeAVZcDi0SOavGhhKjuXOU0cKrnkozWBdCk9Hiy2JpcCpHwE0T+rBTQ/bUWgGWC0LA GXcdNiD7gLlVEzZOqjv6e4xdTV+vGFNMOU8xySC/ng+RbfAAyiAJUQ7S2jXrplEBDQ6C cfdXiMcJyU/B3dxRzHElWdq9M3C/UvVVM4B14Os1SVElXfv27khTbzg3AKwXPquRD/2b ViP5AokVlmrm7p+8KQ82t5+hHx05I56PdIHYiWX52cDoWo+JoY+joCAiyQb4FY5VE0CM j4Cg== X-Gm-Message-State: ACrzQf2VK/Cqfs0eTI3eWYisKRMicunVKOdlm9SRbTy5x+raCgjInYia bfDvukIu1kyGtZ48fQu+xmSwqw== X-Google-Smtp-Source: AMsMyM7FwShIBExasb/b3zh/05Qz4LcRzwNLRfz7dvkYRrbOQGa3E6KtJuuhDK9TPVTm5VBDPBgmIA== X-Received: by 2002:a62:6085:0:b0:53e:7874:5067 with SMTP id u127-20020a626085000000b0053e78745067mr6062525pfb.4.1664495307142; Thu, 29 Sep 2022 16:48:27 -0700 (PDT) Received: from localhost ([75.172.140.17]) by smtp.gmail.com with ESMTPSA id b2-20020a621b02000000b00536aa488062sm244055pfb.163.2022.09.29.16.48.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 16:48:26 -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 v3 3/3] dmaengine: ti: convert PSIL to be buildable as module Date: Thu, 29 Sep 2022 16:48:20 -0700 Message-Id: <20220929234820.940048-4-khilman@baylibre.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220929234820.940048-1-khilman@baylibre.com> References: <20220929234820.940048-1-khilman@baylibre.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Combine all the SoC specific files into a single lib that can be built-in or built as a module. Acked-by: Peter Ujfalusi Signed-off-by: Kevin Hilman --- 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..b53d05b11ca5 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 +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_K3_PSIL) += k3-psil-lib.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");