Message ID | 20210111071020.614910-1-greg@embeddedgreg.com |
---|---|
State | Changes Requested |
Delegated to: | Eugen Hristev |
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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=embeddedgreg.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=embeddedgreg-com.20150623.gappssmtp.com header.i=@embeddedgreg-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=RLy9m20b; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4DDlGg2hzJz9sW1 for <incoming@patchwork.ozlabs.org>; Mon, 11 Jan 2021 18:10:35 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F09C182A28; Mon, 11 Jan 2021 08:10:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=embeddedgreg.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=embeddedgreg-com.20150623.gappssmtp.com header.i=@embeddedgreg-com.20150623.gappssmtp.com header.b="RLy9m20b"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5B46982A37; Mon, 11 Jan 2021 08:10:28 +0100 (CET) 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,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) (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 66A0D82A08 for <u-boot@lists.denx.de>; Mon, 11 Jan 2021 08:10:25 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=embeddedgreg.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=greg@embeddedgreg.com Received: by mail-il1-x136.google.com with SMTP id q5so17331762ilc.10 for <u-boot@lists.denx.de>; Sun, 10 Jan 2021 23:10:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embeddedgreg-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=oTb3dQKAgtqC8eVTZQhcrK/5XhkRQHvdfT3zucCis7s=; b=RLy9m20bo1p7Y+FxCG6RDVNl+oxePVdn1K1CIkJoyxSJyj9kNNiLpVwuYoLze2Oewz qfm/1GHBXQ+L8TIQFgAiwlMo50Gh22v54dnqT9KnAGdZUOUX/vnx9rzQ/5rEYx6/iDRN 52v7ZkcTCDZCjUSP4B8gCy4bff4vdREVLmgDC0QFkiFbh1PY2MJRecpbjOX+PSQHLqt0 z1ZNZQppjOU/N/rlPBNgK1ef15AsVhiAad4L0arm6CYYaJgts8s/q8+v0/whyEDU1f83 QxIms6WKjdUVlG670KHdEFMajNeAg6VW2xPEqcPddKRK4GZyw0uXnuCKG2dnhzrZ4yR5 J/8A== 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:mime-version :content-transfer-encoding; bh=oTb3dQKAgtqC8eVTZQhcrK/5XhkRQHvdfT3zucCis7s=; b=paWRhUORJJYP/dqF1XNBiwqNveoqXGggdx8KqzL2UiAcdxxLm8GxacWM/MyJzndMsC 1oWFZAP3OdUS9w/nCbdVzu8lsIGbqvqO42uiJKZWqzWXlaN6K5fWT9Gh8HVHcPIv64DP nMKKMrhhiSMs3AV/qyLZszUvO/04qJr7Ym4GaPnE3s6W0hwP/3wF7lcFb53e3dsgyd9b qiY0IVk0StOalOM0Uf9y5is3BgabGYTt4P8As1iiSmHa46KwFJ/h/F/jO1KpUGCTUCDs nMeWx9tbU9j3xpIJzpIUApMlXyXwYk9txe/okg7DiJdXDG9Ct2EiAWDF+B6beA+SrV6b 3ebQ== X-Gm-Message-State: AOAM530p01+yTAxV1a3ay8a4y+uf6NPLWMErwFOiLWF3YPh/EMFkg1Ox /ZXh01L5Ssd+MMPKV9FnZAz1A42RBvyrp1/J2Ggrnqc3im+9Jz8SbW7yqgVV/ClH8EwqGVNcvTs ojqarYkAsq4/gAyclCjnWTduho4zln7B2EmmmIsKK1tER2fyirKMHPIo5lWFbwprmejVQdN4NV5 I= X-Google-Smtp-Source: ABdhPJy4j12Autkxc78bA/xRo2nPQ6HyJK1z7bSQw2NGYA44QRBd6n/q2QgUXdvJ4DHkfAn3Nb/TOw== X-Received: by 2002:a05:6e02:46:: with SMTP id i6mr13738313ilr.105.1610349023542; Sun, 10 Jan 2021 23:10:23 -0800 (PST) Received: from localhost.localdomain ([67.201.145.6]) by smtp.gmail.com with ESMTPSA id r12sm13892199ile.59.2021.01.10.23.10.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Jan 2021 23:10:22 -0800 (PST) From: Greg Gallagher <greg@embeddedgreg.com> To: u-boot@lists.denx.de Cc: =?utf-8?q?Andreas_Bie=C3=9Fmann?= <andreas@biessmann.org>, Eugen Hristev <eugen.hristev@microchip.com>, Tom Rini <trini@konsulko.com>, greg <greg@embeddedgreg.com> Subject: [PATCH 1/2] ARM: at91: spl: add spl_early_init for sama52d platforms Date: Mon, 11 Jan 2021 02:10:19 -0500 Message-Id: <20210111071020.614910-1-greg@embeddedgreg.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
[1/2] ARM: at91: spl: add spl_early_init for sama52d platforms
|
expand
|
diff --git a/arch/arm/mach-at91/spl_atmel.c b/arch/arm/mach-at91/spl_atmel.c index 23588e79f9..217ed12e31 100644 --- a/arch/arm/mach-at91/spl_atmel.c +++ b/arch/arm/mach-at91/spl_atmel.c @@ -103,6 +103,13 @@ void board_init_f(ulong dummy) { int ret; + if (IS_ENABLED(CONFIG_OF_CONTROL)) { + ret = spl_early_init(); + if (ret) { + debug("spl_early_init() failed: %d\n", ret); + hang(); + } + } switch_to_main_crystal_osc(); #ifdef CONFIG_SAMA5D2
The dm root node is needed early in the spl to allow the timer to be used. This change calls spl_early_init to initialize the dm root node. Signed-off-by: Greg Gallagher <greg@embeddedgreg.com> --- arch/arm/mach-at91/spl_atmel.c | 7 +++++++ 1 file changed, 7 insertions(+)