From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v5] ppc4xx: Add GDsys CompactCenter board support.
Date: Tue, 28 Jul 2009 06:56:33 +0200 [thread overview]
Message-ID: <200907280656.33372.sr@denx.de> (raw)
In-Reply-To: <20090727210650.8622E832E416@gemini.denx.de>
Hi Wolfgang,
On Monday 27 July 2009 23:06:50 Wolfgang Denk wrote:
> > + mtdcr(uic3sr, 0xffffffff); /* clear all */
> > + mtdcr(uic3er, 0x00000000); /* disable all */
> > + mtdcr(uic3cr, 0x00000000); /* all non-critical */
> > + mtdcr(uic3pr, 0xffffffff); /* per ref-board manual */
> > + mtdcr(uic3tr, 0x00000000); /* per ref-board manual */
> > + mtdcr(uic3vr, 0x00000000); /* int31 highest, base=0x000 */
> > + mtdcr(uic3sr, 0xffffffff); /* clear all */
>
> All these lower case #defines in "include/asm-ppc/ppc4xx-uic.h"
> should be cleaned up.
>
> ..
>
> > +void pci_target_init(struct pci_controller *hose)
> > +{
> > + /*
> > + * Disable everything
> > + */
> > + out_le32((void *)PCIX0_PIM0SA, 0); /* disable */
> > + out_le32((void *)PCIX0_PIM1SA, 0); /* disable */
> > + out_le32((void *)PCIX0_PIM2SA, 0); /* disable */
> > + out_le32((void *)PCIX0_EROMBA, 0); /* disable expansion rom */
> > +
> > + /*
> > + * Map all of SDRAM to PCI address 0x0000_0000. Note that the 440
> > + * strapping options to not support sizes such as 128/256 MB.
> > + */
> > + out_le32((void *)PCIX0_PIM0LAL, CONFIG_SYS_SDRAM_BASE);
> > + out_le32((void *)PCIX0_PIM0LAH, 0);
> > + out_le32((void *)PCIX0_PIM0SA, ~(gd->ram_size - 1) | 1);
> > + out_le32((void *)PCIX0_BAR0, 0);
>
> And we should proper C structs in "include/ppc440.h" so we can get
> rid of all these nasty casts.
>
>
> I don't intend to block this patch at this stage, but can you please
> put such cleanup on your list for the next release? Thanks.
OK, I'll put it on my list. The lower-case stuff shouldn't be that hard, but
the C struct change is quite intrusive and I can't really promise that I can
finish such a cleanup quickly. But I'll try.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
next prev parent reply other threads:[~2009-07-28 4:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-27 6:49 [U-Boot] [PATCH v5] ppc4xx: Add GDsys CompactCenter board support Dirk Eibach
2009-07-27 21:06 ` Wolfgang Denk
2009-07-28 4:56 ` Stefan Roese [this message]
2009-07-28 5:22 ` Stefan Roese
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=200907280656.33372.sr@denx.de \
--to=sr@denx.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.