[U-Boot-Users] parallel FLASH
Erwin Rol
erwin at muffin.org
Wed Apr 2 20:08:49 CEST 2003
On Wed, 2003-04-02 at 18:44, Wolfgang Denk wrote:
> Hi Erwin,
>
> in message <1049282647.27232.70.camel at drake.erwin.muffin.org> you wrote:
> >
> > Well in cpu/mpc8xx/cpu_init.c br0 and or0 are always set to
> > CFG_BR0_PRELIM and CFG_OR0_PRELIM. So if the bus width is set to 16 in
> > CFG_BR0_PRELIM my board will not run when it is a dual-FLASH version,
> > and when i set it to 32 bit it won't run when its a single-FLASH
> > version. And i don't want to make two different bootloaders, since that
> > flash configuration is the only difference. So what i did was just
> > masking out the BR_PS_MSK to keep those the same as they where on reset,
> > and that works fine.
>
> I see. You should be able to use something like this in such a case:
>
> #define CFG_BR0_PRELIM ((memctl->memc_br0 & BR_PS_MSK) | your_other_bits)
>
Exactly what i was looking for :-)
Thanx,
Erwin
>
> Best regards,
>
> Wolfgang Denk
--
Dipl.-Ing. Erwin Rol - Software Engineering
tel: +49-(0)8024-479377 gsm: +49-(0)171-6929198 fax: +49-(0)8024-479379
email: erwin at muffin.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.denx.de/pipermail/u-boot/attachments/20030402/40b0204d/attachment.pgp
More information about the U-Boot
mailing list