From patchwork Tue Nov 29 13:23:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 84803 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp1593279qgi; Tue, 29 Nov 2016 05:24:27 -0800 (PST) X-Received: by 10.28.12.84 with SMTP id 81mr24546087wmm.51.1480425867135; Tue, 29 Nov 2016 05:24:27 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id x62si2477618wmb.132.2016.11.29.05.24.26; Tue, 29 Nov 2016 05:24:27 -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 4BBC0B38BA; Tue, 29 Nov 2016 14:24:21 +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 d2DfAyWPHYV9; Tue, 29 Nov 2016 14:24:20 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 48A27B38A2; Tue, 29 Nov 2016 14:24:15 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4708BA7593 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 XrnVre3YXsuY 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-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by theia.denx.de (Postfix) with ESMTPS id 1394FA7579 for ; Tue, 29 Nov 2016 14:23:54 +0100 (CET) Received: by mail-wm0-f51.google.com with SMTP id a197so237083839wmd.0 for ; Tue, 29 Nov 2016 05:23:54 -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=jSrFDE9CpllWN7anpUPN5ucueD/ClJnIMqHkcoVSPa0=; b=XEH/s1tDJhNtJEl4beiP3nYU6FAoEXes4xjMJ0dbxlGGZew5G6Do/MYnGJHUUhQkSZ 0tLbLWmhA0QUl8GpiNqle72SgnAEJheuV8uX7At5woDg8NVWHzm1rtAvjjt6i2yddGTV A6CYn0F77nSVgtq+vgjOnYWv6/PGHlCZrXV6BoTnEeYYiQ3p2NDt9VzfIT4vxvjyaGy/ 5xN2abEJcXZKJfL3IQN4KdsSUK62CDoV6A6MTf2lq17ExR8l5QAEMUXwzb0KiDiltAgh RU3L7ohpm4ZB9i8GYh9VvtUvuOchflqSTWyUWrvY2UMEU81bDGhFdIURrjWfVCjw1uw0 QU/A== 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=jSrFDE9CpllWN7anpUPN5ucueD/ClJnIMqHkcoVSPa0=; b=KbK5NhNZpzy3riT1Xad+1y/BkFy7jLyqO2WlViXUagfpKLXY8bcEf+zIVdYoMwkifB dC+xxxPeTo+PtCJcLWUHhIFDpSglstuJuoBobuDwKCbQpkBBBRdQqFZ2PMv00Zm/+nQq V3SgHbqOIF2Tj7QL3K91CS/f3XnNhBBJ/8pq3wlzsjUq5KTxtbElmdE/s8QmKUFC4TcD B7lTEeOjTMmXMygKLtkOAG7Fg5MoEyr0USW1CEZ5YnGehve0Jn1W3mmACsdWgDIHAqCR uF6LKRy3cq4l8nIsz6nbI9AIJCxtu5YrqyPVrtbLqY3SzJQtkCxI1CfpqHx0zuxUfPO1 q60A== X-Gm-Message-State: AKaTC02ePMqrjTzgQbUqhxFZGBs1+vUXx53WJdrsFY9bg+cOQpaOb3cF/2txf5xv8NUtMLFp X-Received: by 10.28.157.137 with SMTP id g131mr22534295wme.29.1480425834295; Tue, 29 Nov 2016 05:23:54 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id wg8sm67819337wjb.42.2016.11.29.05.23.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Nov 2016 05:23:53 -0800 (PST) From: Fabien Parent To: u-boot@lists.denx.de Date: Tue, 29 Nov 2016 14:23:36 +0100 Message-Id: <20161129132341.18254-2-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 1/6] ARM: davinci: Move CONFIG_SYS_DA850_PLL_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_PLL_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 5d1c5c5..ffb9a45 100644 --- a/arch/arm/mach-davinci/Kconfig +++ b/arch/arm/mach-davinci/Kconfig @@ -7,10 +7,12 @@ choice config TARGET_IPAM390 bool "IPAM390 board" select SUPPORT_SPL + select SYS_DA850_PLL_INIT config TARGET_DA850EVM bool "DA850 EVM board" select SUPPORT_SPL + select SYS_DA850_PLL_INIT config TARGET_EA20 bool "EA20 board" @@ -21,15 +23,20 @@ config TARGET_OMAPL138_LCDK config TARGET_CALIMAIN bool "Calimain board" + select SYS_DA850_PLL_INIT config TARGET_LEGOEV3 bool "LEGO MINDSTORMS EV3" + select SYS_DA850_PLL_INIT endchoice config SYS_SOC default "davinci" +config SYS_DA850_PLL_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 bf173ff..41c8eb5 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_PLL_INIT #define CONFIG_SYS_DA850_DDR_INIT #define CONFIG_ARCH_CPU_INIT #define CONFIG_DA8XX_GPIO diff --git a/include/configs/da850evm.h b/include/configs/da850evm.h index 3560115..1f3b003 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_PLL_INIT #define CONFIG_SYS_DA850_DDR_INIT #ifdef CONFIG_DIRECT_NOR_BOOT diff --git a/include/configs/ipam390.h b/include/configs/ipam390.h index 381fe04..13c9d56 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_PLL_INIT #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 d91e75d..adb2446 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_PLL_INIT #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 d0b5e7f..60795ee 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -4778,7 +4778,6 @@ CONFIG_SYS_DA850_PLL1_PLLDIV2 CONFIG_SYS_DA850_PLL1_PLLDIV3 CONFIG_SYS_DA850_PLL1_PLLM CONFIG_SYS_DA850_PLL1_POSTDIV -CONFIG_SYS_DA850_PLL_INIT CONFIG_SYS_DA850_SYSCFG_SUSPSRC CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS1