]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/arm/mach-uniphier/pll/pll-spectrum-ph1-sld3.c
ARM: uniphier: allow to enable multiple SoCs
[people/ms/u-boot.git] / arch / arm / mach-uniphier / pll / pll-spectrum-ph1-sld3.c
CommitLineData
3365b4eb
MY
1/*
2 * Copyright (C) 2011-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#include <common.h>
8#include <linux/io.h>
323d1f9d 9#include <mach/init.h>
3365b4eb
MY
10#include <mach/sc-regs.h>
11
323d1f9d 12int ph1_sld3_enable_dpll_ssc(const struct uniphier_board_data *bd)
3365b4eb
MY
13{
14 u32 tmp;
15
16 tmp = readl(SC_DPLLCTRL);
17 tmp |= SC_DPLLCTRL_SSC_EN;
18 writel(tmp, SC_DPLLCTRL);
323d1f9d
MY
19
20 return 0;
3365b4eb 21}