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: 1486 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E870B3F1BD for ; Tue, 14 Jul 2020 11:33:03 +0200 (CEST) Received: by mail-pj1-f72.google.com with SMTP id a6sf1931890pjd.4 for ; Tue, 14 Jul 2020 02:33:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594719182; cv=pass; d=google.com; s=arc-20160816; b=B7IPaRktu3fLuh1s1BLVHYobtWae84e11cMzycEKTeI2YkuCKk8/2w2xee6uvthvMt Ganyry4HInYg2Pi2i6J+2WobE+joUqb+TRYBiUnCJarpYBHA8RCqxVBVXQRxpKN2GosT Pw4vchvqLr6eO3NDUHOI/5t4M81imoplGuuJ4FKJT8NYmIX51/S2Uci7AYhToH1FbapD U/c6uSRUKFO8bYJ2Mkcsz1Mkskhqi4MQ+QJPhh+TPBqBttFT0bBRM6rrlK09KQtRTras D3s5UKYoj44SXYBC6R4IvpK6lgSf2gsylf/KVO1B9mWVZ47YFWRLDn/UgUxm3K3OKt6z hBuw== 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=2n2LFQYajZ6kz741EuMgPmOXFS8BS6t9/8DT6rduFXY=; b=UzJSTRUgWB1ChGmU2ZVhB5qVMSGWMVwaedEgT1id6UYFu7CApmqjfLXFj2zzHxMfyi EBZoE3nHQCWqJxQC9mzpPat1L8wwLgUno/IHehj0M4c+CCr7TGvH6k13DPvfoDCCcYcH Xee+BxIEvB0J0Z1Y/E38NynEygNktJphEZPKls4CyfNpKI6Z0qBc2YdS19x/HRw4f0vU UgRIiYQblyx1g8jr8V2iLCkjBO74HlEJEVN/IoG8WZJtRtCnl55Ak6A2yZOa9WiBDCKa JroeGhgFEHDoX/eXIcNUpOV+4bU47PxwEkS1l72q4rPhIU6bFA5Z9DBqeKLKwOzR8W7C ODrA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PWAANbHD; 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=2n2LFQYajZ6kz741EuMgPmOXFS8BS6t9/8DT6rduFXY=; b=BYeR7StvkpMvQil/v9Tz0iITImXCL+IWwdwQ8UPgwCUx+HhPTuU6K4Yf6rW6shdqq5 AZFGS+UUVQgYF9K2PXmWcQUW1kIpLfs4oMbgjnWAVzBzSjE8H//MfxNT3nQZndX4+OrP tTUPp3bKiAsNWsu27dhvAu1Smn2mP9z3pHL4o= 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=2n2LFQYajZ6kz741EuMgPmOXFS8BS6t9/8DT6rduFXY=; b=Zb1aq5o99Tif6vttgG/Q76ekYKGwEyeAhaOPU8dNgmHne2yH3kdnSQDNU5MvTayo+x kbDMHKH8MhAo0Uq4pyHBFaSRDgKYpSs7wIN1Cq1syc8n4Ho4b7OVISOV1kCX9t666mHk gPJ3AxrW91LJMExkRqSR5yzo54rXZWbIDZ40OlRnatd8nvKx4uXiLGFWzWzrWUg4Fx5R WHtAc8GLk/+JvzkgHXJ6kQ2vHcSxrDd1PVLuH4vpIEoFBHwQ/vc0uHi3RzWhurdVEqE8 AxqeszFgyJvcg7W1FjeVOGr5QiUWRQPlxBL+HuzvZ05FP0HWgpoS6VkxtYJ3XuHpU/zX Tteg== X-Gm-Message-State: AOAM533b8nNmRtkBJwCKd5oRti8Rrpvhy552dMm7La+cpbRUIIUvhRHr ebZqAA6f55yxqRSsgpVy99NL30dC X-Google-Smtp-Source: ABdhPJyKF0lXtg/TCq2oFVEQhs2QFZsnKkWX7okR31DyIWw1qfboXPYD/o1lzxAe4CCP5JH8gSbqdA== X-Received: by 2002:a17:902:9042:: with SMTP id w2mr3277544plz.9.1594719181975; Tue, 14 Jul 2020 02:33:01 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:b602:: with SMTP id b2ls7804493pls.3.gmail; Tue, 14 Jul 2020 02:33:01 -0700 (PDT) X-Received: by 2002:a17:902:bc49:: with SMTP id t9mr3249543plz.17.1594719181402; Tue, 14 Jul 2020 02:33:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594719181; cv=none; d=google.com; s=arc-20160816; b=RSSUL5XkTI/oyagcEu49sPI8lGFOhR7Jx5C+E3peVCjw1VC6JHDnBJaKZPhUO7Kt5/ +TlIFVgJc2OXzT0GRUXM3q52LOxScttW5sfY64O8jSWh3RcGTyMiKLXBFq0v/MLV5DOZ oLsGvfBLglCZjGP2qjKXueuRmc98fBgo0EM2F/VoKNRIfaEQTPl73HJldiicZuByk2QU 7p3SCgWacL5yWSZkxHNbqp7L+XNZ+74xgdQHeUAJhjnL537P2f/QGvC/Df3IV6JqICez DT00c4mf4v6ict+8HlZgwwC06NKcorMOA5TXI4u4j2kHBj+oRgq/8SnMSOJc2jZBVBl/ 1izg== 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=XuBV/PXF9Hlag4AzufY5psvs9oide8K2UFpwmzQeMzw=; b=MdcAQHMmEHXfMHVLaJ/B6RpRCVa9TBvRmP98PTrlByBKfWQHEi17hTZotto1LusvdC QD+EEArbeXJP2cBmkVlI9BeFCFt41H8jj9hZd9raLSmy8hBGZ62OXu7q4KB8aUUq/Y1W H05WA83Z69ql7hnQa6TxjvQ/h2Q6qFO2lE3/XvDMq76pQIT4daGR4TdwJcVijMRaigAV pVd5LjuqSB4uRO2CEB85mRL9kbNOFiCLISpdtIKIbWrd7UtD2mCffbXLqh8qxZP5Dbaz kmH+Dbk0qyB/bUl9xUMSi272wHrCKncqZzxNQOR7d8g+XY9XOuN9hB0GGAC2ODZNYLJ9 MLVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PWAANbHD; 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 j23sor2829176pjy.30.2020.07.14.02.33.00 for (Google Transport Security); Tue, 14 Jul 2020 02:33:00 -0700 (PDT) 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: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 Cc: Suniel Mahesh , U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki 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-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PWAANbHD; 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: , 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(-)