summaryrefslogtreecommitdiff
path: root/board/esd/mecp5123
diff options
context:
space:
mode:
Diffstat (limited to 'board/esd/mecp5123')
-rw-r--r--board/esd/mecp5123/mecp5123.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/board/esd/mecp5123/mecp5123.c b/board/esd/mecp5123/mecp5123.c
index 909b458..bff96db 100644
--- a/board/esd/mecp5123/mecp5123.c
+++ b/board/esd/mecp5123/mecp5123.c
@@ -79,6 +79,7 @@ int board_early_init_f(void)
{
volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
u32 spridr;
+ int i;
/*
* Initialize Local Window for NOR FLASH access
@@ -129,14 +130,10 @@ int board_early_init_f(void)
/*
* Configure MSCAN clocks
*/
- out_be32(&im->clk.m1ccr, 0x00300000);
- out_be32(&im->clk.m2ccr, 0x00300000);
- out_be32(&im->clk.m3ccr, 0x00300000);
- out_be32(&im->clk.m4ccr, 0x00300000);
- out_be32(&im->clk.m1ccr, 0x00310000);
- out_be32(&im->clk.m2ccr, 0x00310000);
- out_be32(&im->clk.m3ccr, 0x00310000);
- out_be32(&im->clk.m4ccr, 0x00310000);
+ for (i=0; i<4; ++i) {
+ out_be32(&im->clk.msccr[i], 0x00300000);
+ out_be32(&im->clk.msccr[i], 0x00310000);
+ }
/*
* Configure GPIO's