Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752675AbbHJDXB (ORCPT ); Sun, 9 Aug 2015 23:23:01 -0400 Received: from mail-qg0-f47.google.com ([209.85.192.47]:33228 "EHLO mail-qg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752127AbbHJDW6 (ORCPT ); Sun, 9 Aug 2015 23:22:58 -0400 From: Shunqian Zheng To: srinivas.kandagatla@linaro.org, maxime.ripard@free-electrons.com, heiko@sntech.de, linux-kernel@vger.kernel.org, caesar.wang@rock-chips.com Cc: dianders@chromium.org, linux-rockchip@lists.infradead.org, xjq@rock-chips.com, ZhengShunQian Subject: [PATCH 0/3] Add eFuse driver of Rockchip SoC Date: Mon, 10 Aug 2015 11:22:40 +0800 Message-Id: <1439176963-8969-1-git-send-email-zhengsq@rock-chips.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1647 Lines: 41 From: ZhengShunQian Base on nvmem framework, this three patches implement the eFuse driver of Rockchip SoC. The data from eFuse contains CPU leakage, chip code and version etc. The flow of reading data from eFuse is quite simple, config the CTRL register, write data address to CTRL register, then data is available in DOUT register. Although always enable eFuse clock seems awkward, I can't find a better method to enable clock before read/write in the nvmem framework. Appreciate for any suggestions. ZhengShunQian (3): nvmem: fix the out-of-range leak in read/write() nvmem: rockchip-efuse: implement eFuse driver clk: rockchip: do not gate the efuse256 clock .../devicetree/bindings/nvmem/rockchip-efuse.txt | 36 +++++ arch/arm/boot/dts/rk3288.dtsi | 13 ++ drivers/clk/rockchip/clk-rk3288.c | 2 +- drivers/nvmem/Kconfig | 10 ++ drivers/nvmem/Makefile | 2 + drivers/nvmem/core.c | 4 +- drivers/nvmem/rockchip-efuse.c | 155 +++++++++++++++++++++ include/dt-bindings/clock/rk3288-cru.h | 1 + 8 files changed, 220 insertions(+), 3 deletions(-) create mode 100644 Documentation/devicetree/bindings/nvmem/rockchip-efuse.txt create mode 100644 drivers/nvmem/rockchip-efuse.c -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/