From patchwork Mon May 23 16:30:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 9132151 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 77F5B607D3 for ; Mon, 23 May 2016 16:34:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E8A72823A for ; Mon, 23 May 2016 16:34:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 632CB28240; Mon, 23 May 2016 16:34:01 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0115F2823A for ; Mon, 23 May 2016 16:34:01 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b4smc-0004Bt-5N; Mon, 23 May 2016 16:32:46 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b4sm0-0003dD-Gy; Mon, 23 May 2016 16:32:14 +0000 Received: by mail-wm0-x244.google.com with SMTP id 67so16729344wmg.0; Mon, 23 May 2016 09:31:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=2Q6syYEPaTSY4/yl35guWotNowYyZgOrZd4AYH/XMOI=; b=DFpmBR75LDfDxQci0ATNgXbPAq02quVKVKH3f45GSnBYrBMb2hcJ2dFFzDkTn2pHYB 6RTi81DKFEv6rHUoa5ex1j5cRnKnDbEPQfOd5aw1NzLXFgEQ2Jhd/kEjPXqADnfZVPab cNN6t7ZvMAexevRl5hXHo1Lu0QrNR7oQzedGt/e6nPIm+KQa/4Zf4/GZSe2P1gId9An9 cp5JmxamyqcfNypZuGA3qCiIYOZMYyaTGbNB5tef1PqP3/hfTrtLYXBUnSkCkzYzZ8kY /5yltENcXMhZewoqocN9oBP/SeqK5uHF14+OV/pVtI1NkzuDpkWz3jwE00lprmxzv8V0 RUxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=2Q6syYEPaTSY4/yl35guWotNowYyZgOrZd4AYH/XMOI=; b=F5Tpfvda5V2o9FfYp9bOljI9shq2oRqknd8mN2spJeexXU2ROfYR6v3NJQgV4dD4ct sIK6KqZLcxhbwBglJM/xxftNvldbdFcp3M40MduxF+dZUTo5kQ7qGenZaUKDfBUbr9lz rSmkr5hx2/7xt1/A/IueTXcmBqq90m7gB2AFX9tZ8/3mt/gRUB05rewuvByj43F+BX+L RxGRf6po0jNpwvrzYVRbTNu2cldEGnVUkghZoGjw7u+LrqETNSbZoVqGjrfiJkH2VeN9 P4C6wRycG43maNleBw4WwSxc7fC34GwGPAMQMedL6wA4XPyBQ6jyAbo8DFdKbKZzSmpC E18g== X-Gm-Message-State: AOPr4FXPIZ74+tGq9p1mYp7SUDljhekZXJkbo9Z6W2RvaweTsraX7hVSKVsnsqZQZY5TAQ== X-Received: by 10.195.18.99 with SMTP id gl3mr17093593wjd.162.1464021106422; Mon, 23 May 2016 09:31:46 -0700 (PDT) Received: from localhost.localdomain (2-238-57-164.ip242.fastwebnet.it. [2.238.57.164]) by smtp.gmail.com with ESMTPSA id o129sm14483647wmb.17.2016.05.23.09.31.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 May 2016 09:31:45 -0700 (PDT) From: Carlo Caione To: linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux@endlessm.com, devicetree@vger.kernel.org, khilman@baylibre.com, afaerber@suse.de, arnd@arndb.de, jens.wiklander@linaro.org, mark.rutland@arm.com, robh+dt@kernel.org, matthias.bgg@gmail.com Subject: [PATCH v3 2/4] firmware: dt-bindings: Add secure monitor header file for GXBB Date: Mon, 23 May 2016 18:30:22 +0200 Message-Id: <1464021024-29380-3-git-send-email-carlo@caione.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1464021024-29380-1-git-send-email-carlo@caione.org> References: <1464021024-29380-1-git-send-email-carlo@caione.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160523_093208_828080_09F7D4F8 X-CRM114-Status: GOOD ( 13.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Carlo Caione 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 From: Carlo Caione This patch adds the header file describing all the SMC function identifiers for the Amlogic Meson GXBB SoC. Signed-off-by: Carlo Caione --- include/dt-bindings/firmware/meson-gxbb-sm.h | 44 ++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 include/dt-bindings/firmware/meson-gxbb-sm.h diff --git a/include/dt-bindings/firmware/meson-gxbb-sm.h b/include/dt-bindings/firmware/meson-gxbb-sm.h new file mode 100644 index 0000000..b7d02df --- /dev/null +++ b/include/dt-bindings/firmware/meson-gxbb-sm.h @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2016 Endless Mobile, Inc. + * Author: Carlo Caione + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 2 as published by the Free Software Foundation. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef _MESON_SM_GXBB_H_ +#define _MESON_SM_GXBB_H_ + +#define SM_GET_SHARE_MEM_INPUT_BASE 0x82000020 +#define SM_GET_SHARE_MEM_OUTPUT_BASE 0x82000021 +#define SM_GET_REBOOT_REASON 0x82000022 +#define SM_GET_SHARE_STORAGE_IN_BASE 0x82000023 +#define SM_GET_SHARE_STORAGE_OUT_BASE 0x82000024 +#define SM_GET_SHARE_STORAGE_BLOCK_BASE 0x82000025 +#define SM_GET_SHARE_STORAGE_MESSAGE_BASE 0x82000026 +#define SM_GET_SHARE_STORAGE_BLOCK_SIZE 0x82000027 +#define SM_EFUSE_READ 0x82000030 +#define SM_EFUSE_WRITE 0x82000031 +#define SM_EFUSE_WRITE_PATTERN 0x82000032 +#define SM_EFUSE_USER_MAX 0x82000033 +#define SM_JTAG_ON 0x82000040 +#define SM_JTAG_OFF 0x82000041 +#define SM_SET_USB_BOOT_FUNC 0x82000043 +#define SM_SECURITY_KEY_QUERY 0x82000060 +#define SM_SECURITY_KEY_READ 0x82000061 +#define SM_SECURITY_KEY_WRITE 0x82000062 +#define SM_SECURITY_KEY_TELL 0x82000063 +#define SM_SECURITY_KEY_VERIFY 0x82000064 +#define SM_SECURITY_KEY_STATUS 0x82000065 +#define SM_SECURITY_KEY_NOTIFY 0x82000066 +#define SM_SECURITY_KEY_LIST 0x82000067 +#define SM_SECURITY_KEY_REMOVE 0x82000068 +#define SM_DEBUG_EFUSE_WRITE_PATTERN 0x820000F0 +#define SM_DEBUG_EFUSE_READ_PATTERN 0x820000F1 +#define SM_AML_DATA_PROCESS 0x820000FF + +#endif /* _MESON_SM_GXBB_H_ */