* [U-Boot-Users] How to generalize SDRAM support for MPC5200 and MGT5100?
@ 2004-07-01 15:55 Mark Jonas
0 siblings, 0 replies; 2+ messages in thread
From: Mark Jonas @ 2004-07-01 15:55 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot-Users] How to generalize SDRAM support for MPC5200 and MGT5100?
@ 2004-07-05 14:38 Jonas Mark-r50740
0 siblings, 0 replies; 2+ messages in thread
From: Jonas Mark-r50740 @ 2004-07-05 14:38 UTC (permalink / raw)
To: u-boot
I sent the email below 01-July-2004 but it never appeared on the mailing list. So I give it another try.
--
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 themselves
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 parameter
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-07-05 14:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-01 15:55 [U-Boot-Users] How to generalize SDRAM support for MPC5200 and MGT5100? Mark Jonas
-- strict thread matches above, loose matches on Subject: below --
2004-07-05 14:38 Jonas Mark-r50740
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox