From patchwork Thu Jan 23 08:27:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olliver Schinagl X-Patchwork-Id: 1227709 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: 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=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=schinagl.nl Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=schinagl.nl header.i=@schinagl.nl header.a=rsa-sha256 header.s=7of9 header.b=aU12+jya; 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 483Fky3HBTz9sR1 for ; Thu, 23 Jan 2020 19:27:38 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BF4A681766; Thu, 23 Jan 2020 09:27:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=schinagl.nl Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=schinagl.nl header.i=@schinagl.nl header.b="aU12+jya"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 50265817B0; Thu, 23 Jan 2020 09:27:34 +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=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from 7of9.schinagl.nl (7of9.schinagl.nl [62.251.20.244]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0E6E381744 for ; Thu, 23 Jan 2020 09:27:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=schinagl.nl Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=oliver@schinagl.nl Received: from 3of9.evbox.com (unknown [83.232.59.109]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by 7of9.schinagl.nl (Postfix) with ESMTPSA id 335AD12D0555; Thu, 23 Jan 2020 09:27:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=schinagl.nl; s=7of9; t=1579768051; bh=OfNOOUwra9ed0ntVpW3GMMS1vIdC9T+HDLzaAT2EiG0=; h=From:To:Cc:Subject:Date; b=aU12+jyaSASD0Y4+qlUuvc72keOj3xh/PFjkEuSJwg1F0clO6dVEG1Otcq/gJxBL/ hbs/DTMSq12OHMWUs3ZZsAhQLeGtA/ukQc5L9yG45e1Bm776vpuZLZHRfZf4f8VysC UpfFZc/82fMNHBJSwQ9GAIF+BhNWzm4ZmP76i7NU= From: Olliver Schinagl To: Michal Simek Subject: [PATCH] Kconfig/zynq: Set default SPL_STACK_R_ADDR Date: Thu, 23 Jan 2020 09:27:06 +0100 Message-Id: <20200123082706.22858-1-oliver@schinagl.nl> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Olliver Schinagl , u-boot@lists.denx.de, Olliver Schinagl Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean The zynq architecture depends on SPL_STACK_R_ADDR to be set, and thus it makes sense for the ARCH_ZYNQ to depend on SPL_STACK_R. Further more that address needs to have a sane default. So lets follow the OMAP2PLUS and set a default for the Zynq as well. Signed-off-by: Olliver Schinagl --- arch/arm/Kconfig | 1 + common/spl/Kconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index a623ef5743..413b3e3a6e 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1046,6 +1046,7 @@ config ARCH_ZYNQ select SPL_DM if SPL select SPL_OF_CONTROL if SPL select SPL_SEPARATE_BSS if SPL + select SPL_STACK_R if SPL select SUPPORT_SPL imply ARCH_EARLY_INIT_R imply BOARD_LATE_INIT diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 76f39dc04f..cdebc62d0f 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -244,6 +244,7 @@ config SPL_STACK_R_ADDR depends on SPL_STACK_R hex "SDRAM location for SPL stack" default 0x82000000 if ARCH_OMAP2PLUS + default 0x200000 if ARCH_ZYNQ help Specify the address in SDRAM for the SPL stack. This will be set up before board_init_r() is called.