public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] [83xx] Removed #ifdef CONFIG_MPC834X dependency on upmconfig function
@ 2008-10-16 17:49 richardretanubun
  2008-10-16 21:28 ` Kim Phillips
  0 siblings, 1 reply; 3+ messages in thread
From: richardretanubun @ 2008-10-16 17:49 UTC (permalink / raw)
  To: u-boot

Removed #ifdef CONFIG_MPC834X dependency on upmconfig function.

Signed-off-by: Richard Retanubun <RichardRetanubun@RugggedCom.com>
---
 cpu/mpc83xx/cpu.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/cpu/mpc83xx/cpu.c b/cpu/mpc83xx/cpu.c
index 99ab216..848b8fd 100644
--- a/cpu/mpc83xx/cpu.c
+++ b/cpu/mpc83xx/cpu.c
@@ -147,7 +147,6 @@ int checkcpu(void)
  */
 void upmconfig (uint upm, uint *table, uint size)
 {
-#if defined(CONFIG_MPC834X)
     volatile immap_t *immap = (immap_t *) CFG_IMMR;
     volatile lbus83xx_t *lbus = &immap->lbus;
     volatile uchar *dummy = NULL;
@@ -181,10 +180,6 @@ void upmconfig (uint upm, uint *table, uint size)
 
     /* Set the OP field in the MxMR to "normal" and the MAD field to 
000000 */
     *mxmr &= 0xCFFFFFC0;
-#else
-    printf("Error: %s() not defined for this configuration.\n", 
__FUNCTION__);
-    hang();
-#endif
 }
 
 
-- 
1.5.5.GIT

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] [83xx] Removed #ifdef CONFIG_MPC834X dependency on upmconfig function
  2008-10-16 17:49 [U-Boot] [PATCH] [83xx] Removed #ifdef CONFIG_MPC834X dependency on upmconfig function richardretanubun
@ 2008-10-16 21:28 ` Kim Phillips
  2008-10-17 12:55   ` Richard Retanubun
  0 siblings, 1 reply; 3+ messages in thread
From: Kim Phillips @ 2008-10-16 21:28 UTC (permalink / raw)
  To: u-boot

On Thu, 16 Oct 2008 13:49:42 -0400
richardretanubun <richardretanubun@ruggedcom.com> wrote:

Hi Richard,

> Removed #ifdef CONFIG_MPC834X dependency on upmconfig function.

please elaborate your commit messages to include /why/ this change is
needed, not only what it does (in this particular case we can easily
see what it does).  Adding material from your prior mail will achieve
most of this.

> Signed-off-by: Richard Retanubun <RichardRetanubun@RugggedCom.com>

I'm guessing s/ggg/gg/?  I've seen this before; please edit your git
configuration/environment to fix this once and for all (it conflicts
with the commit's author (From:) and comes into play whenever commit
statistics are generated).

>      /* Set the OP field in the MxMR to "normal" and the MAD field to 
> 000000 */

biggest problem is it looks like this is line wrapped anyway:

Applying: Removed #ifdef CONFIG_MPC834X dependency on upmconfig function
fatal: corrupt patch at line 20

other than that, looks good ;)

Thanks,

Kim

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] [83xx] Removed #ifdef CONFIG_MPC834X dependency on upmconfig function
  2008-10-16 21:28 ` Kim Phillips
@ 2008-10-17 12:55   ` Richard Retanubun
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Retanubun @ 2008-10-17 12:55 UTC (permalink / raw)
  To: u-boot

Removed #ifdef CONFIG_MPC834X dependency on upmconfig function. 
This is done to allow other 83XX based platforms which also have UPM
(e.g. 8360) to configure and use their UPM in u-boot.

Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
---
Hi Kim,

Thanks for the comments, hopefully this will do the trick.


 cpu/mpc83xx/cpu.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/cpu/mpc83xx/cpu.c b/cpu/mpc83xx/cpu.c
index 99ab216..848b8fd 100644
--- a/cpu/mpc83xx/cpu.c
+++ b/cpu/mpc83xx/cpu.c
@@ -147,7 +147,6 @@ int checkcpu(void)
  */
 void upmconfig (uint upm, uint *table, uint size)
 {
-#if defined(CONFIG_MPC834X)
 	volatile immap_t *immap = (immap_t *) CFG_IMMR;
 	volatile lbus83xx_t *lbus = &immap->lbus;
 	volatile uchar *dummy = NULL;
@@ -181,10 +180,6 @@ void upmconfig (uint upm, uint *table, uint size)
 
 	/* Set the OP field in the MxMR to "normal" and the MAD field to 000000 */
 	*mxmr &= 0xCFFFFFC0;
-#else
-	printf("Error: %s() not defined for this configuration.\n", __FUNCTION__);
-	hang();
-#endif
 }
 
 
-- 
1.5.5.GIT

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-10-17 12:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-16 17:49 [U-Boot] [PATCH] [83xx] Removed #ifdef CONFIG_MPC834X dependency on upmconfig function richardretanubun
2008-10-16 21:28 ` Kim Phillips
2008-10-17 12:55   ` Richard Retanubun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox