public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] Total5100 and Total5200 platform support
@ 2004-07-01 15:44 Mark Jonas
  2004-07-05 13:07 ` Mark Jonas
  2004-07-11 19:17 ` Wolfgang Denk
  0 siblings, 2 replies; 7+ messages in thread
From: Mark Jonas @ 2004-07-01 15:44 UTC (permalink / raw)
  To: u-boot

Hello,

attached you'll find a patch which adds support for the Total5100 
(MGT5100 processor) and Total5200 (MPC5200) platforms from Freescale. 
The port is based on the Icecube (Lite5200) and supports like it I2C, 
ATA and USB. The Flash is accessed using the generic CFI routines.

Regards
Mark
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: total5200.log
Url: http://lists.denx.de/pipermail/u-boot/attachments/20040701/07dd98ce/attachment.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: total5200.stat
Url: http://lists.denx.de/pipermail/u-boot/attachments/20040701/07dd98ce/attachment-0001.txt 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: total5200.patch.gz
Type: application/gzip
Size: 9265 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20040701/07dd98ce/attachment.bin 

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

* [U-Boot-Users] [PATCH] Total5100 and Total5200 platform support
  2004-07-01 15:44 [U-Boot-Users] [PATCH] Total5100 and Total5200 platform support Mark Jonas
@ 2004-07-05 13:07 ` Mark Jonas
  2004-07-05 13:22   ` Wolfgang Denk
  2004-07-11 19:17 ` Wolfgang Denk
  1 sibling, 1 reply; 7+ messages in thread
From: Mark Jonas @ 2004-07-05 13:07 UTC (permalink / raw)
  To: u-boot

Hello,

the attached patch adds support for the Total5100's and Total5200's LCD 
screen. By default only the logo is displayed because the environment 
variable "console" is set to "serial". By clearing this variable stdout 
and stderr will be displayed on the LCD. The patch should be applied 
after the initial (20040701) and the second patch (20040702).

Regards
Mark

> Hello,
> attached you'll find a patch which adds support for the Total5100 
> (MGT5100 processor) and Total5200 (MPC5200) platforms from Freescale. 
> The port is based on the Icecube (Lite5200) and supports like it I2C, 
> ATA and USB. The Flash is accessed using the generic CFI routines.
> Regards
> Mark
>
>------------------------------------------------------------------------
>
>* Patch by Mark Jonas, 01 July 2004:
>  Added support for Total5100 and Total5200 (Rev.1 and Rev.2)
>  MGT5100 and MPC5200 based Freescale platforms.
>
>------------------------------------------------------------------------
>
> CREDITS                            |    5 
> MAKEALL                            |    1 
> Makefile                           |   28 ++
> board/total5200/Makefile           |   46 ++++
> board/total5200/config.mk          |   43 ++++
> board/total5200/mt48lc16m16a2-75.h |   43 ++++
> board/total5200/mt48lc32m16a2-75.h |   40 +++
> board/total5200/sdram.c            |  227 +++++++++++++++++++++
> board/total5200/sdram.h            |   39 +++
> board/total5200/total5200.c        |  136 ++++++++++++
> board/total5200/u-boot.lds         |  122 +++++++++++
> cpu/mpc5xxx/fec.c                  |    8 
> cpu/mpc5xxx/ide.c                  |    6 
> cpu/mpc5xxx/start.S                |    3 
> include/configs/Total5200.h        |  390 +++++++++++++++++++++++++++++++++++++
> include/mpc5xxx.h                  |   17 +
> 16 files changed, 1154 insertions(+)
>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: total5200-20040705.stat
Url: http://lists.denx.de/pipermail/u-boot/attachments/20040705/382b4cff/attachment.txt 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: total5200-20040705.patch.gz
Type: application/gzip
Size: 2979 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20040705/382b4cff/attachment.bin 

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

* [U-Boot-Users] [PATCH] Total5100 and Total5200 platform support
  2004-07-05 13:07 ` Mark Jonas
@ 2004-07-05 13:22   ` Wolfgang Denk
  2004-07-06  6:05     ` Pantelis Antoniou
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Denk @ 2004-07-05 13:22 UTC (permalink / raw)
  To: u-boot

