From patchwork Tue Jul 21 15:05:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11675839 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 47EF613B6 for ; Tue, 21 Jul 2020 15:06:27 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B8F092077D for ; Tue, 21 Jul 2020 15:06:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="QXlCz8D6"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="QIgzVzii" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B8F092077D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References:List-Owner; bh=ooeML0gRhFhXERV/Zbq1R0UHEN5Im35ESWVIGrLZmVo=; b=QXlCz8D6rXXvNh20FGl6TqAUoz rI0fZHUQcR18ap20ka+jR0lra6si9dAWuKUd9+Crw6yztF0/LtGClUAGgmVZoFy4LzDFKtldPiUvg 7AjoIn8eeimvKtCbgTt61HQlKVE8NK4RAmFEv+7Afbq+ytMUuqHjGFDZ+7PmXEfKbV1ww+z84JLF3 YWidzRnEV6eydzjk1MVdaA+97HqDmPNsQPfZJhIxne+TPXjUUDso+xGno2vQEbo0kIpFOXDYOmy2t GrR950GViD3RQlb10sw9R2F+qjSC8gEGhPy9d0EDKPfWrcge/T+T/gDtIVmVA5sHInySb6Few1ilA QmAd1nNA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxtqY-0007Fv-Jl; Tue, 21 Jul 2020 15:06:22 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxtqW-0007EB-Kk for linux-rockchip@lists.infradead.org; Tue, 21 Jul 2020 15:06:21 +0000 Received: by mail-pg1-x544.google.com with SMTP id e8so12072766pgc.5 for ; Tue, 21 Jul 2020 08:06:18 -0700 (PDT) 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 :content-transfer-encoding; bh=/AvIuTmocjcmT91LwiJP4JLrRgbUU13zO/dEn3F4Wwo=; b=QIgzVzii17VFHlfDyZFxpiJVkET/cLorxfsQmsDvzQWYhj4lnTjjhMg2glvRafDwBX j1S2J8GYinpBB+MnxPCUrmqgD/6gI9HDj2F01WKuuWfvhj5BGRucLvMcD5nCKknFYSEm Lv1NHmRI4iQZ9ErP+TxviVjT7MxmqWUtuyujM= 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 :content-transfer-encoding; bh=/AvIuTmocjcmT91LwiJP4JLrRgbUU13zO/dEn3F4Wwo=; b=TJvPXv1DaWQHZ8FIok4NILbizOcmj1HAlehT7nmMWTt/pruZnfZIYGgJnF4w7kXjc9 ZC/eQ8oktSARq6XgRXd3TH3aB/McZ7r9SNTT6n7daGKzU5ut1xs04J+kwBD9wU3Q8hlE 2bCtIvSpeRUA2danvqUk8508ru1Ycdwj/E+pS4GJWF8i/GdW44iHszF2sWPchh28qm58 WOSq3QW4V1PAlVsEoMI5FM6fKmrJ6ZF3nYTk++v/i0KTIUpaB4m9Y9VlJed3x7pZFWKO xZnpyCPqEMTGEtO5aFDEni7XR+J+Dn8X7B5Zc5gkCVSiAxte86cTw1hZYpfdlzfOZMk2 SsKg== X-Gm-Message-State: AOAM530Xegjc57iKs/UkBu1Ur7/FFkMcYezrA0szIaeBtXvm/ocAX+wz TrMK8VXRkbvbjjFQkdxDCkvSRz0d4gXprA== X-Google-Smtp-Source: ABdhPJzh31cDHLgIDof4MAL/Hb/V146/ysqdpDB3HVuKguF3QP/P93TOvZqkwVA2Ljh7xZIJE1OLZA== X-Received: by 2002:a62:4e44:: with SMTP id c65mr24125405pfb.283.1595343976708; Tue, 21 Jul 2020 08:06:16 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:3df7:ef76:b2b5:fa14]) by smtp.gmail.com with ESMTPSA id h9sm20671276pfk.155.2020.07.21.08.06.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2020 08:06:15 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass Subject: [PATCH v6 0/5] rockchip: roc-rk3399-pc: Custom SPL Date: Tue, 21 Jul 2020 20:35:59 +0530 Message-Id: <20200721150604.35410-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200721_110621_002282_0EF37869 X-CRM114-Status: UNSURE ( 8.21 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:544 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki , Suniel Mahesh Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org This series supports custom initialization code required for roc-rk3399-pc board on SPL stage. Now this series is well mature code handling to add custom spl_board_init code parts. roc-rk3399-pc would require custom leds initialization based on user intervention of the power key. This code handles the user intervention via SPI environment variable. If someone or production systems wants this feature then 'pwr_key' has to be set otherwise it is normal like other rk3399 boards in Mainline. Changes for v6: - use spl board init code for led_setup Changes for v5: - drop banner changes - add code changes in roc-pc-rk3399.c Changes for v4: - enable SPL_BOARD_INIT in all platforms Changes for v3: - support leds on SPL - support env 'pwr_key' Jagan Teki (5): rockchip: rk3399: Add weak led_setup() rockchip: roc-rk3399-pc: Add custom led_setup() rockchip: Don't clear the reset status reg rockchip: Separate the reset cause from display cpuinfo rockchip: roc-rk3399-pc: Set LED only during POR and pwr_key=y arch/arm/include/asm/arch-rockchip/cru.h | 3 +- arch/arm/mach-rockchip/Makefile | 5 ++- arch/arm/mach-rockchip/cpu-info.c | 26 ++++++----- arch/arm/mach-rockchip/rk3399/rk3399.c | 6 +++ arch/arm/mach-rockchip/tpl.c | 7 --- board/firefly/roc-pc-rk3399/roc-pc-rk3399.c | 48 +++++++++++++++++---- configs/roc-pc-mezzanine-rk3399_defconfig | 6 ++- configs/roc-pc-rk3399_defconfig | 6 ++- 8 files changed, 71 insertions(+), 36 deletions(-)