]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mecp5123: fix build error
authorWolfgang Denk <wd@denx.de>
Sun, 14 Jun 2009 18:58:46 +0000 (20:58 +0200)
committerWolfgang Denk <wd@denx.de>
Mon, 13 Jul 2009 22:01:58 +0000 (00:01 +0200)
The mecp5123 board did not compile because the MSCAN Clock Control
Registers were missing; these got added, but as an array instead
of 4 individual registers. Adapt the code so it builds.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
Cc: Reinhard Arlt <reinhard.arlt@esd-electronics.com>
board/esd/mecp5123/mecp5123.c

index 909b45869e52991e799540bc9dfdf9d6aa702c8f..bff96db72acc138f138608b7aadec77a583c0ee3 100644 (file)
@@ -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