In message <40E95290.3040607@freescale.com> you wrote:
>
> the attached patch adds support for the Total5100's and Total5200's LCD 
> screen. By default only the logo is displayed because the environment 
> variable "console" is set to "serial". By clearing this variable stdout 
> and stderr will be displayed on the LCD. The patch should be applied 
> after the initial (20040701) and the second patch (20040702).

Can you please fix this patch to  use  the  standard  console  device
mechanism of U-Boot? Instead of introducing a new "console" variable.
the  standard  mechanism  of assigning to the stdin / stdout / stderr
streams should be used.


I just learned that there are already other bad examples using such a
"console" setting:

File:				Board:		Maintainer:
board/eltec/elppc/misc.c	ELPPC		Frank Gottschling
board/netphone/phone_console.c	NETPHONE	Pantelis Antoniou
drivers/cfb_console.c		?		Frank Gottschling


Frank & Pantelis, can you please submit patches  to  clean  this  up,
too? Let's get rid of this "console" stuff before anybody else copies
it. [Sorry that this escaped me so far.]

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"What people have been reduced to are  mere  3-D  representations  of
their own data."                                      - Arthur Miller

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

* [U-Boot-Users] [PATCH] Total5100 and Total5200 platform support
  2004-07-05 13:22   ` Wolfgang Denk
@ 2004-07-06  6:05     ` Pantelis Antoniou
  2004-07-06  7:19       ` Wolfgang Denk
  0 siblings, 1 reply; 7+ messages in thread
From: Pantelis Antoniou @ 2004-07-06  6:05 UTC (permalink / raw)
  To: u-boot

Wolfgang Denk wrote:

>In message <40E95290.3040607@freescale.com> you wrote:
>
>>the attached patch adds support for the Total5100's and Total5200's LCD 
>>screen. By default only the logo is displayed because the environment 
>>variable "console" is set to "serial". By clearing this variable stdout 
>>and stderr will be displayed on the LCD. The patch should be applied 
>>after the initial (20040701) and the second patch (20040702).
>>
>
>Can you please fix this patch to  use  the  standard  console  device
>mechanism of U-Boot? Instead of introducing a new "console" variable.
>the  standard  mechanism  of assigning to the stdin / stdout / stderr
>streams should be used.
>
>
>I just learned that there are already other bad examples using such a
>"console" setting:
>
>File:				Board:		Maintainer:
>board/eltec/elppc/misc.c	ELPPC		Frank Gottschling
>board/netphone/phone_console.c	NETPHONE	Pantelis Antoniou
>drivers/cfb_console.c		?		Frank Gottschling
>
>
>Frank & Pantelis, can you please submit patches  to  clean  this  up,
>too? Let's get rid of this "console" stuff before anybody else copies
>it. [Sorry that this escaped me so far.]
>
>Best regards,
>
>Wolfgang Denk
>
>
Excuse me Wolfgang but what is the problem?

In my board I don't use an extra console variable. I
just wait for a key sequence to enable the lcd console
which does use the standard u-boot mechanism.

Have I missed something here?

Regards

Pantelis

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

* [U-Boot-Users] [PATCH] Total5100 and Total5200 platform support
  2004-07-06  7:19       ` Wolfgang Denk
