From: Chen Gang <xili_gchen_5257@hotmail.com>
To: Richard Weinberger <richard.weinberger@gmail.com>
Cc: "realmz6@gmail.com" <realmz6@gmail.com>,
"adi-buildroot-devel@lists.sourceforge.net"
<adi-buildroot-devel@lists.sourceforge.net>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] blackfin: Kconfig: Let PLL_BYPASS and MPU depend on some BF_REV of BF533
Date: Sun, 5 Apr 2015 05:48:11 +0800 [thread overview]
Message-ID: <BLU436-SMTP128F91B50FC6B40C79F48F1B9F00@phx.gbl> (raw)
In-Reply-To: <CAFLxGvzRKTZ2E7EUMRx2qEuChHbp=OTBpnfv9_OB8k=ZZVAOow@mail.gmail.com>
On 4/4/15 06:59, Richard Weinberger wrote:
> On Thu, Apr 2, 2015 at 11:25 PM, Chen Gang <xili_gchen_5257@hotmail.com> wrote:
>> 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
>> ^
>>
>> 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
>
> This answers my question wrt. allmodconfig. ;)
> I'm not sure if this is the correct way. Isn't this the reason why we
> have COMPILE_TEST?
>
For me, COMPILE_TEST is for compiling test without the related hardware
supports, but the code should no any logical issues firstly (at least,
COMPILE_TEST itself should not generate additional logical bugs).
In our case, I guess the first 2 issues are about logical issues (not
hardware supporting issues), so I guess, it is not suitable to use
COMPILE_TEST to bypass them.
Thanks.
--
Chen Gang
Open, share, and attitude like air, water, and life which God blessed
next prev parent reply other threads:[~2015-04-04 21:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-02 21:25 Chen Gang
2015-04-03 22:59 ` Richard Weinberger
2015-04-04 21:48 ` Chen Gang [this message]
2015-04-04 21:56 ` Richard Weinberger
2015-04-04 22:14 ` Chen Gang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BLU436-SMTP128F91B50FC6B40C79F48F1B9F00@phx.gbl \
--to=xili_gchen_5257@hotmail.com \
--cc=adi-buildroot-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=realmz6@gmail.com \
--cc=richard.weinberger@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®