From patchwork Mon Oct 26 18:47:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 11858253 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 06EA4C4363A for ; Mon, 26 Oct 2020 18:49:18 +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 56AB12085B for ; Mon, 26 Oct 2020 18:49:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="pBOxi5DK"; 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="wfyVNimS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 56AB12085B 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=y6mv2MG3dWE3KVwikZbtBi59ccw6T0C0oP0gQlcxLWs=; b=pBOxi5DKcWtLF5viS+q1ZBE+D5 1OuLBgp5h+noNT0C+k2x+sq9fINSd9e5Me7Ni8zMwGJDH8SYVI3U0orErij1xZtN64tgWQd1cNl5e 7impIrOUyDdPWLfKVfH6BD1bzlOGD43Y5HkraY3Rs9Ty59aXCdNalsEnSqgPq+DnA5apsIuLntHel eX/Pjb5jBIp+AUirAcYnGKVGm+ucnBJqyuHTAtAKOH2SnX4rhMVqKRZocy2Gikn8qm4dvz4vsg/dK s5+RI2JSthBtnz+foq4UnGHcmgMP7RwTznchQMDsWL5kehBrc6CVKeKlqbfhkWS2WkW0HpeUIQ8Mj wxOahOAQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kX7XC-0005qR-Ny; Mon, 26 Oct 2020 18:47:58 +0000 Received: from mail-pj1-x1042.google.com ([2607:f8b0:4864:20::1042]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kX7X9-0005pL-LE for linux-arm-kernel@lists.infradead.org; Mon, 26 Oct 2020 18:47:56 +0000 Received: by mail-pj1-x1042.google.com with SMTP id a17so3705330pju.1 for ; Mon, 26 Oct 2020 11:47:51 -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=cmXFDnNMVMPDv4pMNaOk4nwtehUNz0/Q2zFukXCE+cI=; b=wfyVNimSxLMH8y8y3Vv7iB8gxowuoHuQDki16Cmbtrp2AJONCa8yGPtiKjj4cSAV2U YdcKi89XNEM2RD/L/9C8czYcgfiTQAnKKVaqjD4dgxQvY2ezdeUgj9esquVAFqd7090X 4eQvjWkMWy/S67Ktf3aPwYdPjBHHgcheknEbX6w+PsDbHHfI2aNQxdchvuUGh8X8KOUq 4eM+Z1cB7k0FPBnkeobv65ueMoY3SlV9blVGn4vbDPngI67E5QyfDvh1dgxW+WEIV+Vh lvhA5oRnWRjR9LLk1IT4wMedNy8Kj6vv1p/+i0uVsdKxLj/2Fa/kHYIaB48/pJhVy30Y nYDA== 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=cmXFDnNMVMPDv4pMNaOk4nwtehUNz0/Q2zFukXCE+cI=; b=ZIZ1Dypwf/pBlR9xT9gCPdonALBJpZMdlCIDPYOLO7/MUkCGv3KVi07zXVbyQTsNr8 3dZS/fAtqNA6D6fE51uHr4gcQS0m0CAk024f9HVGa2hdaRsk57YM2byllicB68dLRGvA /hxh3xkQvgfASCrmh4nZRPzvz9dKu5P/jI6FTsKUyYXDojw1b15zoJsVAcrdGorPKiBR N766uPb0+ayPYcsGZvXNU8BH4lBU3kS0udI9L6Z9/7qy5V0Gp91rCkW/JjElwLC+c4PR /BhQqPTHj7AwFxKtXlO8A+BQtJu9GPT8MYFOZZL0Sz1GilMCWUFfFoO1fdPR10ymHa1o ub+A== X-Gm-Message-State: AOAM532I76uKc+zo4uXUIKoYEXvTApb5Xi8h4P67W4gO7Ace5b9OvAE7 TwynLLFVuNBonzhT/igTs8j+UQ== X-Google-Smtp-Source: ABdhPJy49YPHd2wf9JvJIvrRBJDHszBaxzXQBvy+ZLOMD5ef+NGHWSCov1WGmAUVBR+uyQltx+DDiA== X-Received: by 2002:a17:90b:b97:: with SMTP id bd23mr17249604pjb.12.1603738070155; Mon, 26 Oct 2020 11:47:50 -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 e2sm13360161pjw.13.2020.10.26.11.47.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2020 11:47:49 -0700 (PDT) From: Kevin Hilman To: linux-amlogic@lists.infradead.org Subject: [PATCH v2] firmware: meson-sm: enable build as module Date: Mon, 26 Oct 2020 11:47:48 -0700 Message-Id: <20201026184748.37028-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_144755_724661_ABB5327B X-CRM114-Status: GOOD ( 14.43 ) 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 --- v2: keep built-in as the default. 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..f6f9d831ff8a 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 + 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");