mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 05:42:46 +01:00
Update license to use SPDX-License-Identifier instead of verbose license text. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Kuninori Morimoto <[email protected]> Reviewed-by: Simon Horman <[email protected]> Cc: Rich Felker <[email protected]> Cc: Yoshinori Sato <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
53 lines
1.1 KiB
C
53 lines
1.1 KiB
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* arch/sh/kernel/cpu/clock.c - SuperH clock framework
|
|
*
|
|
* Copyright (C) 2005 - 2009 Paul Mundt
|
|
*
|
|
* This clock framework is derived from the OMAP version by:
|
|
*
|
|
* Copyright (C) 2004 - 2008 Nokia Corporation
|
|
* Written by Tuukka Tikkanen <[email protected]>
|
|
*
|
|
* Modified for omap shared clock framework by Tony Lindgren <[email protected]>
|
|
*/
|
|
#include <linux/kernel.h>
|
|
#include <linux/init.h>
|
|
#include <linux/clk.h>
|
|
#include <asm/clock.h>
|
|
#include <asm/machvec.h>
|
|
|
|
int __init clk_init(void)
|
|
{
|
|
int ret;
|
|
|
|
#ifndef CONFIG_COMMON_CLK
|
|
ret = arch_clk_init();
|
|
if (unlikely(ret)) {
|
|
pr_err("%s: CPU clock registration failed.\n", __func__);
|
|
return ret;
|
|
}
|
|
#endif
|
|
|
|
if (sh_mv.mv_clk_init) {
|
|
ret = sh_mv.mv_clk_init();
|
|
if (unlikely(ret)) {
|
|
pr_err("%s: machvec clock initialization failed.\n",
|
|
__func__);
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
#ifndef CONFIG_COMMON_CLK
|
|
/* Kick the child clocks.. */
|
|
recalculate_root_clocks();
|
|
|
|
/* Enable the necessary init clocks */
|
|
clk_enable_init_clocks();
|
|
#endif
|
|
|
|
return ret;
|
|
}
|
|
|
|
|