Skip to contentSkip to conversation

r2dplus fix register access

PATCH New Jean-Christophe PLAGNIOL-VILLARD 2 participants 2 messages Dec 5, 2008 – Dec 6, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 r2dplus fix register access

---
 board/renesas/r2dplus/lowlevel_init.S |    2 +-
 drivers/pci/pci_sh7751.c              |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
board/renesas/r2dplus/lowlevel_init.S +1 -1
index 87e30c5..28d2b37 100644
@@ -21,7 +21,7 @@ lowlevel_init:
 
 	mov.l	MMUCR_A,r1
 	mov.l	MMUCR_D,r0
-	mov.w	r0, at r1
+	mov.l	r0, at r1
 
 	mov.l	BCR1_A,r1
 	mov.l	BCR1_D,r0
drivers/pci/pci_sh7751.c +2 -2
index e3a0ea0..df6d76f 100644
@@ -187,8 +187,8 @@ int pci_sh7751_init(struct pci_controller *hose)
 
 	/* Copy BSC registers into PCI BSC */
 	p4_out(inl(SH7751_BCR1), SH7751_PCIBCR1);
-	p4_out(inl(SH7751_BCR2), SH7751_PCIBCR2);
-	p4_out(inl(SH7751_BCR3), SH7751_PCIBCR3);
+	p4_out(inw(SH7751_BCR2), SH7751_PCIBCR2);
+	p4_out(inw(SH7751_BCR3), SH7751_PCIBCR3);
 	p4_out(inl(SH7751_WCR1), SH7751_PCIWCR1);
 	p4_out(inl(SH7751_WCR2), SH7751_PCIWCR2);
 	p4_out(inl(SH7751_WCR3), SH7751_PCIWCR3);
Signature · 1 line
1.5.6.5
#1 lore raw

PATCH 1/1 r2dplus fix register access

Quoted 6 lines · On Fri, 5 Dec 2008 07:27:37 +0100 Jean-Christophe PLAGNIOL-VILLARD…
---
 board/renesas/r2dplus/lowlevel_init.S |    2 +-
 drivers/pci/pci_sh7751.c              |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

Applied, thanks.

Best regards,
Nobuhiro

Signature · 1 line
Nobuhiro Iwamatsu