Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3435821pxb; Sun, 20 Feb 2022 20:08:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUVgtPfJ7JyIZxEDCPAiE/FcspdpPTgFDa8YoT/D4+QvxSLJGv/Ba23c0RVKjSDhA17/fG X-Received: by 2002:a17:906:bc46:b0:6ce:3d41:f87e with SMTP id s6-20020a170906bc4600b006ce3d41f87emr14313367ejv.283.1645416520341; Sun, 20 Feb 2022 20:08:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645416520; cv=none; d=google.com; s=arc-20160816; b=gwVtY98idMlWwSLDYiNzv/32mTLX2wpxYB2l69niD36s8RtBt6HCyx1BexGDXEnUa5 SEChObwYND8BPzdIjm2WZaNzzguHFUtm1+DgbBFARdIMWwuG6+Glo9clgk94+nAlrtR1 aFqNYON/MdrXnbAAtSgjKZ7ensAOv0wGqmrH+JAFV+IdBuUyjlPriol7RrfnPx857B5r U0/kkfQf1mo1igpCZVxMnp7dm7JcWlMWEDhIRN9b1RasbpCUC48drDG2p+woZ5EEK6W2 A1dhH2QKvvQ/zFt1NNn0YuXiznRSRsV5I3JiOCkUwUBbRrTaEasGiVyCgkm/4jPXYWda Wjkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BNiRHWO4HLFv+UVov8z2shlE8WSMm7D0PfvatmCO+8U=; b=jZ+rG4Vq9e36XHTc1Mu2Anp6KXDottaq8eC9FceXsAJJMQP5RnK0i3ZPKpaksqG1DL au/mNMu5Yn9rzNwYXbN5OczN2v33zkErowiyMsZnmO8GRt7WgZYSvbtzLPomfXNZAtZm duyDkSTu098xKsVJJJPYF4xB2IW+1dkzB1f3poutpuRG7fnX+S3Pdgvd0tM9QOVrCrKC L8WmyXR25W+SpNenyphtgRbwMLZHI35khnO5JEQWCeWqm0/mHsEviKK2hrKGc0LgXcHr aKt0k43D/R5C7iRkkzICKX2BGG1jUQIAtr1fvIMwkWvw6bgMmqBAXpo6kvPN7UTFBUuy XfpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="N7V/I4j8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x9si7439983eje.747.2022.02.20.20.08.18; Sun, 20 Feb 2022 20:08:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="N7V/I4j8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244193AbiBTPQ3 (ORCPT + 99 others); Sun, 20 Feb 2022 10:16:29 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:50636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244144AbiBTPQR (ORCPT ); Sun, 20 Feb 2022 10:16:17 -0500 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D71B234BB3 for ; Sun, 20 Feb 2022 07:15:55 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id o24so22874445wro.3 for ; Sun, 20 Feb 2022 07:15:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BNiRHWO4HLFv+UVov8z2shlE8WSMm7D0PfvatmCO+8U=; b=N7V/I4j8PzHey8p1AFUCuSEr7LELjsKsOjoLstg9JmC3mbmQZBvRF2HsdcsZ44Uk28 PiWJ1AT3fVDAzuZQDGRHBM6Ygya52JFzQTgts4HiXfkOYd0Rh29bYWOESrgFeAv5Lwqq KyZ2WYfkZrcbjSVyCeXeCPSAHL7XpukcGr8r/MsB6lGelZ19Ff3OE8/LokJ1xlwwNzGL tbOQtM1WMusfMwgleCOG6gEwcpFTJcI9brqYbHknliwvuus1kvY6sQ8kJZjkd/JEMRkV TDi+6leGWaWkSdimIsx+ko5oF7R0k6FzRvcxsPhDSshJql+am3HBoevr4aqgNBCVjTdb CRkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BNiRHWO4HLFv+UVov8z2shlE8WSMm7D0PfvatmCO+8U=; b=22y9lE0zI8DKNUh3FhnsgRnuBA71G188bHDvftutd7vPQLH+5oo33ORF91kp7KaLLS C0I25BlQRn4RWn6OtBZySqyhK6v+RAhqXQLcJjOaE+WepwrbrfslaB4+YmE1TMnoLtjg +C5LqoztmWrozMVdbeVxIKIK80308S5iwv233Ch1riDqnTPcujvzTaqwfPQllhexRERd DgT716bGHp6D3KhI4k9eSmVGiHOyYgLzrkL1DpMyuAfzjGmFGOUiXCvted5BvTthZNks S2LWG2QQxUHRPPc7H8Cg39ABUZCtski+92Q1q+P0vfp/IrwqhZwf9HFwiD08Pa7M2M7L elOQ== X-Gm-Message-State: AOAM533c6L634JIUTH7aYGunbTMmc4KhigHiNkhJ71g+NbAR+NKI63/h DmJLcoKQqXDP0LNhRQMyXYFCjtkg7XSVPw== X-Received: by 2002:adf:eace:0:b0:1e7:6884:45a5 with SMTP id o14-20020adfeace000000b001e7688445a5mr12733333wrn.197.1645370154500; Sun, 20 Feb 2022 07:15:54 -0800 (PST) Received: from srini-hackbox.lan (cpc90716-aztw32-2-0-cust825.18-1.cable.virginm.net. [86.26.103.58]) by smtp.gmail.com with ESMTPSA id h7sm28687749wru.41.2022.02.20.07.15.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 07:15:54 -0800 (PST) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Samuel Holland , Srinivas Kandagatla Subject: [PATCH 06/13] nvmem: sunxi_sid: Add support for D1 variant Date: Sun, 20 Feb 2022 15:15:20 +0000 Message-Id: <20220220151527.17216-7-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20220220151527.17216-1-srinivas.kandagatla@linaro.org> References: <20220220151527.17216-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Samuel Holland D1 has a smaller eFuse block than some other recent SoCs, and it no longer requires a workaround to read the eFuse data. Signed-off-by: Samuel Holland Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/sunxi_sid.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c index 275b9155e473..5750e1f4bcdb 100644 --- a/drivers/nvmem/sunxi_sid.c +++ b/drivers/nvmem/sunxi_sid.c @@ -184,6 +184,11 @@ static const struct sunxi_sid_cfg sun8i_h3_cfg = { .need_register_readout = true, }; +static const struct sunxi_sid_cfg sun20i_d1_cfg = { + .value_offset = 0x200, + .size = 0x100, +}; + static const struct sunxi_sid_cfg sun50i_a64_cfg = { .value_offset = 0x200, .size = 0x100, @@ -200,6 +205,7 @@ static const struct of_device_id sunxi_sid_of_match[] = { { .compatible = "allwinner,sun7i-a20-sid", .data = &sun7i_a20_cfg }, { .compatible = "allwinner,sun8i-a83t-sid", .data = &sun50i_a64_cfg }, { .compatible = "allwinner,sun8i-h3-sid", .data = &sun8i_h3_cfg }, + { .compatible = "allwinner,sun20i-d1-sid", .data = &sun20i_d1_cfg }, { .compatible = "allwinner,sun50i-a64-sid", .data = &sun50i_a64_cfg }, { .compatible = "allwinner,sun50i-h5-sid", .data = &sun50i_a64_cfg }, { .compatible = "allwinner,sun50i-h6-sid", .data = &sun50i_h6_cfg }, -- 2.21.0