blob: dab56e949c1de2f9b8a8faab4fc66e1c71bf5d9a [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);
16 tmp |= 0x1;
17 writel(tmp, SG_IECTRL);
18}