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=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 DD2CAC4338F for ; Sat, 21 Aug 2021 17:51:24 +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 5D32A61178 for ; Sat, 21 Aug 2021 17:51:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5D32A61178 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com 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 1461582C4C; Sat, 21 Aug 2021 19:50:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (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 3C04782B77; Sat, 21 Aug 2021 19:50:36 +0200 (CEST) Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (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 CAC8582C7F for ; Sat, 21 Aug 2021 19:50:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tom.rini@gmail.com Received: by mail-qk1-f180.google.com with SMTP id y144so14436257qkb.6 for ; Sat, 21 Aug 2021 10:50:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=rypeL5J9HKGeUOmK0hnu5a5HbuvFakfQ0SsMrq7ebZI=; b=swpucVyiq9RrpzeQs0/41xN/b6uimbiIIq+vJmgTJRxVUtO6kWLdsZMzKc1eY8v4wU A9sLKG4vk3XltW+6qDXW+8vJJeQg0om+Z0i/TgUx8YzbMfOSkVnUV+J3ThhPxzrNU3RD 8wnJjOqSBucWiAu0AuOnvSD8iUqkQxTzLSt3A4NPva9ODs/wOV3Qx7hIxEB5sv5a5zag k3N6f3cKnvPW4uGNuR0LG7SbbzWiBq1mfymlUQVD2Gn9cqBDObbpXCw3jBiXI4in9OVO sRw/If2GNKs9OLNegc9vVKSGdl/7K5opIweIR7wNFAAJg27vvRFc3Gx4WB6cXsWAWAdU lojw== X-Gm-Message-State: AOAM530DhTA9jdEHbF4Wsixf/RqwOu4FtThFOC+Dp7P0/dNSMrRA1uYf 3JV92IJSKWx4QYj9P/83SPgaQgmzsStj X-Google-Smtp-Source: ABdhPJwlmMK9Z82rGEOgAKGs8KGCv8v34yGdeZw0yOcmZk1KVeO7nqzSA87DxIfyqTBB9ImQAvjyTQ== X-Received: by 2002:ae9:dc82:: with SMTP id q124mr14129080qkf.288.1629568229370; Sat, 21 Aug 2021 10:50:29 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b01-cbda-2c26-3387-ab71-667f.res6.spectrum.com. [2603:6081:7b01:cbda:2c26:3387:ab71:667f]) by smtp.gmail.com with ESMTPSA id j184sm5298510qkd.74.2021.08.21.10.50.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Aug 2021 10:50:28 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 6/9] ddr: Migrate DDR_SPD to Kconfig Date: Sat, 21 Aug 2021 13:50:16 -0400 Message-Id: <20210821175019.24180-6-trini@konsulko.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210821175019.24180-1-trini@konsulko.com> References: <20210821175019.24180-1-trini@konsulko.com> 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 Move the symbol that controls building some JEDEC SPD support functions to Kconfig. This is required on the TI keystone 2 platforms and very frequently (but not always) used on large number of Freescale/NXP platforms, so use imply there. Signed-off-by: Tom Rini --- arch/arm/Kconfig | 1 + drivers/ddr/Kconfig | 6 ++++++ drivers/ddr/fsl/Kconfig | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index d692139199c4..9c18c47540c7 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -723,6 +723,7 @@ config ARCH_KEYSTONE bool "TI Keystone" select CMD_POWEROFF select CPU_V7A + select DDR_SPD select GPIO_EXTRA_HEADER select SUPPORT_SPL select SYS_ARCH_TIMER diff --git a/drivers/ddr/Kconfig b/drivers/ddr/Kconfig index d4b393d25e07..0b767acee811 100644 --- a/drivers/ddr/Kconfig +++ b/drivers/ddr/Kconfig @@ -1,2 +1,8 @@ +config DDR_SPD + bool "JEDEC Serial Presence Detect (SPD) support" + help + For memory controllers that can utilize it, add enable support for + using the JEDEC SDP standard. + source "drivers/ddr/altera/Kconfig" source "drivers/ddr/imx/Kconfig" diff --git a/drivers/ddr/fsl/Kconfig b/drivers/ddr/fsl/Kconfig index 8246f627982c..6461a54d7a8e 100644 --- a/drivers/ddr/fsl/Kconfig +++ b/drivers/ddr/fsl/Kconfig @@ -116,22 +116,26 @@ choice config SYS_FSL_DDR4 bool "Freescale DDR4 controller" depends on SYS_FSL_HAS_DDR4 + imply DDR_SPD select SYS_FSL_DDRC_GEN4 config SYS_FSL_DDR3 bool "Freescale DDR3 controller" depends on SYS_FSL_HAS_DDR3 + imply DDR_SPD select SYS_FSL_DDRC_GEN3 if PPC select SYS_FSL_DDRC_ARM_GEN3 if ARM config SYS_FSL_DDR2 bool "Freescale DDR2 controller" depends on SYS_FSL_HAS_DDR2 + imply DDR_SPD select SYS_FSL_DDRC_GEN2 if (!MPC86xx && !SYS_FSL_DDRC_GEN3) config SYS_FSL_DDR1 bool "Freescale DDR1 controller" depends on SYS_FSL_HAS_DDR1 + imply DDR_SPD select SYS_FSL_DDRC_GEN1 endchoice -- 2.17.1