From patchwork Mon Oct 26 20:37:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 11858751 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84A12C4363A for ; Mon, 26 Oct 2020 20:38:40 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 028D720809 for ; Mon, 26 Oct 2020 20:38:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="RLaybgt0"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="HFg2VdCK" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 028D720809 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=yqOzZeKOXv5EENQPaOppRwJvxeAVphWPixO0YMc68AE=; b=RLaybgt0sqdqGsFTYGE8kwDwDN zQIHzFxYAxD50XfLKHI9wwPgd3erzzxYKjF0/RajD404ekWh8R5/GULlIgywnAC2v2ji1XTax8YXw i2IVDp2AJgC1UbYZ+lXu/7TVwpPkzWfkFpAP1Xf+CoWyO88WHH2kj9vMbBCmQqd8Wa3zJxuiQ0mgo ECfnpAo68iv135xiduMD2h5BXBL2cOtHG1Ov9vu+DPWU7cvyJP4bomw38aZwQG76yRtEryAG2g0KV tKS9hN7tiMfZ+QWwCbNAoV5z5r7NdOP3Yw9CGtuvIUN+b1076IrQ17aNjryV0VhClS4Zw7MOAY4db 6z77FKrw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kX9Ex-0002nd-RP; Mon, 26 Oct 2020 20:37:15 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kX9Er-0002lP-Re for linux-arm-kernel@lists.infradead.org; Mon, 26 Oct 2020 20:37:11 +0000 Received: by mail-pl1-x641.google.com with SMTP id w11so5288011pll.8 for ; Mon, 26 Oct 2020 13:37:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gJsxrSn1ggR7Yn17KV0VJKAM2G+LzdUV6yeaNLJ4kfk=; b=HFg2VdCKpYuSdp/Rypp71b1ItZwNz1gkP3UbfZ/TvRiAFUJqUkZbHVx110TYXlPmDX Cj0r5+dy1FflvvTyu7YPE7K/0t3AVOqzC9pDv8kRyV9MLI75M8bQC3qPT8RopKfEF7D9 Hd6e7C8SQQz33JSvhfyUYUmvBWYJKm0/EAoXF1j+XLf51CbsfcK18qtG8aCHdkYhBMLX k71WW0T/aeC4I98/2PWEirqpph17ZvaKzpOno1q/H1ctwDcM5N1uHiBfT3jNn8p4rMjd pn3vIEWq03ZyA2Tkp6JFgqqtvmev3NzirhXKs0+ikldfJrF+73BHvWT2ehCADQJsbTIl cUIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gJsxrSn1ggR7Yn17KV0VJKAM2G+LzdUV6yeaNLJ4kfk=; b=R1Qsl8YHAn41Gf8vPXKaWsfd006aGRwRUZy/ZKwDkFzNNQZ9XBJafvV5d/ao4pT6Q1 SIrjbwOBfjF9EeYmF/AsIrwTwpSXrTHrJWJ32t8exB8uVNWXurhrGlIgxtyoWvFqnafd 2FURX9e6laZWmVz0K/FC7Vd7exgL8JKMoAIhBTM6T1y1vQ3yrV5stEg2OyMXpViS0TL7 r7dIBureCWx0ds9j2iKgOIrUz9tXfr6mABrhIh5Pnr+DYVjTy7G/Iqcbp5VnXziAmhJD OieKcZEctDyRcxpNYhvjN2bi537lAhotzGw4iuPb/odggf9SeoBClsaFJETxhBZdRwyZ 8XcA== X-Gm-Message-State: AOAM531HnZmOMyWntqAxr/gOuOa1Auvb9RS2RYByienYIgKOxn+/NqKU z1+QIhCCOMCI5n/UKEZeTR72lw== X-Google-Smtp-Source: ABdhPJwZjM8ApZhBl4q2MjlmJnSlHXjBMC4zueF3m/raga3DkYOZysnAVsrQACXrKcVCZop2FMuCVg== X-Received: by 2002:a17:90a:d590:: with SMTP id v16mr18452812pju.88.1603744627812; Mon, 26 Oct 2020 13:37:07 -0700 (PDT) Received: from localhost (c-71-197-186-152.hsd1.wa.comcast.net. [71.197.186.152]) by smtp.gmail.com with ESMTPSA id n2sm14004698pja.41.2020.10.26.13.37.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2020 13:37:07 -0700 (PDT) From: Kevin Hilman To: linux-amlogic@lists.infradead.org Subject: [PATCH v3] firmware: meson-sm: enable build as module Date: Mon, 26 Oct 2020 13:37:06 -0700 Message-Id: <20201026203706.39195-1-khilman@baylibre.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201026_163710_033210_A0C4B65D X-CRM114-Status: GOOD ( 13.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, ccaione@baylibre.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable secure module driver as module. Default remains built-in. Signed-off-by: Kevin Hilman --- v3: tristate needs a description string in order to be selectable drivers/firmware/meson/Kconfig | 5 +++-- drivers/firmware/meson/meson_sm.c | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/meson/Kconfig b/drivers/firmware/meson/Kconfig index 2671dcd0ad92..f2fdd3756648 100644 --- a/drivers/firmware/meson/Kconfig +++ b/drivers/firmware/meson/Kconfig @@ -3,8 +3,9 @@ # Amlogic Secure Monitor driver # config MESON_SM - bool - default ARCH_MESON + tristate "Amlogic Secure Monitor driver" + depends on ARCH_MESON || COMPILE_TEST + default y depends on ARM64_4K_PAGES help Say y here to enable the Amlogic secure monitor driver diff --git a/drivers/firmware/meson/meson_sm.c b/drivers/firmware/meson/meson_sm.c index 2854b56f6e0b..77aa5c6398aa 100644 --- a/drivers/firmware/meson/meson_sm.c +++ b/drivers/firmware/meson/meson_sm.c @@ -331,3 +331,4 @@ static struct platform_driver meson_sm_driver = { }, }; module_platform_driver_probe(meson_sm_driver, meson_sm_probe); +MODULE_LICENSE("GPL v2");