Message ID | 20190722115942.24962-29-kever.yang@rock-chips.com |
---|---|
State | Accepted |
Commit | 4a395788c407a49a00ab027e2e9cba3df6f3dabd |
Delegated to: | Kever Yang |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=rock-chips.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="jjwpmRVH"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45skjh2w7zz9s8m for <incoming@patchwork.ozlabs.org>; Tue, 23 Jul 2019 00:38:00 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 0D060C2208F; Mon, 22 Jul 2019 14:37:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 7DCF6C21EA2; Mon, 22 Jul 2019 12:06:21 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 4FD33C21F92; Mon, 22 Jul 2019 12:06:19 +0000 (UTC) Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by lists.denx.de (Postfix) with ESMTPS id A19CCC21EBB for <u-boot@lists.denx.de>; Mon, 22 Jul 2019 12:00:52 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id i189so17269779pfg.10 for <u-boot@lists.denx.de>; Mon, 22 Jul 2019 05:00:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=YoVvEgOi4UDqXF17eYeEGvwzRYU9b3bMIDaxDVMyJdc=; b=jjwpmRVHAgp123nQF2Xvhb0rmkHSR6LG8oVCMcFkq+K5p0bmDg/ek3YIujN7Zh+cgO KejB2e2hGi/mi8MAyDF7eaE+O0KhqkF0GyGV4J7hL3MMlURQbZ0FckZH2v/YsP2/MlW+ 4ooD1CIt1Rx8mDBLl+fDekfPMyr43xhJ4a01X0a8pWeWmFYSmYyd+8WhEnoMOxDPIpue Rxt0Nb84n0lebs7/a/fVyVlTJ9fR2WOFIUyZ71ESF4WwCHC8mCAguzslybhG5MpucmjI KR6e1lDE9obTBLFBJsg+zbEd9FjCE52dYe8xe1aGeP7nlqls6ERQQYy21XR13x5GOUvh Rwng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=YoVvEgOi4UDqXF17eYeEGvwzRYU9b3bMIDaxDVMyJdc=; b=Y6IEh9P5FYY6HiAWVl7jZ2SQPBHhgOsGmVpSP7GsBk9/+XbaEdhTLYSnS+FXDR8WLW 8rXmfk9BMa3raVh7FKJw2reDwljpycB3fvmNO2jffJ3AZjEDXLCDBsg2gf8jZVlXVP8x r3dpV1dinBgddc1sdGVJaerEu+izs8+A5MxV8nCgAqKepEYOuVph50jxmdturAOljtIj oLVdbuttNJ+iAoUj7yjhTL4sMCUkO57O1/xjSHBxPgPHrHaA4Ipte3ybhv7pw5qmV/qh NKKVox8laz1NmL1Ba1wlMEAQT3plQCQPFStJ2UEt8fiT42VaOLIrHDm3nfVhvsZjLIdk C3zA== X-Gm-Message-State: APjAAAWB9cSV7/CFyEWaPASoTglt9/+iPl+NPRPh0iZIw38lvVMbYdxM l6PmCFxJJXdvTfCPxnFtg4C5dquk X-Google-Smtp-Source: APXvYqzarrzy17pKgLyN1SldKr6M6+euyJi4gr2+NfFGiZLuQuLd8ntTl1nga8Zb1cagCRMYqIeYlQ== X-Received: by 2002:a17:90a:6097:: with SMTP id z23mr77182137pji.75.1563796851328; Mon, 22 Jul 2019 05:00:51 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id u134sm37621218pfc.19.2019.07.22.05.00.49 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 22 Jul 2019 05:00:50 -0700 (PDT) From: Kever Yang <kever.yang@rock-chips.com> To: u-boot@lists.denx.de Date: Mon, 22 Jul 2019 19:59:35 +0800 Message-Id: <20190722115942.24962-29-kever.yang@rock-chips.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190722115942.24962-1-kever.yang@rock-chips.com> References: <20190722115942.24962-1-kever.yang@rock-chips.com> Subject: [U-Boot] [PATCH 28/35] rockchip: rk3368: add boot_devices mapping to support 'same-as-spl' X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
rockchip: Migrate to use common SPL board file
|
expand
|
diff --git a/arch/arm/mach-rockchip/rk3368/rk3368.c b/arch/arm/mach-rockchip/rk3368/rk3368.c index 47786f52ee..c75a5cd0c4 100644 --- a/arch/arm/mach-rockchip/rk3368/rk3368.c +++ b/arch/arm/mach-rockchip/rk3368/rk3368.c @@ -8,6 +8,7 @@ #include <syscon.h> #include <asm/armv8/mmu.h> #include <asm/io.h> +#include <asm/arch-rockchip/bootrom.h> #include <asm/arch-rockchip/clock.h> #include <asm/arch-rockchip/cru_rk3368.h> #include <asm/arch-rockchip/grf_rk3368.h> @@ -52,6 +53,11 @@ static struct mm_region rk3368_mem_map[] = { struct mm_region *mem_map = rk3368_mem_map; +const char * const boot_devices[BROM_LAST_BOOTSOURCE + 1] = { + [BROM_BOOTSOURCE_EMMC] = "dwmmc@ff0f0000", + [BROM_BOOTSOURCE_SD] = "dwmmc@ff0c0000", +}; + int dram_init_banksize(void) { size_t max_size = min((unsigned long)gd->ram_size, gd->ram_top);
The driver need a mapping to get the dts node by boot srouce ID. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> --- arch/arm/mach-rockchip/rk3368/rk3368.c | 6 ++++++ 1 file changed, 6 insertions(+)