Ignore:
Timestamp:
May 22, 2012, 3:21:28 PM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
0604477, 6c18c97
Parents:
b2cb8d6
git-author:
Sebastian Huber <sebastian.huber@…> (05/22/12 15:21:28)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/05/12 15:45:00)
Message:

powerpc/mpc55xx: BSP variant changes for MPC5643L

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-clock.c

    rb2cb8d6 reb1951a  
    4848    #define EPREDIV_VAL (MPC55XX_FMPLL_PREDIV-1)
    4949    #define EMFD_VAL    (MPC55XX_FMPLL_MFD-16)
    50     #define VCO_CLK_REF (MPC55XX_FMPLL_REF_CLOCK/(EPREDIV_VAL+1))
     50    #define VCO_CLK_REF (MPC55XX_REFERENCE_CLOCK/(EPREDIV_VAL+1))
    5151    #define VCO_CLK_OUT (VCO_CLK_REF*(EMFD_VAL+16))
    5252    #define ERFD_VAL    ((VCO_CLK_OUT/MPC55XX_FMPLL_CLK_OUT)-1)
     
    9191      {
    9292        .cr = {
    93           .B = { .IDF = 3, .ODF = 1, .NDIV = 48, .I_LOCK = 1, .PLL_ON = 1 }
     93          #if MPC55XX_REFERENCE_CLOCK == 8000000
     94            .B = { .IDF = 0, .ODF = 1, .NDIV = 60, .I_LOCK = 1, .PLL_ON = 1 }
     95          #elif MPC55XX_REFERENCE_CLOCK == 40000000
     96            .B = { .IDF = 3, .ODF = 1, .NDIV = 48, .I_LOCK = 1, .PLL_ON = 1 }
     97          #else
     98            #error "unexpected reference clock"
     99          #endif
    94100        }
    95101      },
     
    104110    },
    105111    .auxclk = {
     112      [0] = {
     113        .AC_SC = { .B = { .SELCTL = 4 } },
     114        .AC_DC0_3 = { .B = { .DE0 = 1, .DIV0 = 0 } }
     115      },
    106116      [1] = {
    107117        .AC_SC = { .B = { .SELCTL = 4 } },
Note: See TracChangeset for help on using the changeset viewer.