From patchwork Tue Apr 2 15:45:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 10881901 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 EB7CE15AC for ; Tue, 2 Apr 2019 15:46:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2EC32015F for ; Tue, 2 Apr 2019 15:46:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C77AF28691; Tue, 2 Apr 2019 15:46:21 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 7A7652015F for ; Tue, 2 Apr 2019 15:46:21 +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=WxxL+KZGrY+HU6OgJAMA0d6NbR9rgJQOs4hTB5WT7Uw=; b=uzyoYWmjqnPu5QcUBj4RDdVWie FwOZ1kTAIzJsSUFjKsbnER4E++OlljxRXB7km3/k94koOnTqbjuf9DTMSDc7bS06kftzcz45w/wpK IhUpvTP3SZ4NddA4tBrb9dPClCBSCTyWulApRbCQPt3PlEDF9IKhgOLKPYVlq79WfQxvUrYtNFKyu avZNyZ/7SUXKJCc9KNUMGKiZeCllf9iFltJq55uxj64+AA1WX2Kc0obgVntiutPyGNj09YT/V3+Hw H7krkjSpct0jxjThWcysIpEAvJHJADG+t1/atmWVO11vwJ7nJ2hoWDG4D45WIShVgw7+Of7Jxj5u6 safY9Byg==; 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 1hBLcB-0004Ck-H6; Tue, 02 Apr 2019 15:46:19 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBLbQ-0003DY-Gg for linux-arm-kernel@lists.infradead.org; Tue, 02 Apr 2019 15:45:38 +0000 Received: by mail-pl1-x644.google.com with SMTP id b3so3491783plr.7 for ; Tue, 02 Apr 2019 08:45:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4uxe1E1Jb0575SpiiJ17Oop6Mb4b8piqz0TyUf0UhNE=; b=dHnkxw+zt1qMfDqgs5Tgi1zG8zRT3UXIBPWboHI+1N1IAar6nxyLJb7JMZkBHKbgsq cgwxqxcyNNiA9iTfVZzu9Murf/x/mgrQ83cRfJJ+nCx8Dhdp1anQu31oKAddiJHAzX4n RwWg9hxgpi2I9kKZezbnMqT9uaBRSv3e85Vwj/AiXUmQwAXberJyIejKszjOqMGUqIkh r2dcsoa8uZhw6od9Yl3L2PumO7TX/x9E2I7srErtZf/q0tkSH8wE9z+gYbDn+0OLfSOQ R+LAa1hcIJtr3JnngYNJikwSbirX+VodtBMnoL21kmNhWZYaTX5OLoSuuSsXB2OJFMje mJUg== 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=4uxe1E1Jb0575SpiiJ17Oop6Mb4b8piqz0TyUf0UhNE=; b=PnBdijgtGRPZjda5dWk7xQQ6Hk7P4HkzH8eUNMxmCPy7sHI2Zei6k//sou9Wh/wd3V NZTEzg/KmXGmbWMvHsthwKtmYHyMFwONri/Mu+or9yaTolvDSzwxQTnMIZQeKCT9X2PG iGRiXQARHHR0KEc7X0rTfUsCjssdqczzaDfbkfy1JeTcdeGhIp2Q/DZ67KV06GzTnm7B xQzEHrBqeT8uKM432FDLXmqU0pXzTy0tvPeyg78C0oysqrZ2VxZryc5RzkTESMB4XAgv WXVC9Pwd7pboviDpT5y/B7YGJmRznE6uD4Or68u5o8oz4EOg3xSG0W9La7kDGKI69nuR iafQ== X-Gm-Message-State: APjAAAX9h/Y3j3MkpW0uaMOYIl0rbkhAjEJYqFADvce1++0DeEUESwXi mBmdlQ2dTYvm/7aFzjW853E= X-Google-Smtp-Source: APXvYqwgs9WaStI+ri79ooYvBjDhMOBr4FvLWlSmupOMhTUFD+Puuv9W9xTRVyCi5zTTk4spgd8e6Q== X-Received: by 2002:a17:902:681:: with SMTP id 1mr72236656plh.31.1554219932029; Tue, 02 Apr 2019 08:45:32 -0700 (PDT) Received: from localhost (68.168.130.77.16clouds.com. [68.168.130.77]) by smtp.gmail.com with ESMTPSA id y20sm1113222pfe.188.2019.04.02.08.45.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Apr 2019 08:45:31 -0700 (PDT) From: Yangtao Li To: srinivas.kandagatla@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@bootlin.com, wens@csie.org Subject: [PATCH v2 5/5] nvmem: sunxi-sid: add support for H6's SID controller Date: Tue, 2 Apr 2019 11:45:14 -0400 Message-Id: <20190402154514.11284-6-tiny.windzz@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20190402154514.11284-1-tiny.windzz@gmail.com> References: <20190402154514.11284-1-tiny.windzz@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190402_084533_170301_ABA499B2 X-CRM114-Status: GOOD ( 11.65 ) 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: Yangtao Li , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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 Add support for H6's SID controller. It supports 4K-bit EFUSE, bigger than before. And convert to use sunxi_sid_read_native func. Signed-off-by: Yangtao Li --- drivers/nvmem/sunxi_sid.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c index 5b8a42f686cd..3c2b06140490 100644 --- a/drivers/nvmem/sunxi_sid.c +++ b/drivers/nvmem/sunxi_sid.c @@ -239,11 +239,18 @@ static const struct sunxi_sid_cfg sun50i_a64_cfg = { .size = 0x100, }; +static const struct sunxi_sid_cfg sun50i_h6_cfg = { + .value_offset = 0x200, + .size = 0x200, + .native_endian = true, +}; + static const struct of_device_id sunxi_sid_of_match[] = { { .compatible = "allwinner,sun4i-a10-sid", .data = &sun4i_a10_cfg }, { .compatible = "allwinner,sun7i-a20-sid", .data = &sun7i_a20_cfg }, { .compatible = "allwinner,sun8i-h3-sid", .data = &sun8i_h3_cfg }, { .compatible = "allwinner,sun50i-a64-sid", .data = &sun50i_a64_cfg }, + { .compatible = "allwinner,sun50i-h6-sid", .data = &sun50i_h6_cfg }, {/* sentinel */}, }; MODULE_DEVICE_TABLE(of, sunxi_sid_of_match);