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 X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B753C432BE for ; Tue, 31 Aug 2021 05:45:27 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 675036101C for ; Tue, 31 Aug 2021 05:45:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 675036101C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C71BD83403; Tue, 31 Aug 2021 07:45:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1630388724; bh=l0/KPnCOm1h8e7QrP0ICj5Kma4sQT/nLyKkQD4x7QeY=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=IEoUAh5OX6XEpyP+Fl/FJZmlhx/UJ0A8e7+Y4K0emjOOyoXDrxnBfJQ/lLcJQlP4V XbDkOGdNtH2+dAhJKd3YWMKqRHHkovAaZr3jVr7SDTiuToPjJww9fPmauTNE1DCjsv RuQt4fZDwSABKMYUZkvHhluAfqGJCetkHoj7P7fyHjPT5/IPbj5tNX4pfZ8QesrR19 ymQxyFx7zfkMMNj1WWPMgey9kqlSgIIzdgb5DdZuqoUDhHk5Wdsvgt7ZPCztefaf3G UJlvox/6IVdjSsC6oA4Myigd7pnaTEYX0+0NDglBw6nusmkUusWyrYzQXZGmsZQ8rA Iuol93gWa/DcQ== Received: by phobos.denx.de (Postfix, from userid 109) id 88D5983402; Tue, 31 Aug 2021 07:45:21 +0200 (CEST) Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [91.198.250.253]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2567E83402 for ; Tue, 31 Aug 2021 07:45:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4GzGP903P3zQkBD; Tue, 31 Aug 2021 07:45:17 +0200 (CEST) Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id 4dOjyoYRt6gr; Tue, 31 Aug 2021 07:45:14 +0200 (CEST) Subject: Re: [PATCH 3/9] mvebu: Migrate CONFIG_DDR_32BIT/64BIT to Kconfig To: Tom Rini , u-boot@lists.denx.de Cc: =?UTF-8?Q?Marek_Beh=c3=ban?= References: <20210821175019.24180-1-trini@konsulko.com> <20210821175019.24180-3-trini@konsulko.com> From: Stefan Roese Message-ID: <0cfa1090-98aa-8374-c03f-48f7e60e0cf6@denx.de> Date: Tue, 31 Aug 2021 07:45:13 +0200 MIME-Version: 1.0 In-Reply-To: <20210821175019.24180-3-trini@konsulko.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 0F0EC184A X-Rspamd-UID: acf00d X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean On 21.08.21 19:50, Tom Rini wrote: > Move CONFIG_DDR_32BIT/64BIT to Kconfig as a choice for Armada XP > platforms. Make 64bit the default as this mirrors the current code. > > Cc: Marek Behún > Cc: Stefan Roese > Signed-off-by: Tom Rini Reviewed-by: Stefan Roese Thanks, Stefan > --- > arch/arm/mach-mvebu/Kconfig | 13 +++++++++++++ > configs/ds414_defconfig | 1 + > include/configs/ds414.h | 3 --- > 3 files changed, 14 insertions(+), 3 deletions(-) > > diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig > index 89737a37ad9e..1daa64763b03 100644 > --- a/arch/arm/mach-mvebu/Kconfig > +++ b/arch/arm/mach-mvebu/Kconfig > @@ -184,6 +184,19 @@ config TARGET_CRS3XX_98DX3236 > > endchoice > > +choice > + prompt "DDR bus width" > + default DDR_64BIT > + depends on ARMADA_XP > + > +config DDR_64BIT > + bool "64bit bus width" > + > +config DDR_32BIT > + bool "32bit bus width" > + > +endchoice > + > config SYS_BOARD > default "clearfog" if TARGET_CLEARFOG > default "helios4" if TARGET_HELIOS4 > diff --git a/configs/ds414_defconfig b/configs/ds414_defconfig > index bfe2e5f4fe70..d3fb1dcd40b1 100644 > --- a/configs/ds414_defconfig > +++ b/configs/ds414_defconfig > @@ -7,6 +7,7 @@ CONFIG_SPL_LIBGENERIC_SUPPORT=y > CONFIG_SYS_MALLOC_F_LEN=0x2000 > CONFIG_NR_DRAM_BANKS=2 > CONFIG_TARGET_DS414=y > +CONFIG_DDR_32BIT=y > CONFIG_ENV_SIZE=0x10000 > CONFIG_ENV_OFFSET=0x7E0000 > CONFIG_ENV_SECT_SIZE=0x10000 > diff --git a/include/configs/ds414.h b/include/configs/ds414.h > index 5d401281c7e6..66bbff71a948 100644 > --- a/include/configs/ds414.h > +++ b/include/configs/ds414.h > @@ -67,9 +67,6 @@ > #define CONFIG_SPL_STACK (0x40000000 + ((192 - 16) << 10)) > #define CONFIG_SPL_BOOTROM_SAVE (CONFIG_SPL_STACK + 4) > > -/* DS414 bus width is 32bits */ > -#define CONFIG_DDR_32BIT > - > /* Default Environment */ > #define CONFIG_LOADADDR 0x80000 > #define CONFIG_BOOTCOMMAND \ > Viele Grüße, Stefan -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de