]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/mach-uniphier/ph1-ld4/sg_init.c
karo: cleanup after merge of v2015.10-rc2
[karo-tx-uboot.git] / arch / arm / mach-uniphier / ph1-ld4 / sg_init.c
1 /*
2  * Copyright (C) 2011-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6
7 #include <linux/io.h>
8 #include <mach/sg-regs.h>
9
10 void sg_init(void)
11 {
12         u32 tmp;
13
14         /* Input ports must be enabled before deasserting reset of cores */
15         tmp = readl(SG_IECTRL);
16         tmp |= 0x1;
17         writel(tmp, SG_IECTRL);
18 }