From patchwork Sat Apr 13 10:33:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 162159 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp637561jan; Sat, 13 Apr 2019 03:33:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzf8tHCDV8rRYSBo/swWU5KM/tCRO2pvqzWMeza5Kc6QrxWcascjry+NAVapMqMcFNUdk9g X-Received: by 2002:a63:f44:: with SMTP id 4mr55149324pgp.324.1555151615202; Sat, 13 Apr 2019 03:33:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555151615; cv=none; d=google.com; s=arc-20160816; b=OoQkRFkPbASGb75gcKmxlhyL5jhtucnYgMMZh2nlEhc1iAFz0yTzT3U/W73VEFv48J pvTxxZlcrGNMTkHThQS8ultTkWOY3QFjjMGCNV86i8agCKJlGhfQNbAY25ktzwiOQyV9 RhW28R7s+/FTXNvjqt+Y4gqllttXuzSuThpWMfX+GkpHcIFz+Ygv7fbEKJPhvLWnBCBo 49fw+1UO518gPa+JGOl2Mj6kiKXYOfvQTIKdFWAAgtA+KcF2e6rLP1JUF7Ry4CKJuhQg bZ8RUDAWVZ+59TB+nWkhRWOdgQKcb823zVHu3j8Kbsp4u0G6tbmQPnh/Mm4gQhnp+oLk xduw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nptnDJR99QeM/FrXgUlEziNHJ0JezRkAyQKy55fvHkU=; b=GEV/s9DChiFOctd6PJ0OVpI+miLjCCqba6pMrwwE5DLHyu7qWoiLYrzxh9+ak5bWG1 C7ZhT+Ylv6snoIclFjvOe0QvOlX3dG1Pqj+8eA5/X9E8uaFVxq4Bnhz9XSXrR3oAC7FT jjwlVdoT2OvIT8mqe+SjjmLZJbT9vGoK1LSqBLRKuq4pbr7x6oADgiu5lgI6FM0YzJy+ PJKX89u4jGXZjWUkTJpKGXc+Wbu8tOzKXFtPNXiS0HoQznffcAQiqFzfEki+vCGisypZ ch+yh1O2oftrOFdlIwn3XdMWh6///LaVmKr7y4P0HafBwUDAqtHchjKjnOR/9UGjKA7Y IYEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eHW8eSLU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a11si30735668plp.306.2019.04.13.03.33.34; Sat, 13 Apr 2019 03:33:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eHW8eSLU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727339AbfDMKdd (ORCPT + 30 others); Sat, 13 Apr 2019 06:33:33 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54541 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727164AbfDMKd3 (ORCPT ); Sat, 13 Apr 2019 06:33:29 -0400 Received: by mail-wm1-f65.google.com with SMTP id c1so14195870wml.4 for ; Sat, 13 Apr 2019 03:33:28 -0700 (PDT) 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=nptnDJR99QeM/FrXgUlEziNHJ0JezRkAyQKy55fvHkU=; b=eHW8eSLURcZAhLZQSigqQbpnc7W9hsOtj9DtyxZhveO9mNmXOajfwMRvYU6v2eiaqF y2dhYCpwCceSi8tuHSOtk9rx0XzbVsgd0uAukQvFr25hGb+sy3BgXyjekSGUv2V3xdSG fBC1lvshCdwtQCZdD94ELjABYs5GvG6lZU2HhGofCmT1cTgt++Cl6grGI73mYUVZ+1qZ wBvaJck/ibyLStYf1rY8lr77IR/B+ybwTuFbuZvUrzkaLP3NLc3pY3R1yoiLypwslkCm Mgw5qDwfd2dFoMuW2dHn7O8B/IaFgwP5bInxAgzw4RUeD5CKJOzvejO+L4Y3M7RQs8Jc 6g1g== 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:mime-version:content-transfer-encoding; bh=nptnDJR99QeM/FrXgUlEziNHJ0JezRkAyQKy55fvHkU=; b=QHaV2pryuAhd0wvHyQY8pDOKRPGkTvFV0NIgHZaliuiQaHhfR6a37iMbe9t42pZ03X etk2BKgBpovmH+Pa7WJt7GAMfHcO2CqMUH8fbdI3Q06RbxfQwVpJq+a9x19BHQdYiyGq dr8/fttuvQWTOepVJmip8Qdk1Orcd6/e9ZolVPB+EqnMfjI2lw26cnB8RjstvyU/c+f3 YRWfVKlqCNQkQALfFsdUi423S7An9LB/oivDATMtVxcuzRbzka2hmyYwghoWVHIuwPg+ DICQt79vC4DGuCNCtd1CAItc7KkeyeVpM0rmufMJQdAXIZk5PfXPloEAjOMS+IjtMBDq TGBw== X-Gm-Message-State: APjAAAW2+u8/yvMPU7kly3bEe4C7t+AK2GwznJ/9So4PjnWeFcdFgJdj OALv+9F4I8T3bueRG+iO67kZaA== X-Received: by 2002:a1c:1d97:: with SMTP id d145mr14050463wmd.136.1555151607702; Sat, 13 Apr 2019 03:33:27 -0700 (PDT) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id u17sm19547303wmu.36.2019.04.13.03.33.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 13 Apr 2019 03:33:27 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, srinivas.kandagatla@linaro.org Subject: [RESEND PATCH 20/20] nvmem: sunxi_sid: Support SID on H6 Date: Sat, 13 Apr 2019 11:33:05 +0100 Message-Id: <20190413103305.9576-21-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190413103305.9576-1-srinivas.kandagatla@linaro.org> References: <20190413103305.9576-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yangtao Li Add support for H6's SID controller. It supports 4K-bit EFUSE, bigger than before. Signed-off-by: Yangtao Li Acked-by: Maxime Ripard Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/sunxi_sid.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.21.0 diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c index 7013f9cc43c7..a079a80ddf2c 100644 --- a/drivers/nvmem/sunxi_sid.c +++ b/drivers/nvmem/sunxi_sid.c @@ -188,6 +188,11 @@ 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, +}; + 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 }, @@ -195,6 +200,7 @@ static const struct of_device_id sunxi_sid_of_match[] = { { .compatible = "allwinner,sun8i-h3-sid", .data = &sun8i_h3_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 }, {/* sentinel */}, }; MODULE_DEVICE_TABLE(of, sunxi_sid_of_match);