HI Martin
Sincere apologies for the delayed response (somehow i missed your reply) if you check the K70 sysinit.c file you will find both the PLL used one for system clock and one for DDR.
Snapshot of the code in the file
/* NOTE: The PLL init will not configure the system clock dividers,
* so they must be configured appropriately before calling the PLL
* init function to ensure that clocks remain in valid ranges.
*/
SIM_CLKDIV1 = ( 0
| SIM_CLKDIV1_OUTDIV1(0)
| SIM_CLKDIV1_OUTDIV2(1)
| SIM_CLKDIV1_OUTDIV3(2)
| SIM_CLKDIV1_OUTDIV4(5) );
/* Initialize PLL0 */
/* PLL0 will be the source for MCG CLKOUT so the core, system, FlexBus, and flash clocks are derived from it */
mcg_clk_hz = pll_init(OSCINIT, /* Initialize the oscillator circuit */
OSC_0, /* Use CLKIN0 as the input clock */
CLK0_FREQ_HZ, /* CLKIN0 frequency */
LOW_POWER, /* Set the oscillator for low power mode */
CLK0_TYPE, /* Crystal or canned oscillator clock input */
PLL_0, /* PLL to initialize, in this case PLL0 */
PLL0_PRDIV, /* PLL predivider value */
PLL0_VDIV, /* PLL multiplier */
MCGOUT); /* Use the output from this PLL as the MCGOUT */
/* Check the value returned from pll_init() to make sure there wasn't an error */
if (mcg_clk_hz < 0x100)
while(1);
/* Initialize PLL1 */
/* PLL1 will be the source for the DDR controller, but NOT the MCGOUT */
pll_1_clk_khz = (pll_init(NO_OSCINIT, /* Don't init the osc circuit, already done */
OSC_0, /* Use CLKIN0 as the input clock */
CLK0_FREQ_HZ, /* CLKIN0 frequency */
LOW_POWER, /* Set the oscillator for low power mode */
CLK0_TYPE, /* Crystal or canned oscillator clock input */
PLL_1, /* PLL to initialize, in this case PLL1 */
PLL1_PRDIV, /* PLL predivider value */
PLL1_VDIV, /* PLL multiplier */
PLL_ONLY) / 1000); /* Don't use the output from this PLL as the MCGOUT */
/* Check the value returned from pll_init() to make sure there wasn't an error */
if ((pll_1_clk_khz * 1000) < 0x100)
while(1);