Message ID | 20210725231636.879913-24-me@yifangu.com |
---|---|
State | Deferred |
Delegated to: | Tom Rini |
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=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 (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GXzvq433Pz9sRK for <incoming@patchwork.ozlabs.org>; Mon, 26 Jul 2021 09:36:07 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 557DA8329D; Mon, 26 Jul 2021 01:35:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=yifangu.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 78BA282C2D; Mon, 26 Jul 2021 01:17:24 +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,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qt1-f174.google.com (mail-qt1-f174.google.com [209.85.160.174]) (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 9789183232 for <u-boot@lists.denx.de>; Mon, 26 Jul 2021 01:16:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=yifangu.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=gyf304@gmail.com Received: by mail-qt1-f174.google.com with SMTP id h10so5865623qth.5 for <u-boot@lists.denx.de>; Sun, 25 Jul 2021 16:16:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=l2RxN80iVtjaKR0+9Vr0OPtRKv0AH6UX/OcO0wNzj/k=; b=qaX1nXA44HpmNyIAgq2NvxivVkvefteuej8Gg1iRlL9udn3b9eJkG8R+G7YhGYw5JW 8Od4FJ8htE2qhY2SQ70PB2NhGg+rl3Ih9LfFGCUckBdvry58h/lwzSt8pbxZ4Y+XbaXC /QiENWwWVHe0JGKnQJXYQtpwOstN8cKb4IESCtsga1kz7eVWDQlxLHN3DcZh+5tOV5Uz R+6z24BkRLQufn2PJLbgb8bWYybKWig+g+8E7YuYXzf7cR84rUexM9XqWj0jwtnVZ4Nm k62WX2a/DVH6pnjE3RpDi1M/YrarnuFsmws4ZX7sDbRzz3K3Uvor+p6/hfCBHEFtf5Rq YB2w== X-Gm-Message-State: AOAM533xnI5zn+al2ScDaZIHykxQE901xQAm9X/nRmfjbZy6Fe+mF8QT TCv5DUw5jvpY8mNgtQ3So1HOU8/UsQO5rGrJ X-Google-Smtp-Source: ABdhPJz2cCbZHRxbnlXHHEmLCG50qW/p87TDt6HQNv4bpJqnZqH8knxYjL6FwxXgg5+zYc07VHSG6g== X-Received: by 2002:ac8:76da:: with SMTP id q26mr12945185qtr.183.1627255011268; Sun, 25 Jul 2021 16:16:51 -0700 (PDT) Received: from yifangu-Virtual-Machine.mshome.net (pool-100-6-159-43.pitbpa.fios.verizon.net. [100.6.159.43]) by smtp.gmail.com with ESMTPSA id u184sm17754694qkd.53.2021.07.25.16.16.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Jul 2021 16:16:50 -0700 (PDT) From: Yifan Gu <me@yifangu.com> To: u-boot@lists.denx.de Cc: Yifan Gu <me@yifangu.com>, Jagan Teki <jagan@amarulasolutions.com>, Andre Przywara <andre.przywara@arm.com>, Icenowy Zheng <icenowy@aosc.io>, George Hilliard <thirtythreeforty@gmail.com> Subject: [PATCH 23/27] sunxi: suniv: do not detect boot sector on suniv Date: Sun, 25 Jul 2021 19:16:32 -0400 Message-Id: <20210725231636.879913-24-me@yifangu.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210725231636.879913-1-me@yifangu.com> References: <20210725231636.879913-1-me@yifangu.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Mon, 26 Jul 2021 01:32:10 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
Add F1C100s based PocketGo handheld support
|
expand
|
diff --git a/arch/arm/mach-sunxi/board.c b/arch/arm/mach-sunxi/board.c index 7fa44b6f3a..90c58ce86c 100644 --- a/arch/arm/mach-sunxi/board.c +++ b/arch/arm/mach-sunxi/board.c @@ -305,6 +305,7 @@ uint32_t sunxi_get_boot_device(void) } #ifdef CONFIG_SPL_BUILD +#ifndef CONFIG_MACH_SUNIV static u32 sunxi_get_spl_size(void) { if (!is_boot0_magic(SPL_ADDR + 4)) /* eGON.BT0 */ @@ -339,8 +340,6 @@ unsigned long spl_mmc_get_uboot_raw_sector(struct mmc *mmc, return sector; } - -#ifndef CONFIG_MACH_SUNIV u32 spl_boot_device(void) { return sunxi_get_boot_device();
The BROM of suniv does not pass info to SPL, and it should always boot from the 8KB offset. Signed-off-by: Yifan Gu <me@yifangu.com> --- arch/arm/mach-sunxi/board.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)