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 27FD8C433EF for ; Sat, 25 Jun 2022 15:05:00 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D7236844A7; Sat, 25 Jun 2022 17:03:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="Hu9JV6TU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 08C258441A; Sat, 25 Jun 2022 17:03:07 +0200 (CEST) Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) (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 5D21E8441A for ; Sat, 25 Jun 2022 17:03:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x72c.google.com with SMTP id z12so4066301qki.3 for ; Sat, 25 Jun 2022 08:03:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=2jFpKCtHQSNgYP/lVd8uNX5CXJO8rK3o4VNb+1rhzQw=; b=Hu9JV6TUMO9U0g3BdY8kHztGNt1u9bUbJp18ZBotuCPm5FpO4mcaUdLC9mGTCPY9TW mDttVfUovfnAHeR+yNfbV8jU66tj7EMvNQdK6nF0LmY1p/Ze9qM4zle3RNVIfeEvhSKJ u6Sm+lqW9KQp+hM9jT2s/ZMJ6yruN8wx3E2mU= 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=2jFpKCtHQSNgYP/lVd8uNX5CXJO8rK3o4VNb+1rhzQw=; b=3b7w4Gi68KqhKpObmPaOLVedcdjY/QGtTRINRV8W9RtCIrKRmZFN1/h1jzEGqOMwBH nkQfVKVvmgnLNjJR226E/2uXbRuyhgWNl6tZFBiIvpaEjP8efaCXJDPCvJoB48NY93Bf x5aJ40bCeVxGCeSJe8rWcnFs1H/R00BlA3YWLwS4o+1WL5jRRlWT54MpjxnQaHFdA6h+ Kg+q7VJZcNVe0Yqs6GvM3IgJ+aX2KmqD293EElMB3JAXVzkbb9cZMXE6kjVNbL85OF1w 6zcj2kux9rw43S4pBHu9GHOypvh+EomDXK18Vk26axHEGd9+UF1UlR1J982jX4UNeHiG gYXg== X-Gm-Message-State: AJIora8AKrDmgWCuXA8FKbpvzPCywb6SgqmGUtrBKPjn52fyXzgcs4xQ uX/lRPpja+TGaI20B3SOtF2fCVvVNcDhEQ== X-Google-Smtp-Source: AGRyM1uwHRYruCJoQvYgAqkgGAPU6iqjzVckrbDn5Sf2rXZGlHdhCj3DVKyRAiGkFEZg13JddHy7+Q== X-Received: by 2002:a37:a995:0:b0:6af:618:f5e7 with SMTP id s143-20020a37a995000000b006af0618f5e7mr3065786qke.566.1656169382303; Sat, 25 Jun 2022 08:03:02 -0700 (PDT) Received: from bill-the-cat.lan (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id o6-20020a05620a2a0600b006a6d3fa430csm4375766qkp.58.2022.06.25.08.03.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jun 2022 08:03:01 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 11/20] Convert CONFIG_SYS_83XX_DDR_USES_CS0 to Kconfig Date: Sat, 25 Jun 2022 11:02:41 -0400 Message-Id: <20220625150250.1398291-11-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220625150250.1398291-1-trini@konsulko.com> References: <20220625150250.1398291-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.6 at phobos.denx.de X-Virus-Status: Clean This converts the following to Kconfig: CONFIG_SYS_83XX_DDR_USES_CS0 Signed-off-by: Tom Rini --- README | 4 ---- arch/powerpc/cpu/mpc83xx/Kconfig | 6 ++++++ include/configs/MPC837XERDB.h | 1 - 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README b/README index 6bdfca66d65f..efc75a3f75b9 100644 --- a/README +++ b/README @@ -2074,10 +2074,6 @@ Low Level (hardware related) configuration options: - CONFIG_FSL_DDR_BIST Enable built-in memory test for Freescale DDR controllers. -- CONFIG_SYS_83XX_DDR_USES_CS0 - Only for 83xx systems. If specified, then DDR should - be configured using CS0 and CS1 instead of CS2 and CS3. - - CONFIG_RMII Enable RMII mode for all FECs. Note that this is a global option, we can't diff --git a/arch/powerpc/cpu/mpc83xx/Kconfig b/arch/powerpc/cpu/mpc83xx/Kconfig index d1b9ae4c3c92..9a31604ba3e6 100644 --- a/arch/powerpc/cpu/mpc83xx/Kconfig +++ b/arch/powerpc/cpu/mpc83xx/Kconfig @@ -11,6 +11,11 @@ config E300 config SYS_CPU default "mpc83xx" +config SYS_83XX_DDR_USES_CS0 + bool + help + DDR should be configured using CS0 and CS1 instead of CS2 and CS3. + choice prompt "Target select" optional @@ -19,6 +24,7 @@ config TARGET_MPC837XERDB bool "Support MPC837XERDB" select ARCH_MPC837X select BOARD_EARLY_INIT_F + select SYS_83XX_DDR_USES_CS0 config TARGET_IDS8313 bool "Support ids8313" diff --git a/include/configs/MPC837XERDB.h b/include/configs/MPC837XERDB.h index 8517b0330f52..fc55e5c2f614 100644 --- a/include/configs/MPC837XERDB.h +++ b/include/configs/MPC837XERDB.h @@ -61,7 +61,6 @@ */ #define CONFIG_SYS_SDRAM_BASE 0x00000000 /* DDR is system memory */ #define CONFIG_SYS_DDR_SDRAM_CLK_CNTL 0x03000000 -#define CONFIG_SYS_83XX_DDR_USES_CS0 #define CONFIG_SYS_DDRCDR_VALUE (DDRCDR_DHC_EN | DDRCDR_ODT | DDRCDR_Q_DRN) -- 2.25.1