Correct ARM Versatile Timer Initialization
PATCH 1/1 Correct ARM Versatile Timer Initialization
Hi,
Sorry. Re-sending as uboot-mailing list was not properly Included last time
Regards
Gururaja
- According to ARM Dual-Timer Module (SP804) TRM (ARM DDI0271), --Timer Value Register @ TIMER Base + 4 is Read-only. So removed code which writes to this register
--Prescale Value (Bits 3-2 of TIMER Control register) can only be one of 00,01,10. 11 is undefined.
So bringing Correcting the same to point to 00.
Signed-off-by: Gururaja Hebbar <gururajakr at sanyo.co.in <blocked::mailto:[email protected]> >
--- cpu/arm926ejs/versatile/timer.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
(quoted diff) +0 -0
b/cpu/arm926ejs/versatile/timer.c
index 32872d2..9659b67 100644
cpu/arm926ejs/versatile/timer.c +0 -0
@@ -50,8 +50,7 @@ static ulong lastdec;int timer_init (void ) { *(volatile ulong *)(CFG_TIMERBASE +0 ) =CFG_TIMER_RELOAD ;/*
TimerLoad */
- *(volatile ulong *)(CFG_TIMERBASE + 4) = CFG_TIMER_RELOAD; /* TimerValue */
- *(volatile ulong *)(CFG_TIMERBASE + 8) = 0x8C;
+ *(volatile ulong *)(CFG_TIMERBASE + 8) = 0x80;
/* init the timestamp and lastdec value */
reset_timer_masked();
Signature · 6 lines
1.5.6 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.denx.de/pipermail/u-boot/attachments/20080724/fa71705b/attachment.htm
PATCH 1/1 Correct ARM Versatile Timer Initialization
Quoted 6 lines · In message <[email protected]> you…
Sorry. Re-sending as uboot-mailing list was not properly Included last time
Regards
Gururaja
Please do not include such comments in the commit message part of the patch. They belong *below* the '---" line.
Quoted 5 lines
cpu/arm926ejs/versatile/timer.c +0
-0@@ -50,8 +50,7 @@ static ulong lastdec;int timer_init (void ) { *(volatile ulong *)(CFG_TIMERBASE + 0) =3D CFG_TIMER_RELOAD; /*TimerLoad */
^^^^^^^^^^^^^
Quoted 2 lines
- *(volatile ulong *)(CFG_TIMERBASE + 4) =3D
CFG_TIMER_RELOAD; /* TimerValue */
^^^^^^^^^^^^^
Your patch is line-wrapped and cannot be applied.
Quoted 4 lines
------_=_NextPart_001_01C8ED71.42919551
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
And *NEVER* post HTML here!
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de A princess should not be afraid -- not with a brave knight to protect her. -- McCoy, "Shore Leave", stardate 3025.3
PATCH 1/1 Correct ARM Versatile Timer Initialization
Hi,
Quoted 9 lines
Quoted 3 lines
(quoted diff) +0
-0@@ -50,8 +50,7 @@ static ulong lastdec; int timer_init (void) { *(volatile ulong *)(CFG_TIMERBASE + 0) =3D CFG_TIMER_RELOAD; /*TimerLoad */
^^^^^^^^^^^^^
Quoted 2 lines
- *(volatile ulong *)(CFG_TIMERBASE + 4) =3D
CFG_TIMER_RELOAD; /* TimerValue */^^^^^^^^^^^^^
Your patch is line-wrapped and cannot be applied.
I Checked the Original Source File & found this.
*(volatile ulong *)(CFG_TIMERBASE + 0) = CFG_TIMER_RELOAD; /* TimerLoad */ ---> This line ends @ Column 80 *(volatile ulong *)(CFG_TIMERBASE + 4) = CFG_TIMER_RELOAD;
/* TimerValue */ ---> This line ends @ Column 81
I just removed the Second Line since it was Invalid.
I am really sorry for troubling but i have little issue finding the mistake.
Now in order to remove this, kindly let me know what i have to do.
Quoted 1 line
And *NEVER* post HTML here!
Will not repeat.
Regards
Gururaja
PATCH 1/1 Correct ARM Versatile Timer Initialization
Quoted 17 lines · In message <[email protected]> you…
Hi,
Quoted 9 lines
Quoted 3 lines
(quoted diff) +0
-0@@ -50,8 +50,7 @@ static ulong lastdec; int timer_init (void) { *(volatile ulong *)(CFG_TIMERBASE + 0) =3D3D CFG_TIMER_RELOAD; /*=20TimerLoad */
^^^^^^^^^^^^^
Quoted 2 lines
- *(volatile ulong *)(CFG_TIMERBASE + 4) =3D3D
CFG_TIMER_RELOAD; /*=20 TimerValue */^^^^^^^^^^^^^
Your patch is line-wrapped and cannot be applied.
I Checked the Original Source File & found this.
*(volatile ulong *)(CFG_TIMERBASE + 0) =3D CFG_TIMER_RELOAD; /* TimerLoad */ ---> This line ends @ Column 80 *(volatile ulong *)(CFG_TIMERBASE + 4) =3D CFG_TIMER_RELOAD;
Quoted 7 lines
/* TimerValue */ ---> This line ends @ Column 81
I just removed the Second Line since it was Invalid.
I am really sorry for troubling but i have little issue finding the mistake.
Now in order to remove this, kindly let me know what i have to do.
Please resubmit your patch, without line wrapping.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Shakespeare's Law of Prototyping: (Hamlet III, iv, 156-160)
O, throw away the worser part of it,
And live the purer with the other half.PATCH 1/1 Correct ARM Versatile Timer Initialization
Hi,
In message <[email protected]> you
Quoted 19 lines · wrote:
Quoted 19 lines
Hi,
Quoted 9 lines
Review static ulong lastdec; int timer_init (void) { · line 51
Quoted 3 lines
(quoted diff) +0
-0@@ -50,8 +50,7 @@ static ulong lastdec; int timer_init (void) { *(volatile ulong *)(CFG_TIMERBASE + 0) =3D3D CFG_TIMER_RELOAD; /*=20 TimerLoad */^^^^^^^^^^^^^
Review static ulong lastdec; int timer_init (void) { · line 52
Quoted 2 lines
(quoted diff) +0
-1- *(volatile ulong *)(CFG_TIMERBASE + 4) =3D3D CFG_TIMER_RELOAD; /*=20 TimerValue */^^^^^^^^^^^^^
Your patch is line-wrapped and cannot be applied.
I Checked the Original Source File & found this.
*(volatile ulong *)(CFG_TIMERBASE + 0) =3D CFG_TIMER_RELOAD; /* TimerLoad */ ---> This line ends @ Column 80 *(volatile ulong *)(CFG_TIMERBASE + 4) =3D CFG_TIMER_RELOAD;/* TimerValue */ ---> This line ends @ Column 81
Quoted 7 lines
Quoted 5 lines
I just removed the Second Line since it was Invalid.
I am really sorry for troubling but i have little issue finding the mistake.
Now in order to remove this, kindly let me know what i have to do.Please resubmit your patch, without line wrapping.
Yes, I think i couldn't make myself clear. The ORIGINAL Source Code/Line i need to REMOVE
itself is greater than 80 Column. I am not adding any code. I am just removing 1 line that is not
required.
Kindly Have a look @ File u-boot-1.3.3/cpu/arm926ejs/versatile/timer.c @ line 53.
I need to remove this Line. So i request to let me know how to remove a line that's already is broken.
TIA
Regards
Gururaja
PATCH 1/1 Correct ARM Versatile Timer Initialization
Quoted 11 lines · In message <[email protected]> you…
Quoted 11 lines
Quoted 11 lines
Quoted 9 lines
Quoted 3 lines
*(volatile ulong *)(CFG_TIMERBASE + 0) =3D3D
CFG_TIMER_RELOAD;
/*=20 TimerLoad */^^^^^^^^^^^^^
Quoted 2 lines
- *(volatile ulong *)(CFG_TIMERBASE + 4) =3D3D
CFG_TIMER_RELOAD; /*=20 TimerValue */^^^^^^^^^^^^^
Your patch is line-wrapped and cannot be applied.
I Checked the Original Source File & found this.
The original source file has nothing to do with this problem.
Quoted 7 lines
Quoted 1 line
Please resubmit your patch, without line wrapping.
Yes, I think i couldn't make myself clear. The ORIGINAL Source Code/Line i need to REMOVE
itself is greater than 80 Column. I am not adding any code. I am just removing 1 line that is not
required.
Yes, but that is NOT the problem. The problem is that your mailer is wrapping long lines when it sends your patch, thus corrpting it.
Quoted 2 lines
I need to remove this Line. So i request to let me know how to remove a line that's already is broken.
The source line may be long, but it is not broken.
It is your mailer which corrupts the patch by wrapping the long lines into two lines.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "That unit is a woman." "A mass of conflicting impulses." -- Spock and Nomad, "The Changeling", stardate 3541.9
PATCH 1/1 Correct ARM Versatile Timer Initialization
Hi,
Quoted 2 lines
The original source file has nothing to do with this problem. Yes, but that is NOT the problem. The problem is that your mailer is
wrapping long lines when it sends your patch, thus corrpting it.
Quoted 2 lines
The source line may be long, but it is not broken.
It is your mailer which corrupts the patch by wrapping the long lines
into two lines.
Yes. Sorry for the mistake. It was my M$ Office which was wrapping the mail @ column 76 & hence the issue.
I have changed it to 81 & i have Re-Submitted the Patch. Hopefully. Its Corrected Now.
TIA
Regards
Gururaja
PATCH 1/1 Correct ARM Versatile Timer Initialization
Quoted 5 lines · In message <[email protected]> you…
Yes. Sorry for the mistake. It was my M$ Office which was wrapping the mail @ column 76 & hence the issue.
I have changed it to 81 & i have Re-Submitted the Patch. Hopefully. Its Corrected Now.
Changed it to 81? I don't understand. What happens when your next patch has a line with 85 characters? I do not want to see any line-wrapped patches again.
Please turn this evil line wrapping off completely.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Every solution breeds new problems.
PATCH 1/1 Correct ARM Versatile Timer Initialization
Hi,
Quoted 10 lines
In message <[email protected]
Quoted 3 lines
you wrote:
Yes. Sorry for the mistake. It was my M$ Office which was
wrapping the
Quoted 3 lines
mail @ column 76 & hence the issue.
I have changed it to 81 & i have Re-Submitted the Patch. Hopefully. Its Corrected Now.
Quoted 5 lines
Changed it to 81? I don't understand. What happens when your next patch has a line with 85 characters? I do not want to see any line-wrapped patches again.
Please turn this evil line wrapping off completely.
I can turn this off completely in M$ Office
For Plain Text Mails, It Automatically Wraps the text. We can only set the Number of characters to wrap
I checked & found that the max characters that can be allowed b4 wrapping is 132
Regards
Gururaja
PATCH 1/1 Correct ARM Versatile Timer Initialization
Quoted 6 lines · In message <[email protected]> you…
I can turn this off completely in M$ Office
For Plain Text Mails, It Automatically Wraps the text. We can only set the Number of characters to wrap
I checked & found that the max characters that can be allowed b4 wrapping is 132
...which is why we always recommend to use git-send-email to send patches. Do not use any crappy M$ stuff.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The first 90% of a project takes 90% of the time, the last 10% takes the other 90% of the time.