summaryrefslogtreecommitdiff
path: root/board/eNET
diff options
context:
space:
mode:
authorGraeme Russ <graeme.russ@gmail.com>2011-02-12 15:11:38 +1100
committerGraeme Russ <graeme.russ@gmail.com>2011-02-12 15:11:38 +1100
commit870847f5c5709b623b0d094780a994312b8da5a5 (patch)
tree517168f285825c926da3900d91a316cb0ed0045b /board/eNET
parentc2cbbaf0b4035f713f524b85b8f54fb7f7f3720d (diff)
downloadu-boot-imx-870847f5c5709b623b0d094780a994312b8da5a5.zip
u-boot-imx-870847f5c5709b623b0d094780a994312b8da5a5.tar.gz
u-boot-imx-870847f5c5709b623b0d094780a994312b8da5a5.tar.bz2
sc520: Move board specific settings to board init function
Diffstat (limited to 'board/eNET')
-rw-r--r--board/eNET/eNET.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/eNET/eNET.c b/board/eNET/eNET.c
index 30d8750..b2f349f 100644
--- a/board/eNET/eNET.c
+++ b/board/eNET/eNET.c
@@ -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;
}