mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-16 08:13:17 +00:00
6cc2120646
This code is duplicated in ph1-ld4/sg_init.c and ph1-pro4/sg_init.c. Merge the same code into a new file, memconf.c. The helper functions no longer have to be placed in the header file. Also, move them into memconf.c. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
19 lines
367 B
C
19 lines
367 B
C
/*
|
|
* Copyright (C) 2011-2015 Panasonic Corporation
|
|
* Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <asm/io.h>
|
|
#include <mach/sg-regs.h>
|
|
|
|
void sg_init(void)
|
|
{
|
|
u32 tmp;
|
|
|
|
/* Input ports must be enabled before deasserting reset of cores */
|
|
tmp = readl(SG_IECTRL);
|
|
tmp |= 0x1;
|
|
writel(tmp, SG_IECTRL);
|
|
}
|