]> git.sur5r.net Git - u-boot/blobdiff - board/eNET/eNET.c
sc520: Move board specific settings to board init function
[u-boot] / board / eNET / eNET.c
index 30d8750d7616209b7a0c502850637a24de6abb75..b2f349f988509d938046f18f1801d0e45029f84a 100644 (file)
@@ -94,12 +94,21 @@ int board_early_init_f(void)
        writew(0x0615, &sc520_mmcr->romcs1ctl);
        writew(0x0615, &sc520_mmcr->romcs2ctl);
 
+       /*
+        * Set the timer pin mapping
+        * no clock frequency selected, use 1.1892MHz
+        */
+       writeb(0x72, &sc520_mmcr->clksel);
+
        writeb(0x00, &sc520_mmcr->adddecctl);
        writeb(0x07, &sc520_mmcr->uart1ctl);
        writeb(0x07, &sc520_mmcr->uart2ctl);
        writeb(0x06, &sc520_mmcr->sysarbctl);
        writew(0x0003, &sc520_mmcr->sysarbmenb);
 
+       /* enable posted-writes */
+       writeb(0x04, &sc520_mmcr->hbctl);
+
        return 0;
 }