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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id A0C48C61DA2 for ; Thu, 26 Jan 2023 09:26:25 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AED4A856CA; Thu, 26 Jan 2023 10:26:23 +0100 (CET) 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=1674725184; bh=+ietJikdgt1bMmfy9U5WRn+QnKSoryeLRJcHbbpCnxE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=niohp+Y8nEr1OpMux4GhikN78ZDO2Lp/pfKdoBYcAqrkxAnRy16Sc4H11J7syK6O9 HMBPtQCeLMc0w/v8ktV1Rfki1B+rU8KYHwM/J79HZKbtc4m7XNWIjl1Fc0mDsSl2+k 3DXdkdaPocb9yRIkwowdP0OtM0Zb2E/GHaDRNo51NAEHGYWwz5IXJZKh9rplS6bM/Q FsZ+ykhf0kW44QIKdfv9EQ5onJUMJ38vX8qYRbVGngVZ3gFIZawmJCRyIs+osZEaln clvRevNwaHUdy1zYYQcgtj1Oi/Y6N0wMZihxsOeRtl9wmciJYTrC5ddU1khuAxn402 zGtmZEl83SjUw== Received: by phobos.denx.de (Postfix, from userid 109) id 3A6B5856C7; Thu, 26 Jan 2023 10:26:21 +0100 (CET) Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [IPv6:2001:67c:2050:101:465::107]) (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 A056D856CA for ; Thu, 26 Jan 2023 10:26:18 +0100 (CET) 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 smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (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-107.mailbox.org (Postfix) with ESMTPS id 4P2b1N3TzCz9sS4; Thu, 26 Jan 2023 10:26:16 +0100 (CET) Message-ID: <474878c5-27e5-c85e-e86b-e454f9ed7cb6@denx.de> Date: Thu, 26 Jan 2023 10:26:15 +0100 MIME-Version: 1.0 Subject: Re: [PATCH v3] ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository Content-Language: en-US To: Tony Dinh , U-Boot Mailing List , =?UTF-8?B?UGFsaSBSb2jvv71y?= , =?UTF-8?Q?Marek_Beh=ef=bf=bdn?= , Chris Packham Cc: Jaehoon Chung , Tom Rini , Mark Kettenis , Simon Glass , Michael Trimarchi , =?UTF-8?B?TWFyZWsgQmVow4PCum4=?= References: <20230119030305.6202-1-mibodhi@gmail.com> From: Stefan Roese In-Reply-To: <20230119030305.6202-1-mibodhi@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4P2b1N3TzCz9sS4 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean On 1/19/23 04:03, Tony Dinh wrote: > This syncs drivers/ddr/marvell/a38x/ with the master branch of repository > https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell.git > > up to the commit "mv_ddr: a3700: Use the right size for memset to not overflow" > d5acc10c287e40cc2feeb28710b92e45c93c702c > > This patch was created by following steps: > > 1. Replace all a38x files in U-Boot tree by files from upstream github > Marvell mv-ddr-marvell repository. > > 2. Run following command to omit portions not relevant for a38x, ddr3, and ddr4: > > files=drivers/ddr/marvell/a38x/* > unifdef -m -UMV_DDR -UMV_DDR_ATF -UCONFIG_APN806 \ > -UCONFIG_MC_STATIC -UCONFIG_MC_STATIC_PRINT -UCONFIG_PHY_STATIC \ > -UCONFIG_PHY_STATIC_PRINT -UCONFIG_CUSTOMER_BOARD_SUPPORT \ > -UCONFIG_A3700 -UA3900 -UA80X0 -UA70X0 -DCONFIG_ARMADA_38X -UCONFIG_ARMADA_39X \ > -UCONFIG_64BIT $files > > 3. Manually change license to SPDX-License-Identifier > (upstream license in upstream github repository contains long license > texts and U-Boot is using just SPDX-License-Identifier. > > After applying this patch, a38x, ddr3, and ddr4 code in upstream Marvell github > repository and in U-Boot would be fully identical. So in future applying > above steps could be used to sync code again. > > The only change in this patch are: > 1. Some fixes with include files. > 2. Some function return and basic type defines changes in > mv_ddr_plat.c (to correct Marvell bug). > 3. Remove of dead code in newly copied files (as a result of the > filter script stripping out everything other than a38x, dd3, and ddr4). > > Reference: > "ddr: marvell: a38x: Sync code with Marvell mv-ddr-marvell repository" > https://source.denx.de/u-boot/u-boot/-/commit/107c3391b95bcc2ba09a876da4fa0c31b6c1e460 > > Signed-off-by: Tony Dinh Applied to u-boot-marvell/master Thanks, Stefan