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 487C0C433EF for ; Fri, 11 Mar 2022 14:13:13 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 947BC83B1C; Fri, 11 Mar 2022 15:12:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=konsulko.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 7F3478390E; Fri, 11 Mar 2022 15:12:28 +0100 (CET) Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) (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 EE6B583A2B for ; Fri, 11 Mar 2022 15:12:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tom.rini@gmail.com Received: by mail-qt1-f182.google.com with SMTP id g7so678184qtg.7 for ; Fri, 11 Mar 2022 06:12:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=88k+txCAavRU8Gxgk82kb3nBRRMvTv4vMPSjryd0KjQ=; b=IUgjenR2Uufm6bBrEa/vuFQn4mqeNGt5L7aJshW79L2ZHCMuFv5jj2xNGUK3dqOUzV lrh9QlIhRSWaJ6HMD0RksEpmA/cVJ6o5FMf1YAlyARo1iMoIMr4zV5DAkQdMCZv/Glrc FpSLaZzTKdgIriYeEl+1p+p595uFHEclOtqqOCbuHJpQ6yxHOXDR2hBWTptoiUhNbNVY GhbfJb2GKEehsnf+jt590koxkdQrzS3+PrBBjHKZLCPLIOz1A2Eaq9Cr+33gt7+0oaz8 PqA9MrrDfttrA0cWRhtLj49JjBi/8rkc6kVZrAifwLRcRyz369KIvlt0mXJ+KA/g8Npg GAgQ== X-Gm-Message-State: AOAM531MkT89IvFiseQLoW7g7MDa/aMrA7jvx0/7p2Mf5Q0Gux7Tb0QH oYFsjPmgVqVfSAM9Wojb21UlJYm/VQ== X-Google-Smtp-Source: ABdhPJzazkMbL0dCqce71gfEzTz5t2/HkNpcIIj2erJP95ZLuTq0RrN0c2B5sYH8TfuiHfvQk2q5+w== X-Received: by 2002:a05:622a:145:b0:2e1:b932:d019 with SMTP id v5-20020a05622a014500b002e1b932d019mr4162021qtw.46.1647007935558; Fri, 11 Mar 2022 06:12:15 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b01-cbda-2ef0-5dff-fedb-a8ba.res6.spectrum.com. [2603:6081:7b01:cbda:2ef0:5dff:fedb:a8ba]) by smtp.gmail.com with ESMTPSA id z6-20020ae9c106000000b0067d3b9ef387sm3488297qki.28.2022.03.11.06.12.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 06:12:15 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [v2 04/15] Convert CONFIG_A003399_NOR_WORKAROUND to Kconfig Date: Fri, 11 Mar 2022 09:11:59 -0500 Message-Id: <20220311141210.2810346-4-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220311141210.2810346-1-trini@konsulko.com> References: <20220311141210.2810346-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.5 at phobos.denx.de X-Virus-Status: Clean This converts the following to Kconfig: CONFIG_A003399_NOR_WORKAROUND Signed-off-by: Tom Rini --- README | 4 ---- arch/powerpc/cpu/mpc85xx/Kconfig | 7 +++++++ include/configs/P1010RDB.h | 6 ------ 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/README b/README index 6bb8d6e25bdc..95da83b76414 100644 --- a/README +++ b/README @@ -374,10 +374,6 @@ The following options need to be configured: See Freescale App Note 4493 for more information about this erratum. - CONFIG_A003399_NOR_WORKAROUND - Enables a workaround for IFC erratum A003399. It is only - required during NOR boot. - CONFIG_A008044_WORKAROUND Enables a workaround for T1040/T1042 erratum A008044. It is only required during NAND boot and valid for Rev 1.0 SoC revision diff --git a/arch/powerpc/cpu/mpc85xx/Kconfig b/arch/powerpc/cpu/mpc85xx/Kconfig index a978eea1617a..0e0b9235ad0e 100644 --- a/arch/powerpc/cpu/mpc85xx/Kconfig +++ b/arch/powerpc/cpu/mpc85xx/Kconfig @@ -354,6 +354,7 @@ config ARCH_MPC8560 config ARCH_P1010 bool + select A003399_NOR_WORKAROUND if SYS_FSL_ERRATUM_IFC_A003399 && !SPL select BTB select FSL_LAW select SYS_CACHE_SHIFT_5 @@ -878,6 +879,12 @@ config SYS_CCSRBAR_DEFAULT if changed by pre-boot regime. The value here must match the current value in SoC. If not sure, do not change. +config A003399_NOR_WORKAROUND + bool + help + Enables a workaround for IFC erratum A003399. It is only required + during NOR boot. + config SYS_FSL_ERRATUM_A004468 bool diff --git a/include/configs/P1010RDB.h b/include/configs/P1010RDB.h index 5f36951932d4..8fd9eb7bfa64 100644 --- a/include/configs/P1010RDB.h +++ b/include/configs/P1010RDB.h @@ -411,12 +411,6 @@ extern unsigned long get_sdram_size(void); #undef CONFIG_SYS_RAMBOOT #endif -#ifdef CONFIG_SYS_FSL_ERRATUM_IFC_A003399 -#if !defined(CONFIG_SPL) && !defined(CONFIG_SYS_RAMBOOT) -#define CONFIG_A003399_NOR_WORKAROUND -#endif -#endif - #define CONFIG_SYS_INIT_RAM_LOCK #define CONFIG_SYS_INIT_RAM_ADDR 0xffd00000 /* stack in RAM */ #define CONFIG_SYS_INIT_RAM_SIZE 0x00004000 /* End of used area in RAM */ -- 2.25.1