From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 36C78C61DA4 for ; Thu, 16 Feb 2023 09:07:19 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 61B7C85B1E; Thu, 16 Feb 2023 10:07:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="Vnjkchxq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D518E85B16; Thu, 16 Feb 2023 10:07:12 +0100 (CET) Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 80EB8857A8 for ; Thu, 16 Feb 2023 10:07:03 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jagan@amarulasolutions.com Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-52ee632329dso15862207b3.6 for ; Thu, 16 Feb 2023 01:07:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Zq5Ey+j8DDhMoDEsTjDK30SwV5avxsqNBdfVHwgtIOY=; b=VnjkchxqYUk5B+HysaMP/RtjuKsMT4hqNbbgqx2Om2oM/z2/DKiBEiUHzUHQMdpQCE uy7/VBXbsv2+oUcDg50Kk7g6fcDUkOVAo1J+7cIXVtrzwpgxkdJmLXmj+Fg+VYQTLGO0 N8Kl5ROkUvbZqaduQGXcpFSrpYSlyFAX+dDUA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Zq5Ey+j8DDhMoDEsTjDK30SwV5avxsqNBdfVHwgtIOY=; b=7E5weoj9m1QvrMvkib/fzjFTKRtkyE40crbbwWwhv1Z5UYKO1vAuppWOMhU3Lz9zlU 3EE8aBqvluVTmmM7JfCW01q0lJhmExws5i63UCxhfXMt243TAvYckwWWidtk/FiIRrsc HZ4GPDmjh6ikj6HPO1AzTHXCLEeIP6+wzFG7Zs/u5QSDsejaGOuuY0bk+NcX2tQgZz5e ij9OBSnqkaWx0nwYf625FZkIjeY+HUDnrn8NJ7o8qn/ycEhXEvMwjv7LlnwKAJ0Dj21+ lS5wdMXcDVtMTEPNXpmai6+ppQXsBwQdcnvS++gyBUgiGBqgOqXRpRkNwROua0Oe5hlr VoWg== X-Gm-Message-State: AO0yUKWYBEsndne8h6OuQx1kdx6jYQmRBQ2t61XnhnJ/R4lTF5IjkeQT WBc+JAWzgKeS8D3grD0f4btDvOpz/IdzC+TAOVp/BQ== X-Google-Smtp-Source: AK7set80RSoO6VHr3/XF3M7szcfbrRA69SxZ0vyI8y0/d1e64oaZlH5Mzo+IA5rEpvW3Tj4AD1+nnN6xQbQ+VbK8cUo= X-Received: by 2002:a81:9243:0:b0:533:8a5d:8f48 with SMTP id j64-20020a819243000000b005338a5d8f48mr124852ywg.107.1676538422245; Thu, 16 Feb 2023 01:07:02 -0800 (PST) MIME-Version: 1.0 References: <20230205202116.2891673-1-jonas@kwiboo.se> <20230214103300.690542-1-jonas@kwiboo.se> <20230214103300.690542-3-jonas@kwiboo.se> In-Reply-To: <20230214103300.690542-3-jonas@kwiboo.se> From: Jagan Teki Date: Thu, 16 Feb 2023 14:36:50 +0530 Message-ID: Subject: Re: [PATCH v2 2/6] rockchip: Use an external TPL binary on RK3568 To: Jonas Karlman Cc: Simon Glass , Philipp Tomsich , Kever Yang , Joseph Chen , Alper Nebi Yasak , Quentin Schulz , Jagan Teki , Heinrich Schuchardt , u-boot@lists.denx.de Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On Tue, Feb 14, 2023 at 4:03 PM Jonas Karlman wrote: > > Rockchip SoCs typically use U-Boot TPL to initialize DRAM, then jumps > back to BootRom to load next stage, U-Boot SPL, into DRAM. BootRom then > jumps to U-Boot SPL to continue the normal boot flow. > > However, there is no support to initialize DRAM on RK35xx SoCs using > U-Boot TPL and instead an external TPL binary must be used to generate a > bootable u-boot-rockchip.bin image. > > Add CONFIG_ROCKCHIP_EXTERNAL_TPL to indicate that an external TPL should > be used. Build U-Boot with ROCKCHIP_TPL=/path/to/ddr.bin to generate a > bootable u-boot-rockchip.bin image for RK3568. Please add documentation in doc/board/rockchip/rockchip.rst and take an example of a real DDR bin from rkbin. Jagan.