Skip to contentSkip to conversation

Total5100 and Total5200 platform support

PATCH New Mark Jonas 3 participants 7 messages Jul 1, 2004 – Jul 11, 2004

lore
Share & tools
lore

Mark Jonas

author
#0 lore raw

PATCH 1/1 Total5100 and Total5200 platform support

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

author
#1 lore raw

PATCH 1/1 Total5100 and Total5200 platform support

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

Quoted 25 lines

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 +++
Quoted 9 lines
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

#2 lore raw

PATCH 1/1 Total5100 and Total5200 platform support

Quoted 6 lines · In message <[email protected]> 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

Signature · 4 lines
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
#3 lore raw

PATCH 1/1 Total5100 and Total5200 platform support

Quoted 24 lines · Wolfgang Denk
Quoted 6 lines · In message <[email protected]> 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

Quoted 9 lines

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

#4 lore raw

PATCH 1/1 Total5100 and Total5200 platform support

Dear Pantelis,

Quoted 8 lines · in message <[email protected]> you wrote:
Quoted 8 lines

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

...

Quoted 1 line

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.

Quoted 5 lines

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

Signature · 4 lines
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
#5 lore raw

PATCH 1/1 Total5100 and Total5200 platform support

Quoted 39 lines · Wolfgang Denk

Dear Pantelis,

Quoted 8 lines · in message <[email protected]> you wrote:
Quoted 8 lines

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

...

Quoted 2 lines

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.

Quoted 6 lines

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;
   ...
Quoted 2 lines

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.

Quoted 9 lines

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

#6 lore raw

PATCH 1/1 Total5100 and Total5200 platform support

In reply to Mark Jonas
Quoted 5 lines · In message <[email protected]> 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

Signature · 5 lines
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.