Message ID | 20220508150825.21711-3-jbx6244@gmail.com |
---|---|
State | Changes Requested |
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: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=UMDcgkeo; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kx74c0V1Cz9t4b for <incoming@patchwork.ozlabs.org>; Mon, 9 May 2022 01:09:20 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9E7D983F71; Sun, 8 May 2022 17:08:43 +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="UMDcgkeo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5A38583D9C; Sun, 8 May 2022 17:08:39 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) (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 9019983D9C for <u-boot@lists.denx.de>; Sun, 8 May 2022 17:08:34 +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-ej1-x635.google.com with SMTP id m20so22473706ejj.10 for <u-boot@lists.denx.de>; Sun, 08 May 2022 08:08:34 -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=fDm2h7lHhGjS7DQE9+joNVkN+B9vd2bGTICRFNcQmrw=; b=UMDcgkeozIPqzzygph9aM3TJ1h5c4KTaWlRlWvTzVPW3jFRH06HiFlcWRel+Jbz2dy xs7zNmeN+CueRurV+OSpPHcvl+s8S7J4kSkPXrg7eIkLm15bfC8znYEd02QcvcFvJ/d+ 94EY64T3lV9UUvaxazahG9oE8hLW4/RtLofIXcx1MURsQdnCmeWQy2wYpC1qab+ZALi0 fJbjYcCmq+LBMerbaks5pndWDhij20yNbYzNGp+pv3N1XMDPkp458nKahaTAjuzIkO4A iLp90fpUhlop4oLQXhqFn6kUMt7m2bhynz40G0X0RMsoMu12Aid1w9E/HfuFqwdta90t n3xA== 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=fDm2h7lHhGjS7DQE9+joNVkN+B9vd2bGTICRFNcQmrw=; b=pCcRGFhu9K7eJ8K4RITIQaewGLcmAvuvK2s5gWMSfB3sqGi2SrkQ0m1jPfEIh1EGPE 9omp77q9q+EioKggnmbE4aDycO7D7dmC1XC+Gv4ulADuBS48WJlmdlDDn1R8t5hskue+ uqSXQYwl7QmYrtH38moWWY+mvLa2Hyd5HM+AGJ4mFfdDt9d/sZY2+8MhX4kffzrbaxIP kTXqEgNXIQeqsYhn1pa8mVwFR4liu416a+GMUZeGLYmeWOwc6X1fJ6ihlZCYQfUv/kZu VKyj8lBO9v1eUqBpREDyYzV5f+BExfBzKetChxxyyuxN5t9YF8Drf2gJGlkVJcnzwWt8 VQwQ== X-Gm-Message-State: AOAM530CGSGFH7SpGds5P+86GmwZYOrG1i8I/pFRCwE4hm7DdFyI4moB s5CCMu5crMG9ZiHmS5uOzu8= X-Google-Smtp-Source: ABdhPJxF/FnI8NGp/OGu0TGseOQvDa1YIJRQLjrNvMyiQ4DaUgG35tXHS55Y/H1DIoKnhpLdquBTRw== X-Received: by 2002:a17:906:5d05:b0:6f6:2f7c:ffb8 with SMTP id g5-20020a1709065d0500b006f62f7cffb8mr9074755ejt.649.1652022514087; 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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 08:08:33 -0700 (PDT) From: Johan Jonker <jbx6244@gmail.com> 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 02/17] rockchip: spl: allow more boot devices Date: Sun, 8 May 2022 17:08:10 +0200 Message-Id: <20220508150825.21711-3-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 <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: <https://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> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean |
Series |
Add rk3066 ADC and USB support
|
expand
|
diff --git a/arch/arm/mach-rockchip/spl.c b/arch/arm/mach-rockchip/spl.c index ceef9d91..968f896a 100644 --- a/arch/arm/mach-rockchip/spl.c +++ b/arch/arm/mach-rockchip/spl.c @@ -53,13 +53,16 @@ u32 spl_boot_device(void) { u32 boot_device = BOOT_DEVICE_MMC1; -#if defined(CONFIG_TARGET_CHROMEBOOK_JERRY) || \ +#if defined(CONFIG_SPI_BOOT) || \ + defined(CONFIG_TARGET_CHROMEBOOK_JERRY) || \ defined(CONFIG_TARGET_CHROMEBIT_MICKEY) || \ defined(CONFIG_TARGET_CHROMEBOOK_MINNIE) || \ defined(CONFIG_TARGET_CHROMEBOOK_SPEEDY) || \ defined(CONFIG_TARGET_CHROMEBOOK_BOB) || \ defined(CONFIG_TARGET_CHROMEBOOK_KEVIN) return BOOT_DEVICE_SPI; +#elseif defined(CONFIG_NAND_BOOT) + return BOOT_DEVICE_NAND; #endif if (CONFIG_IS_ENABLED(ROCKCHIP_BACK_TO_BROM)) return BOOT_DEVICE_BOOTROM;
Rockchip SoCs have more boot device options then currently included in the function spl_boot_device(). Make this function generic for SPI and NAND. Signed-off-by: Johan Jonker <jbx6244@gmail.com> --- arch/arm/mach-rockchip/spl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)