Skip to contentSkip to conversation

86xx: Fix renamed GUR symbols in sbc8641d board.

PATCH New Jon Loeliger 2 participants 2 messages Feb 25, 2008 – Mar 2, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 86xx: Fix renamed GUR symbols in sbc8641d board.

Back in commit a551cee99ad1d1da20fd23ad265de47448852f56 (86xx: Fix GUR PCI config registers properly), we should have changed the MPC86xx_PORBMSR_HA and MPC86xx_PORDEVSR_IO_SEL symbols in the sbc8641d board as well. Fix this oversight.

---

Wolfgang,

Argh. This fixes the sbc8641d build problem.

I am dumb.

Thanks,
jdl

 board/sbc8641d/sbc8641d.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
board/sbc8641d/sbc8641d.c +4 -2
index 78656e9..e7334ef 100644
@@ -230,7 +230,8 @@ void pci_init_board(void)
 	volatile immap_t *immap = (immap_t *) CFG_CCSRBAR;
 	volatile ccsr_gur_t *gur = &immap->im_gur;
 	uint devdisr = gur->devdisr;
-	uint io_sel = (gur->pordevsr & MPC86xx_PORDEVSR_IO_SEL) >> 16;
+	uint io_sel = (gur->pordevsr & MPC8641_PORDEVSR_IO_SEL)
+		>> MPC8641_PORDEVSR_IO_SEL_SHIFT;
 
 #ifdef CONFIG_PCI1
 {
@@ -238,7 +239,8 @@ void pci_init_board(void)
 	extern void fsl_pci_init(struct pci_controller *hose);
 	struct pci_controller *hose = &pci1_hose;
 #ifdef DEBUG
-	uint host1_agent = (gur->porbmsr & MPC86xx_PORBMSR_HA) >> 17;
+	uint host1_agent = (gur->porbmsr & MPC8641_PORBMSR_HA)
+		>> MPC8641_PORBMSR_HA_SHIFT;
 	uint pex1_agent = (host1_agent == 0) || (host1_agent == 1);
 #endif
 	if ((io_sel == 2 || io_sel == 3 || io_sel == 5
Signature · 1 line
1.5.4.rc5.19.g0509eb
#1 lore raw

PATCH 1/1 86xx: Fix renamed GUR symbols in sbc8641d board.

Quoted 6 lines · In message <1203970713.30238.4.camel@ld0161-tx32> you wrote:

Back in commit a551cee99ad1d1da20fd23ad265de47448852f56 (86xx: Fix GUR PCI config registers properly), we should have changed the MPC86xx_PORBMSR_HA and MPC86xx_PORDEVSR_IO_SEL symbols in the sbc8641d board as well. Fix this oversight.

Applied (by pulling from u-boot-86xx). Thanks.

Best regards,

Wolfgang Denk

Signature · 6 lines
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 way you could make a happy  marriage  is  by  cuttin'  their
heads  off  as  soon  as  they say `I do', yes? You can't make happi-
ness...                           - Terry Pratchett, _Witches Abroad_