blob: ff09a92005241577de046e74b357426e9e9b8509 [file] [log] [blame]
Masahiro Yamada5894ca02014-10-03 19:21:06 +09001/*
Masahiro Yamadaf6e7f072015-05-29 17:30:00 +09002 * Copyright (C) 2011-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamada5894ca02014-10-03 19:21:06 +09003 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#include <common.h>
Masahiro Yamadaf6e7f072015-05-29 17:30:00 +09008#include <linux/io.h>
Masahiro Yamada107b3fb2016-01-09 01:51:13 +09009
10#include "../init.h"
11#include "../sc-regs.h"
Masahiro Yamada5894ca02014-10-03 19:21:06 +090012
Masahiro Yamada5b660062016-03-30 20:17:02 +090013int uniphier_sld3_enable_dpll_ssc(const struct uniphier_board_data *bd)
Masahiro Yamada5894ca02014-10-03 19:21:06 +090014{
15 u32 tmp;
16
17 tmp = readl(SC_DPLLCTRL);
18 tmp |= SC_DPLLCTRL_SSC_EN;
19 writel(tmp, SC_DPLLCTRL);
Masahiro Yamada323d1f92015-09-22 00:27:39 +090020
21 return 0;
Masahiro Yamada5894ca02014-10-03 19:21:06 +090022}