2014-10-03 19:21:06 +09:00
|
|
|
/*
|
2015-02-27 02:27:04 +09:00
|
|
|
* Copyright (C) 2011-2015 Panasonic Corporation
|
2014-10-03 19:21:06 +09:00
|
|
|
* Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <asm/io.h>
|
2015-02-27 02:26:44 +09:00
|
|
|
#include <mach/sg-regs.h>
|
2014-10-03 19:21:06 +09:00
|
|
|
|
|
|
|
void sg_init(void)
|
|
|
|
{
|
|
|
|
u32 tmp;
|
|
|
|
|
2015-01-13 18:54:34 +09:00
|
|
|
/* Input ports must be enabled before deasserting reset of cores */
|
2014-10-03 19:21:06 +09:00
|
|
|
tmp = readl(SG_IECTRL);
|
2015-01-19 22:31:10 +09:00
|
|
|
tmp |= 1 << 6;
|
2014-10-03 19:21:06 +09:00
|
|
|
writel(tmp, SG_IECTRL);
|
|
|
|
}
|