@ 2004-07-06  7:16         ` Pantelis Antoniou
  0 siblings, 0 replies; 7+ messages in thread
From: Pantelis Antoniou @ 2004-07-06  7:16 UTC (permalink / raw)
  To: u-boot

Wolfgang Denk wrote:

>Dear Pantelis,
>
>in message <40EA413B.1000407@intracom.gr> you wrote:
>
>>>I just learned that there are already other bad examples using such a
>>>"console" setting:
>>>
>>>File:				Board:		Maintainer:
>>>board/eltec/elppc/misc.c		ELPPC		Frank Gottschling
>>>board/netphone/phone_console.c	NETPHONE	Pantelis Antoniou
>>>drivers/cfb_console.c		?		Frank Gottschling
>>>
>...
>
>>Excuse me Wolfgang but what is the problem?
>>
>
>The  problem  is  that  the  files  listed  above  invented  a   new,
>non-standard  mechanism  for something which is already available and
>thus should be done in a different way.
>
>
>>In my board I don't use an extra console variable. I
>>just wait for a key sequence to enable the lcd console
>>which does use the standard u-boot mechanism.
>>
>>Have I missed something here?
>>
>
>See "board/netphone/phone_console.c":
>
>    ...
>    331         /*
>    332          * Force console i/o to serial ?
>    333          */
>    334         if ((penv = getenv("console")) != NULL && strcmp(penv, "serial") == 0)
>    335                 return 0;
>    ...
>
>Here you _do_ use an extra console variable.
>
Oops, you're correct.

I have forgotten about this because I don't actually use it anywhere.

Attached patch just kills this.

>
>Please get rid of this. Please the standard stdin / stdout  /  stderr
>(here probably stdout) settings for this.
>
>Best regards,
>
>Wolfgang Denk
>
>
Regards

Pantelis

-------------- next part --------------
A non-text attachment was scrubbed...
Name: console-kill.patch
Type: text/x-patch
Size: 428 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20040706/855a5baf/attachment.bin 

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

* [U-Boot-Users] [PATCH] Total5100 and Total5200 platform support
  2004-07-06  6:05     ` Pantelis Antoniou
@ 2004-07-06  7:19       ` Wolfgang Denk
  2004-07-06  7:16         ` Pantelis Antoniou
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Denk @ 2004-07-06  7:19 UTC (permalink / raw)
  To: u-boot

Dear Pantelis,

in message <40EA413B.1000407@intracom.gr> you wrote:
> 
> >I just learned that there are already other bad examples using such a
> >"console" setting:
> >
> >File:				Board:		Maintainer:
> >board/eltec/elppc/misc.c		ELPPC		Frank Gottschling
> >board/netphone/phone_console.c	NETPHONE	Pantelis Antoniou
> >drivers/cfb_console.c		?		Frank Gottschling
...
> Excuse me Wolfgang but what is the problem?

The  problem  is  that  the  files  listed  above  invented  a   new,
non-standard  mechanism  for something which is already available and
thus should be done in a different way.

> In my board I don't use an extra console variable. I
> just wait for a key sequence to enable the lcd console
> which does use the standard u-boot mechanism.
> 
> Have I missed something here?

See "board/netphone/phone_console.c":

    ...
    331         /*
    332          * Force console i/o to serial ?
    333          */
    334         if ((penv = getenv("console")) != NULL && strcmp(penv, "serial") == 0)
    335                 return 0;
    ...

Here you _do_ use an extra console variable.

Please get rid of this. Please the standard stdin / stdout  /  stderr
(here probably stdout) settings for this.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"Marriage is like a cage; one sees the birds outside desperate to get
in, and those inside desperate to get out."               - Montaigne

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

* [U-Boot-Users] [PATCH] Total5100 and Total5200 platform support
  2004-07-01 15:44 [U-Boot-Users] [PATCH] Total5100 and Total5200 platform support Mark Jonas
  2004-07-05 13:07 ` Mark Jonas
@ 2004-07-11 19:17 ` Wolfgang Denk
  1 sibling, 0 replies; 7+ messages in thread
From: Wolfgang Denk @ 2004-07-11 19:17 UTC (permalink / raw)
  To: u-boot

In message <40E4316A.5040604@freescale.com> you wrote:
> 
> attached you'll find a patch which adds support for the Total5100 
> (MGT5100 processor) and Total5200 (MPC5200) platforms from Freescale. 
> The port is based on the Icecube (Lite5200) and supports like it I2C, 
> ATA and USB. The Flash is accessed using the generic CFI routines.

Added, thanks. Please don't add trailing white space.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
...when fits of creativity run strong, more than  one  programmer  or
writer  has  been  known to abandon the desktop for the more spacious
floor.                                             - Fred Brooks, Jr.

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

end of thread, other threads:[~2004-07-11 19:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-01 15:44 [U-Boot-Users] [PATCH] Total5100 and Total5200 platform support Mark Jonas
2004-07-05 13:07 ` Mark Jonas
2004-07-05 13:22   ` Wolfgang Denk
2004-07-06  6:05     ` Pantelis Antoniou
2004-07-06  7:19       ` Wolfgang Denk
2004-07-06  7:16         ` Pantelis Antoniou
2004-07-11 19:17 ` Wolfgang Denk

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