blob: dc97697fe471f4d451b87f787d179bfbaadc5ae6 [file] [log] [blame]
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +09001/*
Masahiro Yamada663a23f2015-05-29 17:30:00 +09002 * Copyright (C) 2011-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +09003 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
Masahiro Yamada663a23f2015-05-29 17:30:00 +09007#include <linux/io.h>
Masahiro Yamadaefdf3402016-01-09 01:51:13 +09008
9#include "../init.h"
10#include "../sc-regs.h"
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +090011
Masahiro Yamada98905692016-03-30 20:17:02 +090012int uniphier_ld4_enable_dpll_ssc(const struct uniphier_board_data *bd)
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +090013{
14 u32 tmp;
15
16 tmp = readl(SC_DPLLCTRL);
17 tmp |= SC_DPLLCTRL_SSC_EN;
18 writel(tmp, SC_DPLLCTRL);
Masahiro Yamada75f16f82015-09-22 00:27:39 +090019
20 return 0;
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +090021}