blob: d6ccffbbc3e002af43978a632e844c5df11b9cdf [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
Masahiro Yamadaf6e7f072015-05-29 17:30:00 +09007#include <linux/io.h>
Masahiro Yamadaa86ac952015-02-27 02:26:44 +09008#include <mach/sg-regs.h>
Masahiro Yamada5894ca02014-10-03 19:21:06 +09009
10void sg_init(void)
11{
12 u32 tmp;
13
Masahiro Yamada89a7c772015-01-13 18:54:34 +090014 /* Input ports must be enabled before deasserting reset of cores */
Masahiro Yamada5894ca02014-10-03 19:21:06 +090015 tmp = readl(SG_IECTRL);
Masahiro Yamada44843742015-01-19 22:31:10 +090016 tmp |= 1 << 6;
Masahiro Yamada5894ca02014-10-03 19:21:06 +090017 writel(tmp, SG_IECTRL);
18}