board: ecovec: fix USB0 clock enable
authorBaruch Siach <baruch@tkos.co.il>
Mon, 17 Mar 2014 14:14:54 +0000 (16:14 +0200)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Mon, 31 Mar 2014 01:48:02 +0000 (10:48 +0900)
Enable USB0 clock by resetting bit 20 of MSTPCR2. Leave other bits unchanged.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
board/renesas/ecovec/ecovec.c

index 450e38783056bc29dd51e30517d515a8863f2d98..2804d9133da0320cb49dfc1b7f2a25ecff5cde0e 100644 (file)
@@ -97,7 +97,7 @@ int board_init(void)
        /* USB host */
        outw((inw(PBCR) & ~0x300) | 0x100, PBCR);
        outb((inb(PBDR) & ~0x10) | 0x10, PBDR);
-       outl(inl(MSTPCR2) & 0x100000, MSTPCR2);
+       outl(inl(MSTPCR2) & ~0x100000, MSTPCR2);
        outw(0x0600, UPONCR0);
 
        debug_led(1 << 3);