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 EF338C636D4 for ; Mon, 13 Feb 2023 22:29:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CE55985811; Mon, 13 Feb 2023 23:28:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="aHjSmm0d"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 717E385831; Mon, 13 Feb 2023 23:28:18 +0100 (CET) Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) (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 17DF080BAD for ; Mon, 13 Feb 2023 23:27:57 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=macroalpha82@gmail.com Received: by mail-oi1-x22d.google.com with SMTP id t5so11554220oiw.1 for ; Mon, 13 Feb 2023 14:27:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=W1BytJlOZ21Ytze982O10+w20dBmGJqIRWLo9og6258=; b=aHjSmm0dQ451CjlwDFEtrouKLrEHxoa6wxYbBsybEYAeGdL7RBNDnhC33Ek4EGwhCt 9J7co7Pm13g3r5cmcRQ9OW4ni7zs+hUhqvmisJQ96CQqBRLJ//+BNxYdMLu7jAi1KoxO f5LWAEa75YsTD8YBTQ/6w6NddBTIJddqIZs7I1b/OIQAYjDv7MEaka55jsf9jQqu0oyg o5FY7Z9seglRipNdiJ99PK+BsfciNM2A4ohAfe90yLhEpkeXXwcWAswGKudyrh7psmT5 5mJc2UpmXUu3fo87+r34T2TgmSsXZ3BTywWs3PIui80j9DHMZkRIcdKf62EKW+v3pnSp tRsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=W1BytJlOZ21Ytze982O10+w20dBmGJqIRWLo9og6258=; b=xJtay+nXUJ9nFqo4Vg4egiVkvrvzME0ua5oFB9rT1jKwrI77W7ggRdLaIc+m7Zj+Db g1EeVejjbSflxCIrDu9HOxjuaMFQj1dVWEn0JceEG2cHx2sYzOQkBCkl+jiNMmUDIDCb GNqTgu6n/gF5MmKYW94Ix0RuRE4dfH+ChBVo7z4dbsfQFyg1W214iza4aXLTBi18W282 QfAYmAD5VSvG8eWcBreDnEIgSw3btqhpQcQuVpqqrFIoQtSLtmj0WFM4n04idfVOyIkj mvuRIr3itq3R9nmOvUIzwji3Cnbb69B/ZFezkbp9w9kHbFYWRm2e7oQ0Lj3FLuZsZXT4 iBoQ== X-Gm-Message-State: AO0yUKXYd6sCKBlRexjbheHEdC5e/svwtu1g/9eTzYo2JtSKUUpTmnOD 0uPTVAgtkXJDNf8rgwW199YGcSere7o= X-Google-Smtp-Source: AK7set9c3kyLGY7R+tLV4UE5pDZP9pyhtxEYf6pmEtsRHX4rmTZ7rNMaGiy4dSy8HrveIcoqe+NKOw== X-Received: by 2002:aca:1316:0:b0:363:a5fd:9cd5 with SMTP id e22-20020aca1316000000b00363a5fd9cd5mr231934oii.3.1676327275470; Mon, 13 Feb 2023 14:27:55 -0800 (PST) Received: from localhost.localdomain ([76.244.6.13]) by smtp.gmail.com with ESMTPSA id bf16-20020a056808191000b0037d790218c1sm3044085oib.9.2023.02.13.14.27.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 14:27:55 -0800 (PST) From: Chris Morgan To: u-boot@lists.denx.de Cc: heiko@sntech.de, sjg@chromium.org, philipp.tomsich@vrull.eu, kever.yang@rock-chips.com, chenjh@rock-chips.com, pgwipeout@gmail.com, heiko.stuebner@theobroma-systems.com, Chris Morgan Subject: [PATCH V2 5/9] rockchip: rk3568: add boot device detection Date: Mon, 13 Feb 2023 16:27:38 -0600 Message-Id: <20230213222742.135093-6-macroalpha82@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230213222742.135093-1-macroalpha82@gmail.com> References: <20230213222742.135093-1-macroalpha82@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 From: Chris Morgan Enable spl to detect which device it was booted from. Signed-off-by: Peter Geis Signed-off-by: Chris Morgan --- arch/arm/mach-rockchip/rk3568/rk3568.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3568/rk3568.c b/arch/arm/mach-rockchip/rk3568/rk3568.c index 22eeb77d41..a2d59abc26 100644 --- a/arch/arm/mach-rockchip/rk3568/rk3568.c +++ b/arch/arm/mach-rockchip/rk3568/rk3568.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -70,6 +71,12 @@ static struct mm_region rk3568_mem_map[] = { } }; +const char * const boot_devices[BROM_LAST_BOOTSOURCE + 1] = { + [BROM_BOOTSOURCE_EMMC] = "/sdhci@fe310000", + [BROM_BOOTSOURCE_SPINOR] = "/spi@fe300000/flash@0", + [BROM_BOOTSOURCE_SD] = "/mmc@fe2b0000", +}; + struct mm_region *mem_map = rk3568_mem_map; void board_debug_uart_init(void) -- 2.34.1