From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V3] OMAP5: reset: Use cold reset in case of 5430ES1.0
Date: Wed, 7 Mar 2012 11:45:00 -0700 [thread overview]
Message-ID: <4F57ACAC.8020208@ti.com> (raw)
In-Reply-To: <CAOMWX4drSDQ+=gpqH7sBrxb0-j5Vt2V=rE4Udh7_JscHhuJxbA@mail.gmail.com>
On 03/07/2012 11:22 AM, Menon, Nishanth wrote:
> On Wed, Mar 7, 2012 at 00:52, R Sricharan<r.sricharan@ti.com> wrote:
>> Warm reset is not functional in case of omap5430ES1.0.
>> So use cold reset instead.
>>
>> Signed-off-by: R Sricharan<r.sricharan@ti.com>
>> ---
>> [v3]
>> Addressed Tom Rini's comments.<trini@ti.com>
>>
>> arch/arm/cpu/armv7/omap-common/reset.S | 3 +++
>> arch/arm/cpu/armv7/omap5/hwinit.c | 15 +++++++++++++++
>> 2 files changed, 18 insertions(+), 0 deletions(-)
>>
>> diff --git a/arch/arm/cpu/armv7/omap-common/reset.S b/arch/arm/cpu/armv7/omap-common/reset.S
>> index 838b122..f2a522a 100644
>> --- a/arch/arm/cpu/armv7/omap-common/reset.S
>> +++ b/arch/arm/cpu/armv7/omap-common/reset.S
>> @@ -23,6 +23,8 @@
>>
>> #include<config.h>
>>
>> +#ifndef CONFIG_OMAP54XX
>> +.type reset_cpu, %function
>> .global reset_cpu
>> reset_cpu:
>> ldr r1, rstctl @ get addr for global reset
>> @@ -36,3 +38,4 @@ rstctl:
>> .word PRM_RSTCTRL
>> rstbit:
>> .word PRM_RSTCTRL_RESET
>> +#endif
>
> instead of doing the #ifdeffery, why not make this a C file with weak
> and override it in omap5 as needed?
Agreed, thanks.
--
Tom
next prev parent reply other threads:[~2012-03-07 18:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-07 6:52 [U-Boot] [PATCH V3] OMAP5: reset: Use cold reset in case of 5430ES1.0 R Sricharan
2012-03-07 18:22 ` Menon, Nishanth
2012-03-07 18:45 ` Tom Rini [this message]
2012-03-08 5:49 ` Sricharan R
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=4F57ACAC.8020208@ti.com \
--to=trini@ti.com \
--cc=u-boot@lists.denx.de \
/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