public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Mark Jonas <mark.jonas@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] How to generalize SDRAM support for MPC5200 and MGT5100?
Date: Thu, 01 Jul 2004 17:55:18 +0200	[thread overview]
Message-ID: <40E433E6.50400@freescale.com> (raw)

Hello,

while porting U-Boot to Total5200 I thought that it would be nice if all 
MPC5200 and MGT5100 platforms could share their SDRAM initialization 
code. In fact this is already done but by means of code duplication. So 
far most people (everybody?) simply copied the board/icecube/icecube.c 
and took it SDRAM init code unchanged. And if the SDRAM chips themself 
were matching the appropriate mt4*-75.h file was copied as well. So how 
can we move the SDRAM init functions from the board directory to the 
drivers or the cpu/mpc5xxx directory? (I think cpu/mpc5xxx would be the 
better match)

In the Total5200 port I already went half way but taking the SDRAM init 
functions out from board/total/total5200.c to board/total5200/sdram.*. I 
did not put it into cpu/mpc5xxx because if I did so I wanted to have a 
smart solution in regards to coupling that with the SDRAM paramter 
includes (mt48lc16m16a2-75.h, mt46v16m16-75.h and mt48lc32m16a2-75.h).

Does anybody have an idea how we can make this generic for all MPC5200 
and MGT5100 boards?

Regards
Mark

             reply	other threads:[~2004-07-01 15:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-01 15:55 Mark Jonas [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-07-05 14:38 [U-Boot-Users] How to generalize SDRAM support for MPC5200 and MGT5100? Jonas Mark-r50740

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=40E433E6.50400@freescale.com \
    --to=mark.jonas@freescale.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