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 EA846C43334 for ; Wed, 22 Jun 2022 12:36:51 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 44087842B7; Wed, 22 Jun 2022 14:35:54 +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="Du0czkza"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AD05183FAA; Wed, 22 Jun 2022 14:35:48 +0200 (CEST) Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) (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 9478C83EF9 for ; Wed, 22 Jun 2022 14:35:44 +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-qv1-xf2b.google.com with SMTP id q4so12761549qvq.8 for ; Wed, 22 Jun 2022 05:35:44 -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=cGnj7wJy3dkuoO8xjl3OX+MkwtVRa9uKqDUsveSfTY0=; b=Du0czkzaNxetM4ewwqgpUf92sPbfZer7qubuKo/6pO8JdOsjGXCPDQP23kxVWn8MOP nTShGmINdG4z1rIxV9YewMn7AXFEcHRo6TS/KwqT0hJvUZWOIRMy1tzkiWUoTbmCtRLO 6uSF1Zb6/S7O2Soz4LEuWfSkAV5wzMyr8cXtU= 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=cGnj7wJy3dkuoO8xjl3OX+MkwtVRa9uKqDUsveSfTY0=; b=KVlgRZr7agFPuCmotdpmiG8iCyIVVF+QunsGk4K6u07EuLftgDSwrx2lGeAAikL3+q trRZiow7OISNFHGZQQrBpIlWhmQ799L666uq8piKve56a6GsbOOmoWwONbuVtboHMIX/ a6jICAPJSyz53QnSiDlXGBE4M7xByldxumSQvbKG/J3Fa8c8f4NnGqwSpcV5kB6Kx5V7 kopY8m5ZSmmIMWee72CSWGFYoeo1NnH5L1IIIChty7ttlBo1uH8U3qjyJpn7By4LbPtO nrXIgsYGyC3s8WceeJSu3dDvuCkzTqJEby3/+b5SwJT5HfXT9Mpmd3HF+HZ6zQlZuurC NmXg== X-Gm-Message-State: AJIora9pK1O4zKPkuwr8N1W+xe/CTmsJA2dLyovsbyOXLq4ug1m3aXc0 DjvKmWIEnJFwi63/PZ0EUgOEa4ts6C09jQ== X-Google-Smtp-Source: AGRyM1ua5eV3BBeAdAiouZH6tOF9vtYvpUfmnjrEb1RKMy3dKzh+IBTVg/Kb/zNQNl5hxxR0twDmVw== X-Received: by 2002:ac8:5a93:0:b0:304:ec80:7943 with SMTP id c19-20020ac85a93000000b00304ec807943mr2650846qtc.330.1655901342800; Wed, 22 Jun 2022 05:35:42 -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 y26-20020a05620a0e1a00b006a760ce8a37sm15063867qkm.45.2022.06.22.05.35.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jun 2022 05:35:42 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 7/8] Convert CONFIG_SYS_EMIF_PRECALCULATED_TIMING_REGS et al to Kconfig Date: Wed, 22 Jun 2022 08:35:34 -0400 Message-Id: <20220622123535.1838698-7-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220622123535.1838698-1-trini@konsulko.com> References: <20220622123535.1838698-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_EMIF_PRECALCULATED_TIMING_REGS CONFIG_SYS_AUTOMATIC_SDRAM_DETECTION CONFIG_SYS_DEFAULT_LPDDR2_TIMINGS Signed-off-by: Tom Rini --- arch/arm/mach-omap2/Kconfig | 21 +++++++++++++++++++++ include/configs/ti_omap4_common.h | 11 ----------- include/configs/ti_omap5_common.h | 11 ----------- 3 files changed, 21 insertions(+), 22 deletions(-) diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index 51d1db4a87b0..fa4104747673 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig @@ -169,6 +169,27 @@ config TI_SECURE_EMIF_PROTECTED_REGION_SIZE using hardware memory firewalls. This value must be smaller than the TI_SECURE_EMIF_TOTAL_REGION_SIZE value. +config SYS_AUTOMATIC_SDRAM_DETECTION + bool + +choice + depends on OMAP44XX || OMAP54XX + prompt "Static or dynamic DDR timing calculations" + default SYS_EMIF_PRECALCULATED_TIMING_REGS + help + For the DDR timing information we can either dynamically determine + the timings to use or use pre-determined timings (based on using the + dynamic method). Default to the static timing information. + +config SYS_EMIF_PRECALCULATED_TIMING_REGS + bool "Use precalcualted timing values" + +config SYS_DEFAULT_LPDDR2_TIMINGS + bool "Use default LPDDR2 timing values" + select SYS_AUTOMATIC_SDRAM_DETECTION + +endchoice + source "arch/arm/mach-omap2/omap3/Kconfig" source "arch/arm/mach-omap2/omap4/Kconfig" diff --git a/include/configs/ti_omap4_common.h b/include/configs/ti_omap4_common.h index fcf282bc4c18..3d78972bfebb 100644 --- a/include/configs/ti_omap4_common.h +++ b/include/configs/ti_omap4_common.h @@ -23,17 +23,6 @@ /* Use General purpose timer 1 */ #define CONFIG_SYS_TIMERBASE GPT2_BASE -/* - * For the DDR timing information we can either dynamically determine - * the timings to use or use pre-determined timings (based on using the - * dynamic method. Default to the static timing infomation. - */ -#define CONFIG_SYS_EMIF_PRECALCULATED_TIMING_REGS -#ifndef CONFIG_SYS_EMIF_PRECALCULATED_TIMING_REGS -#define CONFIG_SYS_AUTOMATIC_SDRAM_DETECTION -#define CONFIG_SYS_DEFAULT_LPDDR2_TIMINGS -#endif - #include /* diff --git a/include/configs/ti_omap5_common.h b/include/configs/ti_omap5_common.h index f7f17d0f502c..a9d4cf905f8b 100644 --- a/include/configs/ti_omap5_common.h +++ b/include/configs/ti_omap5_common.h @@ -19,17 +19,6 @@ /* Use General purpose timer 1 */ #define CONFIG_SYS_TIMERBASE GPT2_BASE -/* - * For the DDR timing information we can either dynamically determine - * the timings to use or use pre-determined timings (based on using the - * dynamic method. Default to the static timing infomation. - */ -#define CONFIG_SYS_EMIF_PRECALCULATED_TIMING_REGS -#ifndef CONFIG_SYS_EMIF_PRECALCULATED_TIMING_REGS -#define CONFIG_SYS_AUTOMATIC_SDRAM_DETECTION -#define CONFIG_SYS_DEFAULT_LPDDR2_TIMINGS -#endif - #define CONFIG_PALMAS_POWER #include -- 2.25.1