cpu/arm/k60: Move linker script to separate directory

This is in preparation of more linker scripts.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
cpu/arm/k60: Modularise ldscripts

* Split ldscript into separate files for inclusion in part specific
  script.

* Add ldscript for K60DN512VLL10 (512KB flash, 64KB ram) parts.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
cpu/arm/k60: LLWU: Use symbolic names for bitmasks.

Changed all except one magic number into the symbolic equivalents
defined in MK60DZ10.h

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Use symbolic bit names in flash.c

Replaced magic numbers by their symbolic equivalents from MK60DZ10.h.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Do not power on Vperiph from flash_init.

Vperiph should be controlled separately using Mulle power supply API
and is already initialized there.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Clean up clock configuration.

System, Bus, FlexBus, and Flash clock frequencies are determined at
compile time by F_CPU together with the divider settings in
config-clocks.h

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Add support for rev 2.x silicon Mulles.

All Mulle boards manufactured after the first batch are using
revision 2 of the K60 silicon. This requires some changes to the
software.

A new makefile define has been added in order to allow quicker
switching between the two revisions.
Build using revision 2 code:
$ make MULLE_BOARD_SERIAL_NUMBER=300
Build using revision 1 code:
$ make MULLE_BOARD_SERIAL_NUMBER=200

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
cpu/arm/k60: Add check for CPUID.

Added an assert to verify that the CPU revision built for is the same
CPU revision that we are running on in core_clocks_init()

If we try to set up the clocks using the wrong version of the code
we will end up in an infinite loop waiting for the MCG status
registers to set the correct bits.

Failing the check will issue a breakpoint instruction (called SIGTRAP
in gdb) and then get stuck in an infinite loop.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Use the proper pins for Vperiph control.

There was a copy and paste mistake in the power-control-board.h header
where the Vperiph pin was defined as located on PTC7 instead of PTD7.
AVDD had a similar error.

This should fix the issues with slow erase on flash memory and problems
with AVDD.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>