ARM: mxs: allow boards to select DC-DC switching clock source
authorMichael Heimpold <mhei@heimpold.de>
Sun, 13 Dec 2015 11:08:37 +0000 (12:08 +0100)
committerStefano Babic <sbabic@denx.de>
Sun, 3 Jan 2016 14:56:36 +0000 (15:56 +0100)
commitfe21eaf92de4d78413e69c95ba23a869e17454f7
tree01d3207cc7ee372bcc37b81f0f75c93309a6c0f4
parenta1ed155298eeb29000d9b1033be094c0f7c45212
ARM: mxs: allow boards to select DC-DC switching clock source

For some board designs, it might be useful to switch the DC-DC
clock source to something else rather the default 24 MHz, e.g.
for EMI reasons.

For this, override the mxs_power_setup_dcdc_clocksource function
in your board support files.

Example:
void mxs_power_setup_dcdc_clocksource(void)
{
    mxs_power_switch_dcdc_clocksource(POWER_MISC_FREQSEL_20MHZ);
}

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Cc: Marek Vasut <marex@denx.de>
Cc: Otavio Salvador <otavio@ossystems.com.br>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
arch/arm/cpu/arm926ejs/mxs/spl_power_init.c
arch/arm/include/asm/arch-mxs/sys_proto.h