From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751497AbbDBVZN (ORCPT ); Thu, 2 Apr 2015 17:25:13 -0400 Received: from blu004-omc1s35.hotmail.com ([65.55.116.46]:53378 "EHLO BLU004-OMC1S35.hotmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750771AbbDBVZH (ORCPT ); Thu, 2 Apr 2015 17:25:07 -0400 X-TMN: [787WYLzkxbXw/4VNOexikKnhMCWKmO+a] X-Originating-Email: [xili_gchen_5257@hotmail.com] Message-ID: Date: Fri, 3 Apr 2015 05:25:03 +0800 From: Chen Gang User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: "realmz6@gmail.com" CC: "adi-buildroot-devel@lists.sourceforge.net" , "linux-kernel@vger.kernel.org" Subject: [PATCH] blackfin: Kconfig: Let PLL_BYPASS and MPU depend on some BF_REV of BF533 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 02 Apr 2015 21:25:05.0239 (UTC) FILETIME=[7C9E8670:01D06D8B] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For allmodconfig, it uses BF533 which will cause 3 issues for common checking: - The first 2 issues are about PLL_BYPASS, it needs BF_REV_0_6 (which just match the compiler's output for __SILICON_REVISION__). - The last issue is about MPU, it needs BF_REV_0_5 or BF_REV_0_6 (which just match the compiler's output for __SILICON_REVISION__). The related error with allmodconfig: CC arch/blackfin/mach-common/arch_checks.o arch/blackfin/mach-common/arch_checks.c:24:3: error: #error "Sclk value selected is less than minimum. Please select a proper value for SCLK multiplier" # error "Sclk value selected is less than minimum. Please select a proper value for SCLK multiplier" ^ arch/blackfin/mach-common/arch_checks.c:28:3: error: #error "ANOMALY 05000273, please make sure CCLK is at least 2x SCLK" # error "ANOMALY 05000273, please make sure CCLK is at least 2x SCLK" ^ arch/blackfin/mach-common/arch_checks.c:51:3: error: #error the MPU will not function safely while Anomaly 05000263 applies # error the MPU will not function safely while Anomaly 05000263 applies ^ Signed-off-by: Chen Gang --- arch/blackfin/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/blackfin/Kconfig b/arch/blackfin/Kconfig index af76634..26fbee7 100644 --- a/arch/blackfin/Kconfig +++ b/arch/blackfin/Kconfig @@ -449,7 +449,7 @@ config BFIN_KERNEL_CLOCK config PLL_BYPASS bool "Bypass PLL" - depends on BFIN_KERNEL_CLOCK && (!BF60x) + depends on BFIN_KERNEL_CLOCK && (!BF60x) && ((!BF533) || BF_REV_0_6) default n config CLKIN_HALF @@ -1112,6 +1112,7 @@ endchoice comment "Memory Protection Unit" config MPU bool "Enable the memory protection unit" + depends on (!BF533) || BF_REV_0_6 || BF_REV_0_5 default n help Use the processor's MPU to protect applications from accessing -- 1.9.3