From patchwork Thu Jun 18 15:39:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1407 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C50753F03F for ; Thu, 18 Jun 2020 18:07:57 +0200 (CEST) Received: by mail-pg1-f197.google.com with SMTP id 72sf4365502pgb.1 for ; Thu, 18 Jun 2020 09:07:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1592496476; cv=pass; d=google.com; s=arc-20160816; b=ecb9Wow2dG953QRWHnAbDgC44b+8PoV05CjqoAO5pt53DresLe8EUTnK5acZUekg29 iur9iCNUZiXpVU7hfGjIRvSkgIy7tM3U/n5zNPrgI7G/IC1EJ6ovmHoqPs6xU1KcBLmT hWQaQPxaryzn1ChH+RvWWITgPjg+jQbNkQwbh37AnXkM4jOXgu9gjMmTLxB5iC/Bg1aH XNsCmkZjA+rEelPtz6CG11hHGrfT8QWqIUw2N3B0edjcXNClRnKhsEQThqRp21GcIiOS SfRH4jmieswhX606B93BJOw4m4n+1USaXKyAlzb8Ow+gR9Qr184pKeKXotG0CEjP1ZZs I/Kg== 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=ZwtOYvwxJHzgdqH26VrnvF/yU5I7p3DasFelZVXZ9J4=; b=ply21LQpNJ1T2SvJPPMpOC+yD6Me7aZ5TndyibbDmemSaTF0Po+R/fnFFNYpTwPuNy oyr/gJwLNyp6oOnyEwWpxNT172xAEilVeFCNx9ISsDV84TnFo6ujsqCUS21yLWYi7QG7 Rk4pEU7G9Mn7zaL8CmYO+94p0sOQSHL+EY9sQXfpPwIV28LDYnS75n8elGbvEJiyGrE5 nTgNwG0td4NVuBlJQ40S67Hmz6RJHQtmoCl2QUIT6m8NkEPvmM9gx34DUenLK4IbZAwn tPznR4cszj81vPOjUcQGB2Hh44pEPlPZynybYEluRp+tXMK++ovd4E1dDazOi8aPuWO+ Igew== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ekbInZMK; 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=ZwtOYvwxJHzgdqH26VrnvF/yU5I7p3DasFelZVXZ9J4=; b=C9TGzWjF7E+C2gO+ZKW6RmPllvMCou7w7Txk/QLGc7cE+U9j72na7WIg6cEWVpSH0b TTG2lNd5iDef0irAA465ZDQ/t4rUEeS8UIJMNWUVimxQp9DuTFnejlxBHr6YnUALMF7B pljVV89C0yOFMigOTw35g5sifSEJSjW1tZgiE= 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=ZwtOYvwxJHzgdqH26VrnvF/yU5I7p3DasFelZVXZ9J4=; b=NrAYjYgvUVG6I0M9MlNP5CfwSYij4JCsPpf4lFpvKYP5o9XB/bCUGxzFiz8rPJsVsO 0PRD8OTgwlrHX+evNoXxdklyoco3+NLAuJO65LTyH9ORdW4bqTHwlPm9CQ81l851Xabb qW7iFOtGagZJtEu70mapmLBmw7kzorcGY5VOi6TIGP7jepD39IZ7ZvyfunjQcJ1jb63+ StwpTrtD6DEOxVIcZKsHKKnuogBUWTfunN4Y4EP2MTgSRS8SLPi7Yuq/nFALBuS0RR72 1MFER3QcS4OhHHpZ9DeBzwKFKtTmsjZO6+DRpFYShdAsZtEXJ4IuZ0b656vOuRw5TYB5 fX3Q== X-Gm-Message-State: AOAM533VTFdJqYzjvuMjBiiHaUOPj7ynl76aGgGRoLLdhwl7c1f2vEVL jd+IBl5Jl7MmTUBtJ1ZLYQl3/6RB X-Google-Smtp-Source: ABdhPJyY6FfPmyAX8St7Aw1DLisAY2c67oHWfL3SFiCwUf4Vv2+bG54NrIULPdLnt4P1KwP3M2JLfw== X-Received: by 2002:a05:6a00:22c2:: with SMTP id f2mr4397561pfj.187.1592496475729; Thu, 18 Jun 2020 09:07:55 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:718c:: with SMTP id i12ls2586035pjk.1.canary-gmail; Thu, 18 Jun 2020 09:07:55 -0700 (PDT) X-Received: by 2002:a17:90a:a106:: with SMTP id s6mr5245541pjp.211.1592496475220; Thu, 18 Jun 2020 09:07:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592496475; cv=none; d=google.com; s=arc-20160816; b=Pv9tf/2WLnP3YSjnTCSfEltZND8MgECaSVyJ93UvZdZ+XggxpSjl5yBdGjAKYckrSA UUSr6lebfZ9f1dvybrdkvKnRFeFvTiujlItqbLGIfatHZeUx1yXU6JBzXdIxLg1DgPiU GyCdsbHcUQHIetnp7OOAWC/OZj1arsfhDA4+rbV9V6uw97GfFBy4wBGvdErvEe9kq8At 8XrxzCsA4myMqvYtyWnwY7AzfgxT4+hdpFffBIiy/JvHkhskT30EReMCvjKh8ncUOcQO iunp2y6mSFRIPQJvToGD9RimhA2XxSO3F8eOGGdHfBdQb9/CErBWKCTPwZhZtaNOr0AD 1F7A== 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=FuhZRZJ4Cx1gOdaD51HlkCCxvWnxb19KN8kXk57tUD0=; b=DotPzr0fqNmFSktc4rD7mbsF2kOj4NFZFRmSpJL7EKEbQRvdy3uZHgzC+zeTbIf3sF PHDY6PTCma6xrQS3hd6/JyIOVzxU+yHNpzBkAwJqDgTUXSd80aeH3m+DzucZWpzEqcRt rI8PVGUWwloANL5oaJO2ZwR1b3x1xBVbUGMOLpF7CJkkilCAGnYUa33XyLg0pR7r9cop u/q955q4rD+PzhF2gbS9pjsxNBFuTl4mxHM2oJXzzuh+bjSoB108vnGwonbpFghxV+PN noo1dZc2Z+cfM5CSyeDd0cALzfUz/VCrWrEzUaOdoFN15bpA1oOa4kx5yAbXPmLR8Wwu l27w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ekbInZMK; 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 f10sor4696817plj.29.2020.06.18.09.07.54 for (Google Transport Security); Thu, 18 Jun 2020 09:07:54 -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:902:9301:: with SMTP id bc1mr4127638plb.116.1592496474470; Thu, 18 Jun 2020 09:07:54 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:b0c7:f192:869b:df87]) by smtp.gmail.com with ESMTPSA id u4sm3264943pfl.102.2020.06.18.09.07.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2020 09:07:53 -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 v4 0/5] roc-rk3399-pc: Custom SPL init Date: Thu, 18 Jun 2020 21:09:43 +0530 Message-Id: <20200618153948.218506-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=ekbInZMK; 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. Here is the previous v3 this series[1]. 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 v4: - enable SPL_BOARD_INIT in all platforms Changes for v3: - support leds on SPL - support env 'pwr_key' [1] https://patchwork.ozlabs.org/project/uboot/cover/20200608183144.26809-1-jagan@amarulasolutions.com Any inputs? Jagan. Jagan Teki (5): rockchip: spl: Add spl_board_init rk3399: spl: Print SPL banner after relocation roc-rk3399-pc: Move leds setup in SPL rockchip: Separate the reset cause from display cpuinfo roc-rk3399-pc: Set LED only during POR and pwr_key=y arch/arm/Kconfig | 1 + arch/arm/include/asm/arch-rockchip/cru.h | 2 + arch/arm/mach-rockchip/Kconfig | 2 - arch/arm/mach-rockchip/Makefile | 5 +- arch/arm/mach-rockchip/cpu-info.c | 20 +++--- arch/arm/mach-rockchip/rk3188/rk3188.c | 2 +- arch/arm/mach-rockchip/rk3399/rk3399.c | 57 ----------------- arch/arm/mach-rockchip/spl.c | 11 ++++ arch/arm/mach-rockchip/tpl.c | 7 --- board/firefly/firefly-rk3288/firefly-rk3288.c | 2 +- board/firefly/roc-pc-rk3399/Makefile | 4 ++ board/firefly/roc-pc-rk3399/roc-pc-rk3399.c | 21 ------- board/firefly/roc-pc-rk3399/spl.c | 56 +++++++++++++++++ board/phytec/phycore_rk3288/phycore-rk3288.c | 2 +- .../puma_rk3399/puma-rk3399.c | 61 +++++++++++++++++++ configs/roc-pc-mezzanine-rk3399_defconfig | 6 +- configs/roc-pc-rk3399_defconfig | 6 +- 17 files changed, 162 insertions(+), 103 deletions(-) create mode 100644 board/firefly/roc-pc-rk3399/spl.c