mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-21 01:18:52 +09:00
![Masahiro Yamada](/assets/img/avatar_default.png)
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>
20 lines
367 B
C
20 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);
|
|
}
|