From: Wolfgang Denk Date: Wed, 23 Sep 2009 22:13:10 +0200 Subject: [U-Boot] [PATCH 5/8] sbc8548: update PCI/PCI-e support code In-Reply-To: <7d1e5723fdd2d2e1cf51559f876edf17ae8e7a46.1253315004.git.paul.gortmaker@windriver.com> References: <1253315326-16961-1-git-send-email-paul.gortmaker@windriver.com> <918ca661b391ce156f39e6c8a086ea93d845caea.1253315004.git.paul.gortmaker@windriver.com> <8c4c3a2e238ee8ef67637f499cc3269acbb1bf00.1253315004.git.paul.gortmaker@windriver.com> <7d1e5723fdd2d2e1cf51559f876edf17ae8e7a46.1253315004.git.paul.gortmaker@windriver.com> Message-ID: <20090923201310.41EA1832E864@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Paul Gortmaker, In message <7d1e5723fdd2d2e1cf51559f876edf17ae8e7a46.1253315004.git.paul.gortmaker@windriver.com> you wrote: > The PCI/PCI-e support for the sbc8548 was based on an earlier > version of what the MPC8548CDS board was using, and in its > current state it won't even compile. This re-syncs it to match > current MPC85xxCDS/MDS PCI-e support. > > It borrows from the MPC8568MDS, in that it pulls the PCI-e I/O > back to 0xe280_0000 (where PCI2 would be on MPC8548CDS), and > similarly it coalesces the PCI and PCI-e mem into one single TLB. > > Both PCI-x and PCI-e have been tested with intel e1000 cards > under linux (with an accompanying dts change in place) ... > diff --git a/board/sbc8548/sbc8548.c b/board/sbc8548/sbc8548.c > index 1db32ec..0387140 100644 > --- a/board/sbc8548/sbc8548.c > +++ b/board/sbc8548/sbc8548.c ... > @@ -400,6 +400,7 @@ pci_init_board(void) > struct pci_controller *hose = &pcie1_hose; > struct pci_region *r = hose->regions; > > + uint io_sel = (gur->pordevsr & MPC85xx_PORDEVSR_IO_SEL) >> 19; Please use I/O accessors. Check globally, please. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The only perfect science is hind-sight.