From patchwork Tue Jul 14 09:32:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11662161 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 4632F913 for ; Tue, 14 Jul 2020 09:33:55 +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 168A5208C3 for ; Tue, 14 Jul 2020 09:33:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WXCvzoxE"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="PWAANbHD" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 168A5208C3 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=QXy6GFpBTCe57SRzqZE8yw118JV3I87jJJphum+t87A=; b=WXCvzoxEXNvRr/h2m6fyus8GnZ s77bnE8dxMEAz3RbWgecr/rzhfTPQLB0qRVq+Vurd5+xOFf/FDOC7zeg4EJIYVwzVQtdYxkkpgaht fn01Ma+9OnHpn7458+fZqh75T0VTUISo9d07rbH1Svl1E0QRARX6V7W9w2BidFFoO+IoEMiQkcwMc Sff98SZfLpYx+TGNSJTYOdooFbGKv2PGzs5z4PWKllxzXa33MUzKbui343UysLtR+d1zOKc2TzDXn 4Kiq3q8Xcr4N0PxMRkau2rPw9iuCLjJCQyLOOCTH+xIV2HG4eGsRu++ID2HwllwDIctG67obqSwRr i80s1XvQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jvHJo-0003Zj-Rd; Tue, 14 Jul 2020 09:33:44 +0000 Received: from mail-pj1-x1043.google.com ([2607:f8b0:4864:20::1043]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jvHJ8-0003FY-Op for linux-rockchip@lists.infradead.org; Tue, 14 Jul 2020 09:33:04 +0000 Received: by mail-pj1-x1043.google.com with SMTP id md7so1254764pjb.1 for ; Tue, 14 Jul 2020 02:33:02 -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=XuBV/PXF9Hlag4AzufY5psvs9oide8K2UFpwmzQeMzw=; b=PWAANbHDMKLb9qvOCqIExsre/vpEG1ZRNTarRO+WbdVayLZ/ga3yXTNvAnUsp62i16 Hg44XCh9Z/+M4zUR4OarSAvX1zTMWC+7rk+mM6/+VWZFnoos7lGh/mDJZk0d6w+CwUz8 EGzYFBnHrJIDHH1FRdfuXNJiBxxSRUj4PBuHc= 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=XuBV/PXF9Hlag4AzufY5psvs9oide8K2UFpwmzQeMzw=; b=WFMIoCdeVodt86rBfA5gZPO2ujnIegEIJe2XSKocvMEKKxfbO9kLzFP+/L4FfERnjl nYpNtrvXjqy66cHdnvMK5C04L5nxkJl+rAanCZAe2S6v2U4sLmUKi6yZ2yALy7i01ROf 9iWg1w1Ny89NUHNj2YRYIvZlRBBqw94qH1Zj+An/xz6ciWWW9GzIDeLjlpWuxGWW8UWn EDwg8aHWC7AmtDOaGlxwTSHeAOHHH1PoayAyJF8y0AWKivYpvgwCnot6vG7SN6KUz4xW yj9YEDKTPJcDJgMPusoQ68kkwsskMDMh/D71p5IgJgVKPoizDcUGdBG1fITWSsN3kzSZ ypEw== X-Gm-Message-State: AOAM530TLcAb9AJb+scGg3pJJiogZs63lJp7hnre+SSSyGh0ArzzjzVW KtxC2oqlE4mfItpO/aL5hWcJpw== X-Google-Smtp-Source: ABdhPJxbirXqKMadMtCbKto/4GPgOMJ13HGgKuVocFX8ajuXK2Apu/LoobNtcm8ST5SBxaVPhuF1pQ== X-Received: by 2002:a17:90a:ba05:: with SMTP id s5mr3407772pjr.132.1594719180259; Tue, 14 Jul 2020 02:33:00 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:659e:b3d0:e662:3980]) by smtp.gmail.com with ESMTPSA id g6sm16924771pfr.129.2020.07.14.02.32.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2020 02:32:59 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass Subject: [PATCH v5 0/5] roc-rk3399-pc: Custom SPL Date: Tue, 14 Jul 2020 15:02:24 +0530 Message-Id: <20200714093229.28763-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-20200714_053303_250915_665420DF X-CRM114-Status: UNSURE ( 8.37 ) 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:1043 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -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 Message has at least one valid DKIM or DK signature -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 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): roc-rk3399-pc: Move leds setup in SPL rockchip: Don't clear the reset status reg rockchip: Separate the reset cause from display cpuinfo rockchip: spl: Move board_early_init_f after cpu timer 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/spl.c | 5 +- arch/arm/mach-rockchip/tpl.c | 7 --- board/firefly/roc-pc-rk3399/roc-pc-rk3399.c | 67 ++++++++++++++++----- configs/roc-pc-mezzanine-rk3399_defconfig | 5 +- configs/roc-pc-rk3399_defconfig | 5 +- 8 files changed, 80 insertions(+), 43 deletions(-)