From patchwork Wed Aug 1 10:04:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10552029 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DE8EB174A for ; Wed, 1 Aug 2018 10:04:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD54221FAC for ; Wed, 1 Aug 2018 10:04:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C19502943D; Wed, 1 Aug 2018 10:04:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6CF3021FAC for ; Wed, 1 Aug 2018 10:04:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To: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:List-Owner; bh=ll0MiI8FfTuS2oWkaZKWP0r4JFROUL1ezHLZdKFHgUc=; b=UUU1FgK3WM7/3KHwOt8xUwRd/d halyceV2fpUZMe7+oNl9Gj400d/wvvNUhD5Hyx9nQ6eIr5FS5Jx/HZ91tS5qdFmTvoN2K5Tghnehr h22AdvielESmqbhWujvAp882EskBe8FMI3z3ZCw/AbZ8xxsTvw671G0YnsTDZaT4yFfwyOLSTNjgL xo5n2dSn7IxzIHcoWT78bK07KExn2KP9/8K2bNjls3sEuMGB7hcRT0NL1tOqYDZwgjhpjZdFmnjez lQ0+RjOKtW5S5s7hG9T7xdRpBIMdyzX1GGq86ggjUbMAOVLvQH0e2PjJC372WKDFaj90+xWJwK6hV Hh/8+PEA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fknzX-0002aG-Gn; Wed, 01 Aug 2018 10:04:27 +0000 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fknzU-0002Z0-7q for linux-arm-kernel@lists.infradead.org; Wed, 01 Aug 2018 10:04:25 +0000 Received: by mail-wm0-x236.google.com with SMTP id s9-v6so6285946wmh.3 for ; Wed, 01 Aug 2018 03:04:12 -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:in-reply-to:references; bh=VuMSobxqG9WNa9OZiPgkmFIgiBpcY6xQ+KGyfHoGbPg=; b=AhE0OtDx8p4sPmEDFS/iadD5n1O5KeLKyJUt/xUNn0z9hzLPcats6xdPMeP7k/U7BW 9Ld1qziXLrjr/jWML91LrMM8lNZvKwez+MDZTFVodiCDVgTqqeI9nGX+HjpuY3MngHoI dp1ckCxteEK0ae4grNSOASj9hzs3tI9JEtzRMC6p3S9JGS9r7vfuEN3iIzPY/2vt3jBo RZwS29NDpyG/8QVcIWE53wek5uoF/qBEU9MJMlur9C3cEam2g5hWaBI1OjP+D1SHQMY3 Ksg5ykHiJtrI0veNoGMqjL0o7aIFmMLdGmoe8sw9R8fGdFdeDhajZGlauPnA27S0eyIf ubyQ== 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:in-reply-to :references; bh=VuMSobxqG9WNa9OZiPgkmFIgiBpcY6xQ+KGyfHoGbPg=; b=VWfFHRwVTmPS3I1PoZ8fqcb9BPgnNcuTim0JOWptcYGdtlVDS6+NoRNIPdnWkuLBX/ PAc/UtS3qLmheRISnYylo9Xc296R9+Fi4nUhazj5njVtXK6JrPTjwiFT5NeBckMRrHiZ VvI3tcp96tN+5badsujMtQ66W7FQBRf7dDEoCxDakxyqPtHjkgx0sL376+fbw5kE0gEy qmTA8MTZtjkCqPiBD0zOwrDKxuQRwkXNMUz9GNBtTgN7WgPpVLEyejTCvRtEVUdPy7we Xp0uaFf0hrezJhS/HB27RvQcr+tueKqxRvaj4Wun76pvKkAskylqvtJERQlMSwLGQzdR TPqw== X-Gm-Message-State: AOUpUlHYBJRQR7I9jKCSjuJr+D7xYaA1h8CN7BkLcLKlloZe3BJZ7FTe TAy2B3sKeYyR+qDd4l60AUtqgA== X-Google-Smtp-Source: AAOMgpeBib7IEUDCNVwh7P4pMkZ6BpzMeTW8htUSVTXVVlyw6H+1Zoy0pKhzw56KpQkx6BCqIrD/cg== X-Received: by 2002:a1c:3e8f:: with SMTP id l137-v6mr2248949wma.132.1533117851099; Wed, 01 Aug 2018 03:04:11 -0700 (PDT) Received: from bender.baylibre.local ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id e5-v6sm4579835wmh.29.2018.08.01.03.04.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Aug 2018 03:04:10 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com, linus.walleij@linaro.org Subject: [PATCH 1/5] meson_sm: add TEST_N pin direction call Date: Wed, 1 Aug 2018 12:04:08 +0200 Message-Id: <1533117848-28194-1-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1533117623-27856-1-git-send-email-narmstrong@baylibre.com> References: <1533117623-27856-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180801_030424_280457_3B47A15D X-CRM114-Status: GOOD ( 13.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Amlogic Meson GX and AXG has a Secure Monitor call to change the TEST_N pin gpio direction, add it in the supported call list. Signed-off-by: Neil Armstrong --- drivers/firmware/meson/meson_sm.c | 1 + include/linux/firmware/meson/meson_sm.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/firmware/meson/meson_sm.c b/drivers/firmware/meson/meson_sm.c index 0ec2ca8..f407001 100644 --- a/drivers/firmware/meson/meson_sm.c +++ b/drivers/firmware/meson/meson_sm.c @@ -48,6 +48,7 @@ struct meson_sm_chip gxbb_chip = { CMD(SM_EFUSE_READ, 0x82000030), CMD(SM_EFUSE_WRITE, 0x82000031), CMD(SM_EFUSE_USER_MAX, 0x82000033), + CMD(SM_TEST_N_DIR, 0x82000046), { /* sentinel */ }, }, }; diff --git a/include/linux/firmware/meson/meson_sm.h b/include/linux/firmware/meson/meson_sm.h index 37a5eae..133b1c3 100644 --- a/include/linux/firmware/meson/meson_sm.h +++ b/include/linux/firmware/meson/meson_sm.h @@ -17,6 +17,7 @@ enum { SM_EFUSE_READ, SM_EFUSE_WRITE, SM_EFUSE_USER_MAX, + SM_TEST_N_DIR, }; struct meson_sm_firmware;