From patchwork Tue Nov 29 13:23:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 84802 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp1593192qgi; Tue, 29 Nov 2016 05:24:15 -0800 (PST) X-Received: by 10.194.24.102 with SMTP id t6mr19632285wjf.111.1480425854962; Tue, 29 Nov 2016 05:24:14 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id v4si59292806wjk.289.2016.11.29.05.24.14; Tue, 29 Nov 2016 05:24:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B4926B3893; Tue, 29 Nov 2016 14:24:13 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4G1ibc73zRQr; Tue, 29 Nov 2016 14:24:13 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EA3B5B387D; Tue, 29 Nov 2016 14:24:12 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 46DD6A757A for ; Tue, 29 Nov 2016 14:23:59 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id spIhGdbjI_tx for ; Tue, 29 Nov 2016 14:23:59 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by theia.denx.de (Postfix) with ESMTPS id 0FE6EA7550 for ; Tue, 29 Nov 2016 14:23:55 +0100 (CET) Received: by mail-wm0-f48.google.com with SMTP id g23so237581502wme.1 for ; Tue, 29 Nov 2016 05:23:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=URT2o/mumNgVwffIcivryAtXPOp4jAvpcwWInyUsNog=; b=iDukdTzmrCQFLx2ydYHhe1j896+JyMgztiKY+RbeTHhfiaOM/DvyUExrUczICcihz/ A5dKxaukgt7AcXZqMJeqvSF89q8ib19Z6UUal4Qs7dOeXE2Z7GBwh8cHal3O6ifCn4GM KaITppbueKk1T2zpX3WVmBDp5tnw0OOvZ+6dlEEmEDmbz7IKMeFwtZxeupbZZf//Ep7y xFZ7ZwVGH6+8ZUN9m63y7iAgEax2vjIN2Z93awCUL9IB8cGn0gGqF1DhErXWNxxzJVWc H6qbOqlbBwmwwbum8+c2FbjCHD+hdmfza9v385zcsaLqcm8vWwefEFQXgssf5h8RFxLw Fhgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=URT2o/mumNgVwffIcivryAtXPOp4jAvpcwWInyUsNog=; b=ZS+3KLBEDXSm3qbKv+TvG+UomTRt1irrcCfoRaM4zdN4dX2HHf8bS5ChBjLGjd4RVe WISWHSxCbofBhRhc717RMqZkTuROp49DQznGN4+SE4S5cAzyZLcm8LaX181loDFFgO7C 47y/9x90pKDgYVku8FQ2IaVD//Y03ZgXcVxpDTCVkhv9WcKpW1bMX2aIPP/TW2KDauib 2gvSIq5lUhz4KAg6vYT3Autp5zREcVlCEB/vUOSeNXSh6oYheSQQj+a86P2Tq3b78o6s GAIxRRbANwobGgY0FkjWzeu4N8g4rihNRR69T35XGcEL8wv5p2vaK0OsCpoD08GYKqJY 1EAw== X-Gm-Message-State: AKaTC02GZyKRdZgbuZ9Elr+rQv6rAvE+mdJ8yGtUYqwb1IkwN/g7eXlAdnV14R34f/NRZznn X-Received: by 10.28.167.77 with SMTP id q74mr23043362wme.21.1480425835169; Tue, 29 Nov 2016 05:23:55 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id wg8sm67819337wjb.42.2016.11.29.05.23.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Nov 2016 05:23:54 -0800 (PST) From: Fabien Parent To: u-boot@lists.denx.de Date: Tue, 29 Nov 2016 14:23:37 +0100 Message-Id: <20161129132341.18254-3-fparent@baylibre.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161129132341.18254-1-fparent@baylibre.com> References: <20161129132341.18254-1-fparent@baylibre.com> Cc: Tom Rini Subject: [U-Boot] [PATCH v3 2/6] ARM: davinci: Move CONFIG_SYS_DA850_DDR_INIT to Kconfig X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Clean config headers by moving CONFIG_SYS_DA850_DDR_INIT away to a Kconfig file. Signed-off-by: Fabien Parent --- v1 -> v3 * New patch --- arch/arm/mach-davinci/Kconfig | 7 +++++++ include/configs/calimain.h | 1 - include/configs/da850evm.h | 1 - include/configs/ipam390.h | 1 - include/configs/legoev3.h | 1 - scripts/config_whitelist.txt | 1 - 6 files changed, 7 insertions(+), 5 deletions(-) -- 2.10.2 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot Reviewed-by: Tom Rini diff --git a/arch/arm/mach-davinci/Kconfig b/arch/arm/mach-davinci/Kconfig index ffb9a45..cf4ee16 100644 --- a/arch/arm/mach-davinci/Kconfig +++ b/arch/arm/mach-davinci/Kconfig @@ -8,11 +8,13 @@ config TARGET_IPAM390 bool "IPAM390 board" select SUPPORT_SPL select SYS_DA850_PLL_INIT + select SYS_DA850_DDR_INIT config TARGET_DA850EVM bool "DA850 EVM board" select SUPPORT_SPL select SYS_DA850_PLL_INIT + select SYS_DA850_DDR_INIT config TARGET_EA20 bool "EA20 board" @@ -24,10 +26,12 @@ config TARGET_OMAPL138_LCDK config TARGET_CALIMAIN bool "Calimain board" select SYS_DA850_PLL_INIT + select SYS_DA850_DDR_INIT config TARGET_LEGOEV3 bool "LEGO MINDSTORMS EV3" select SYS_DA850_PLL_INIT + select SYS_DA850_DDR_INIT endchoice @@ -37,6 +41,9 @@ config SYS_SOC config SYS_DA850_PLL_INIT bool +config SYS_DA850_DDR_INIT + bool + source "board/Barix/ipam390/Kconfig" source "board/davinci/da8xxevm/Kconfig" source "board/davinci/ea20/Kconfig" diff --git a/include/configs/calimain.h b/include/configs/calimain.h index 41c8eb5..dab4ec2 100644 --- a/include/configs/calimain.h +++ b/include/configs/calimain.h @@ -32,7 +32,6 @@ #define CONFIG_SYS_HZ_CLOCK clk_get(DAVINCI_AUXCLK_CLKID) #define CONFIG_SYS_TEXT_BASE 0x60000000 #define CONFIG_DA850_LOWLEVEL -#define CONFIG_SYS_DA850_DDR_INIT #define CONFIG_ARCH_CPU_INIT #define CONFIG_DA8XX_GPIO #define CONFIG_HW_WATCHDOG diff --git a/include/configs/da850evm.h b/include/configs/da850evm.h index 1f3b003..18a8e26 100644 --- a/include/configs/da850evm.h +++ b/include/configs/da850evm.h @@ -31,7 +31,6 @@ #define CONFIG_SYS_OSCIN_FREQ 24000000 #define CONFIG_SYS_TIMERBASE DAVINCI_TIMER0_BASE #define CONFIG_SYS_HZ_CLOCK clk_get(DAVINCI_AUXCLK_CLKID) -#define CONFIG_SYS_DA850_DDR_INIT #ifdef CONFIG_DIRECT_NOR_BOOT #define CONFIG_ARCH_CPU_INIT diff --git a/include/configs/ipam390.h b/include/configs/ipam390.h index 13c9d56..991dad1 100644 --- a/include/configs/ipam390.h +++ b/include/configs/ipam390.h @@ -32,7 +32,6 @@ #define CONFIG_SYS_OSCIN_FREQ 24000000 #define CONFIG_SYS_TIMERBASE DAVINCI_TIMER0_BASE #define CONFIG_SYS_HZ_CLOCK clk_get(DAVINCI_AUXCLK_CLKID) -#define CONFIG_SYS_DA850_DDR_INIT #define CONFIG_SYS_TEXT_BASE 0xc1080000 /* diff --git a/include/configs/legoev3.h b/include/configs/legoev3.h index adb2446..f2f82ac 100644 --- a/include/configs/legoev3.h +++ b/include/configs/legoev3.h @@ -26,7 +26,6 @@ #define CONFIG_SYS_OSCIN_FREQ 24000000 #define CONFIG_SYS_TIMERBASE DAVINCI_TIMER0_BASE #define CONFIG_SYS_HZ_CLOCK clk_get(DAVINCI_AUXCLK_CLKID) -#define CONFIG_SYS_DA850_DDR_INIT #define CONFIG_SYS_TEXT_BASE 0xc1080000 diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index 60795ee..f0004e5 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -4762,7 +4762,6 @@ CONFIG_SYS_DA850_DDR2_SDBCR2 CONFIG_SYS_DA850_DDR2_SDRCR CONFIG_SYS_DA850_DDR2_SDTIMR CONFIG_SYS_DA850_DDR2_SDTIMR2 -CONFIG_SYS_DA850_DDR_INIT CONFIG_SYS_DA850_PLL0_PLLDIV1 CONFIG_SYS_DA850_PLL0_PLLDIV2 CONFIG_SYS_DA850_PLL0_PLLDIV3