From mboxrd@z Thu Jan 1 00:00:00 1970 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 79761C433FE for ; Fri, 30 Sep 2022 17:30:00 +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=noI2VP6nZYxqc3PRa+OQHq7/kOVSEhd0rMBHlwD7Z7s=; b=oYeNxIELoafbGT 0IM8mKITFPXLpd4gUkgW/rFbKWEMNYqp6jAQ85diVSNyYPrSm/EaLBBlLWglb9PjvS6/BabSPzkxA 37GDMP6R6/RDYYs4Zx6kvj7rHEMJf5Pb+cZwAo1xM21/q7lSTxoaEwvaoZ7qREvUdKkKA3dqcWfVP XmSJUbpbSu2dpd2wipdBBKyD1PQN3gSXus9Z+vzvbAx9v2RBUNZG6IWotzRTq0YImvaUbp6RladXf BoppeCD7BHxP//ii5anCH5MiT/C6/jrNb1tNfnt6A8Ce+0H8WBMvNSguuzZp7Y+OffXKX/i8/edOx yVdyL8XIxo/sADBbhGiQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oeJor-00AnS7-4v; Fri, 30 Sep 2022 17:29:01 +0000 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oeJoW-00AnJk-Iq for linux-arm-kernel@lists.infradead.org; Fri, 30 Sep 2022 17:28:43 +0000 Received: by mail-wr1-x429.google.com with SMTP id bk15so7847942wrb.13 for ; Fri, 30 Sep 2022 10:28:39 -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=udUbQ+1obdJHz0cNtfdA+qf3/bqQhChlbdPQ4dYxXqw=; b=vOX431yMJ2kXB0H34KHaSrROuD5cceT8cYtdInWKv7JjDFQmVX+zL40HEbqOH7ad40 LsLJJ/CaYxKbjtb5EhhhZcqHTvJh03EASdD4vvMDUsMsqa+J0FaPUwASk19v1IIckoJo kW3xdkUpLZ8NXwnu0gw3Z1BnSlDvI16jNjvy+T2RUeLbHxUjuyjE4Nj0ujen1SCwvKSe mpSwsLGdAeQTxkTFuEQ95AMiqdW2ren9Gd+efl0f5hyGywH/3TRBh8JTP/aZ5fj0BHj4 fctkXeoB+VDLlxZ5KooxhwKWeMSxpi5ZW1JpePueZpRYpLj+2aqyfbD27UBVolSQbKFm 7M9w== 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=udUbQ+1obdJHz0cNtfdA+qf3/bqQhChlbdPQ4dYxXqw=; b=jUzdS358uxi3/MBI/vATYcVCHHJGMw8NKr7XD7R+LLuvI8HFo0oOg4cWKXJlzTGKRA MP18WE7YjmK7liqLypQ5PYLEG68sUFOnfexLeOL+0kzeOTBNT1JS6VkKCBHqoWd/3i6H GDi/OhGz4Ki6ljeeMfS8JrGEjLUFJFZ3fAKXc2hiO4KPHZBdVkMhP7cLaEnBPQmuBwAc lNzokKJ69ROceA2/pJwQbVwV46VCAR0U36nHuQMsZ18yUerSSY4SeUZjsvyn5uCTwVmS qla0ECOL+6ZTslpJR8upGL+Z9vimc8WVD06HTRLHJKLV05JxnVhfrkHOKzfKZswXRHuJ Dftw== X-Gm-Message-State: ACrzQf0Ba7LrZvEdOMWWZw8JqiIM7/7Ky3t8635Upa6GRd+QqhAbpuLP WJEirkbWL1Cwm8dii72NTuZW8Q== X-Google-Smtp-Source: AMsMyM5z0aIR4tqJnzY+7kYVsz/PbqXsfeoXI2uj0g4xirdZr0rAyy8DDQNjLP2adf2sS4YbCpnh9g== X-Received: by 2002:a05:6000:68c:b0:22a:bde3:f8cc with SMTP id bo12-20020a056000068c00b0022abde3f8ccmr6370777wrb.556.1664558918274; Fri, 30 Sep 2022 10:28:38 -0700 (PDT) Received: from nicolas-Precision-3551.home ([2001:861:5180:dcc0:1a56:87a1:b5b8:453b]) by smtp.gmail.com with ESMTPSA id bv14-20020a0560001f0e00b0022ae8b862a7sm2525407wrb.35.2022.09.30.10.28.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Sep 2022 10:28:38 -0700 (PDT) From: Nicolas Frayer To: linux-omap@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, khilman@baylibre.com, glaroque@baylibre.com, granquet@baylibre.com, Nicolas Frayer Subject: [PATCH 2/2] soc: ti: Add module build support Date: Fri, 30 Sep 2022 19:28:10 +0200 Message-Id: <20220930172810.199758-3-nfrayer@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220930172810.199758-1-nfrayer@baylibre.com> References: <20220930172810.199758-1-nfrayer@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220930_102840_635927_8932FA2A X-CRM114-Status: GOOD ( 14.32 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Added module build support for the TI K3 SoC info driver. Signed-off-by: Nicolas Frayer --- arch/arm64/Kconfig.platforms | 1 - drivers/soc/ti/Kconfig | 3 ++- drivers/soc/ti/k3-socinfo.c | 11 ++++++----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 74e9e9de3759..85e645c6ab40 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -131,7 +131,6 @@ config ARCH_K3 select TI_SCI_PROTOCOL select TI_SCI_INTR_IRQCHIP select TI_SCI_INTA_IRQCHIP - select TI_K3_SOCINFO help This enables support for Texas Instruments' K3 multicore SoC architecture. diff --git a/drivers/soc/ti/Kconfig b/drivers/soc/ti/Kconfig index 7e2fb1c16af1..bc55f977f032 100644 --- a/drivers/soc/ti/Kconfig +++ b/drivers/soc/ti/Kconfig @@ -74,7 +74,8 @@ config TI_K3_RINGACC If unsure, say N. config TI_K3_SOCINFO - bool + tristate "TI K3 SoC info driver" + default m depends on ARCH_K3 || COMPILE_TEST select SOC_BUS select MFD_SYSCON diff --git a/drivers/soc/ti/k3-socinfo.c b/drivers/soc/ti/k3-socinfo.c index a29f5a23395f..ee22bb886b8f 100644 --- a/drivers/soc/ti/k3-socinfo.c +++ b/drivers/soc/ti/k3-socinfo.c @@ -13,6 +13,7 @@ #include #include #include +#include #define CTRLMMR_WKUP_JTAGID_REG 0 /* @@ -141,6 +142,7 @@ static const struct of_device_id k3_chipinfo_of_match[] = { { .compatible = "ti,am654-chipid", }, { /* sentinel */ }, }; +MODULE_DEVICE_TABLE(of, k3_chipinfo_of_match); static struct platform_driver k3_chipinfo_driver = { .driver = { @@ -151,8 +153,7 @@ static struct platform_driver k3_chipinfo_driver = { .remove = k3_chipinfo_remove, }; -static int __init k3_chipinfo_init(void) -{ - return platform_driver_register(&k3_chipinfo_driver); -} -subsys_initcall(k3_chipinfo_init); +module_platform_driver(k3_chipinfo_driver); + +MODULE_DESCRIPTION("TI K3 SoC info driver"); +MODULE_LICENSE("GPL v2"); -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel