From patchwork Sun Dec 29 19:07:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 958 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id DAC593F030 for ; Sun, 29 Dec 2019 20:07:42 +0100 (CET) Received: by mail-pf1-f199.google.com with SMTP id 145sf663365pfx.19 for ; Sun, 29 Dec 2019 11:07:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1577646461; cv=pass; d=google.com; s=arc-20160816; b=MlBZT7AfLyZECHTPU4QhhaVF0uYh9sU2qh/UjV3P/ykW/6NDssVAFi/FsG8CHVBN12 NTKF9CaNsq+M0aaqjk1UcHooT9O+LKUD0hIPSRNsjkmlM3cRPqCh7iuL7QLul4M1zdqQ 3Vf0QmIdpLBdh2vML8A6ekCMJsCMwwPyI41QXZDLrhcZBQPRF9BB5xvm0kjNiIqxYdGe CG7QPCLZ8kPY6V0ciKsNRVslQI+10dT0a2+Ehf8Lcutr8l412JutcjvCbRHgs/2RpkTk Sj7RB+uoUJ8iW7qNz33I1lyNzIyF0WPCF44jFMiXyK3rqvG/QAjZ1BgMlnOjhk548+QT UGDw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=rMJHelIH3Lv3KkRLHC4VjgVxpiQswfyFMGkNQaqEJQ0=; b=JAg7nipfpk7ZVi3kyuDb3GXNEel3x4CMZyrxGzWQbMTrqKbOyuGIKJ3yXj1G6itfqq xlt2Z1ibgwzzM4z163XYkledhjSWtGS/UbgFIH77HpnkXpw4mRc/wODdowWYHbr+tel0 7bAHIUaai1OMohKKH795MfAz46zytGuzQtVs2iHEMkIGX+/aPNFoiFP0Texn9SsecKD4 Cujz2GzpZHdidI1NSsN/e84+J1EqJsJEmBSBI7K2TGHhxMcUdi0P2kaNZ/mj6nSK8VdH TpVnYvWfouVc+oaMvFoMdLQBJ9+Z85qVIKyewCCCrdflSautUcVBM1IZ7BjVYIDAFAuT txaw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QPwHKmng; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=rMJHelIH3Lv3KkRLHC4VjgVxpiQswfyFMGkNQaqEJQ0=; b=qOTy89p662yxwJboX5F7Hv2KMFosl3InQIVMbJbGvDnI21quZtEmQg+f2TGy25IRHS Mmy41qkSSuKSXA/zgy0D0ThfI4XTZbxdw71w4FFY+S5/xng1CYdGPO8KcimZIuZyoUy/ s9H9HHxV1SuUNE8H5frbPoNf/xxYsiArIX0ss= 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:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=rMJHelIH3Lv3KkRLHC4VjgVxpiQswfyFMGkNQaqEJQ0=; b=SmAtADyVCWD70Z4zxy6Avd9kH61gUhw5Yj7wZXJ88VpFINIEPDXS56odOFFsHBdQP2 DuL/ThdmSwSBAA+4LkIOMXHfOVVElseJtg2ZkaKdVCweO0y4gMI/f74WYfQD087LBvk1 hUMOa2BKU4hR2KNQBo5HY9DVyJ5cKLEQBUE8tvI2FoA6Tv111ZfTpDE1zn7CN1ovT283 QH7fobZ/k9E3nbwFMlKqQ760nOLcXpaXDFSfHKF2p8Tw0+2aSPM8Ja0JKVXtSqhqbnhr GC2IyJzbUIU87O/nGo3LO1juQ4VMvAzwzf6px+4ixtZ2mDddogn8Wn62scSjnUe0htXh LErA== X-Gm-Message-State: APjAAAUSAvXyyXmoGgyva5YoeSbY9UtTYuSe2/WsTYOuyX55A3cS57/Q wnweyFxxyxvS+s2NtkgtyX8YvZkK X-Google-Smtp-Source: APXvYqycIK5yWHGvfZpG0OhrZ+UPyQXiyogvVjsae0KJhBNkhkyKsyM5YgYN9cgt3m/68S8if5eikQ== X-Received: by 2002:a63:ed48:: with SMTP id m8mr66240221pgk.399.1577646460674; Sun, 29 Dec 2019 11:07:40 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6a00:cc:: with SMTP id e12ls9357625pfj.6.gmail; Sun, 29 Dec 2019 11:07:40 -0800 (PST) X-Received: by 2002:a63:9548:: with SMTP id t8mr65358943pgn.205.1577646460104; Sun, 29 Dec 2019 11:07:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577646460; cv=none; d=google.com; s=arc-20160816; b=ZZZDRDyfz2va9HIE67fcWoq2kXPU1Iu461GO6huUURLq9Gutnggfx8DuD0g1Oy3ab9 tIwrveECz5Q6XHc3fuz9xcjLQdLrVpVHzA+lzBMJ1s+F9Mdnh2ejSz1C+2y2Evbri8kI EjMujE628rJhBJsVtHsEOp3rEbXCiwdBlNq0FnajzgcgkjAFCv/Vi9CR05mLDaruaIkq ZCysRQjXovXYhlZD29sCFeLimaEp5U+vwilLjY8a0QQaf1xECMYrk4LTut0hKJAtpUlP tz84xVZu1loqVzlU6oZ1wsqpOMRvbwMNT3uXmupNsOBjzPe5IknHMVv7TIDpeJYX/1ww qedw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=6/cIAYyGH0jAm5aI9tiqG+q7zzWwp5cQMmn3vxtp/j0=; b=H9hfPuSucf4SAoAEw/Wrk5To6xn+n7bEByf+kROUzbLt77/RogKh92e3R7d/pEfZfg bymryi/jeEHiLVQiXTQIKW1cAH+PM1fzMAR9wIPKZ+//i01bsn5IfulkhnGvLp/oDDUs cOr4HdTav7d/UAlKP7jJeDn0P7DgNsntKHjYSugwVbHbg1fF+ESzYrlStH0VoIBsroQS r1spXBhEQbh9MNyca9RpxKHbSmEMAKIggANOVHJ9PSRvTEwz+Jg98+baS8HX0zJpoplQ vcRdgNiJa9q4ZLWIrVZOyiywYCxT28WMvtUNZ8ZZc7EKzwTHpHGZHY8DkvigrYBAuE2S Y8IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QPwHKmng; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id y2sor21343603pjd.22.2019.12.29.11.07.39 for (Google Transport Security); Sun, 29 Dec 2019 11:07:39 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:f84:: with SMTP id 4mr41849977pjz.74.1577646458592; Sun, 29 Dec 2019 11:07:38 -0800 (PST) Received: from localhost.localdomain ([2405:201:c809:c7d5:f590:ce0e:1ce1:c326]) by smtp.gmail.com with ESMTPSA id u10sm44879700pgg.41.2019.12.29.11.07.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Dec 2019 11:07:38 -0800 (PST) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Akash Gajjar , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v3 0/5] rk3399: Add redundant boot support Date: Mon, 30 Dec 2019 00:37:21 +0530 Message-Id: <20191229190726.29266-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QPwHKmng; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Boot redundancy is one of the key criteria for switch recovery or golden partition based on the bootcount value, which indeed very much needed in production systems on the fields. This is v3 patchset support redundant boot on Rockchip rk3399. This series skip wdt changes as Marek patches support the same. Changes for v3: - rework of cru.h to include rk3288 - rebase on master Changes for v2: - Handle TPL build for watchdog, if TPL won't enable - Fix comments for dw_wdt driver-model comments from Andy - Add Kconfig items for WDT_TPL - Support WDT on TPL as well - Use SYS_SOC for cpu-info Any inputs? Jagan. Jagan Teki (5): rockchip: Add cpu-info rockchip: rk3399: Enable DISPLAY_CPUINFO arm: rockchip: Add common cru.h rockchip: Add common reset cause rockchip: rk3399: Add bootcount support arch/arm/include/asm/arch-rockchip/clock.h | 4 +- arch/arm/include/asm/arch-rockchip/cru.h | 28 ++++++++ .../include/asm/arch-rockchip/cru_rk3288.h | 20 ++---- .../include/asm/arch-rockchip/cru_rk3399.h | 10 +-- arch/arm/mach-rockchip/Kconfig | 2 + arch/arm/mach-rockchip/Makefile | 1 + arch/arm/mach-rockchip/cpu-info.c | 65 +++++++++++++++++++ arch/arm/mach-rockchip/rk3288/clk_rk3288.c | 2 +- arch/arm/mach-rockchip/rk3288/rk3288.c | 41 +----------- arch/arm/mach-rockchip/rk3399/Kconfig | 10 +++ arch/arm/mach-rockchip/rk3399/clk_rk3399.c | 2 +- arch/arm/mach-rockchip/rk3399/rk3399.c | 2 +- configs/evb-rk3288_defconfig | 1 - configs/evb-rk3399_defconfig | 1 - configs/ficus-rk3399_defconfig | 1 - configs/firefly-rk3288_defconfig | 1 - configs/firefly-rk3399_defconfig | 1 - configs/khadas-edge-captain-rk3399_defconfig | 1 - configs/khadas-edge-rk3399_defconfig | 1 - configs/khadas-edge-v-rk3399_defconfig | 1 - configs/leez-rk3399_defconfig | 1 - configs/miqi-rk3288_defconfig | 1 - configs/nanopc-t4-rk3399_defconfig | 1 - configs/nanopi-m4-rk3399_defconfig | 1 - configs/nanopi-neo4-rk3399_defconfig | 1 - configs/orangepi-rk3399_defconfig | 1 - configs/phycore-rk3288_defconfig | 1 - configs/popmetal-rk3288_defconfig | 1 - configs/puma-rk3399_defconfig | 1 - configs/roc-pc-rk3399_defconfig | 1 - configs/rock-pi-4-rk3399_defconfig | 1 - configs/rock960-rk3399_defconfig | 1 - configs/rockpro64-rk3399_defconfig | 1 - configs/tinker-rk3288_defconfig | 1 - configs/tinker-s-rk3288_defconfig | 1 - configs/vyasa-rk3288_defconfig | 1 - drivers/clk/rockchip/clk_rk3288.c | 42 ++++++------ drivers/clk/rockchip/clk_rk3399.c | 36 +++++----- drivers/ram/rockchip/sdram_rk3288.c | 10 +-- drivers/ram/rockchip/sdram_rk3399.c | 10 +-- drivers/video/rockchip/rk3288_mipi.c | 2 +- drivers/video/rockchip/rk3399_mipi.c | 2 +- drivers/video/rockchip/rk_mipi.c | 2 +- include/configs/rk3399_common.h | 5 +- 44 files changed, 177 insertions(+), 143 deletions(-) create mode 100644 arch/arm/include/asm/arch-rockchip/cru.h create mode 100644 arch/arm/mach-rockchip/cpu-info.c