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 5F092C433EF for ; Sun, 8 May 2022 15:10:11 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B0A7383F30; Sun, 8 May 2022 17:08:57 +0200 (CEST) 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="QugcCeDu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 658D083F52; Sun, 8 May 2022 17:08:43 +0200 (CEST) Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) (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 38A9C83E2B for ; Sun, 8 May 2022 17:08:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jbx6244@gmail.com Received: by mail-ed1-x52b.google.com with SMTP id c12so6157761edv.10 for ; Sun, 08 May 2022 08:08:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HOZK/jWMTSeRvmXYHGzN/+l9vCsHu+js+MTFOqBHdnQ=; b=QugcCeDuyLeqfJWYj2KizNKVTcoJW4tlcIYLWkHYT4VKu1vVqncyhs1A4dhqDMbcc+ It0NZDE7Xo3peS77nnc/02rXXc1INchajzL7t1fJbIzgdFJ1nOdw3LqIZWadf2auCYFb 74DZXPNmSIrxn0Ikz5PlMvfbiH2bSy2h3CsIxund6la53Yhsg4QulOwJOTTAtGyK3+1r KqPaypo9vpavJhebBQG2QiddT3CNAhTWVybfasuwL0UUPu2uIG/80+57IJkBADN3QHB9 iE1T9wvAXxv3u1PDkwxa/qkwMyoeq25hyF8pbZ3VhYm/ixZkOVUHIEeIuh+5eU/TSHnO yYrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HOZK/jWMTSeRvmXYHGzN/+l9vCsHu+js+MTFOqBHdnQ=; b=QdPmIxfQJKGdcigEYtxYCIxW0Y5aJx4lbSYuHmR0yg0bLlmyqcEu3+F6zI1qFDJGjj 6c03ubM0vycwRlx+3mwBm7V0cHbUpHWKLaCgTAfKfx8zYP3gMMGMzY795jeE4TxLFNIY Fkz5U+boLr+4ZhEa/tg+hzakkPWrf6uFkZLpijkJ0M2enSaLNerXFFlSpnQ+G/vJFOFB ARmc82rjU2EOYU14r3o4HamAkvTIqqX/i3zklh8K8x1nCJ8QBD63zBE/ii9nHCfTxAHL M0FPVrcvD8YobWGXwn0wdN2PFBU3Nb0ILwwV92r/FYIXTrgTKrAGbuexmm3M9mAS/1w0 iRRg== X-Gm-Message-State: AOAM530CtV3EPm7otZoUoGhDWyrTvV+n+pmE/NfMBeC2orNVZHKP97kf OlEorJdgO+NAaZcyG/FgEtU= X-Google-Smtp-Source: ABdhPJx5yEj4PcXfL0KbbKYHUfSxZpJfzrxyVSPuDPHYSXWGvCnG8/p9fxX7DqL4CBCPJ1cCZFI33Q== X-Received: by 2002:a05:6402:50a:b0:426:16c3:4283 with SMTP id m10-20020a056402050a00b0042616c34283mr13214527edv.371.1652022514775; Sun, 08 May 2022 08:08:34 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id yl26-20020a17090693fa00b006f3ef214dc2sm4102721ejb.40.2022.05.08.08.08.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 08:08:34 -0700 (PDT) From: Johan Jonker To: kever.yang@rock-chips.com Cc: sjg@chromium.org, philipp.tomsich@vrull.eu, lukma@denx.de, marex@denx.de, u-boot@lists.denx.de Subject: [PATCH v1 03/17] rockchip: spl-boot-order: add usb boot option Date: Sun, 8 May 2022 17:08:11 +0200 Message-Id: <20220508150825.21711-4-jbx6244@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220508150825.21711-1-jbx6244@gmail.com> References: <20220508150825.21711-1-jbx6244@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.5 at phobos.denx.de X-Virus-Status: Clean Add usb boot option to spl-boot-order.c Signed-off-by: Johan Jonker --- arch/arm/mach-rockchip/spl-boot-order.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-rockchip/spl-boot-order.c b/arch/arm/mach-rockchip/spl-boot-order.c index 93b8e7de..c4ba369b 100644 --- a/arch/arm/mach-rockchip/spl-boot-order.c +++ b/arch/arm/mach-rockchip/spl-boot-order.c @@ -77,6 +77,9 @@ static int spl_node_to_boot_device(int node) if (!uclass_get_device_by_of_offset(UCLASS_SPI_FLASH, node, &parent)) return BOOT_DEVICE_SPI; + if (!uclass_get_device_by_of_offset(UCLASS_USB, node, &parent)) + return BOOT_DEVICE_USB; + return -1; } -- 2.20.1