]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
sh: r2dplus fix register access
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Fri, 5 Dec 2008 06:27:37 +0000 (07:27 +0100)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Wed, 10 Dec 2008 14:11:36 +0000 (23:11 +0900)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
board/renesas/r2dplus/lowlevel_init.S
drivers/pci/pci_sh7751.c

index 87e30c5cf7a50ef1c818ee837b04e05649864580..28d2b3769a2b7633b089ffc2413d11c81cf58b04 100644 (file)
@@ -21,7 +21,7 @@ lowlevel_init:
 
        mov.l   MMUCR_A,r1
        mov.l   MMUCR_D,r0
-       mov.w   r0,@r1
+       mov.l   r0,@r1
 
        mov.l   BCR1_A,r1
        mov.l   BCR1_D,r0
index e3a0ea0047b67e2ffc199fc64f6e4206e00ca217..df6d76f7f17cf1a895f8d0ef29c6be81ab3d16a5 100644 (file)
@@ -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);