2018-05-06 17:58:06 -04:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2014-10-03 19:21:06 +09:00
|
|
|
/*
|
2017-01-15 14:59:05 +09:00
|
|
|
* Copyright (C) 2011-2015 Panasonic Corporation
|
|
|
|
* Copyright (C) 2015-2017 Socionext Inc.
|
2014-10-03 19:21:06 +09:00
|
|
|
*/
|
|
|
|
|
2015-05-29 17:30:00 +09:00
|
|
|
#include <linux/io.h>
|
2016-01-09 01:51:13 +09:00
|
|
|
|
|
|
|
#include "../init.h"
|
|
|
|
#include "sbc-regs.h"
|
2014-10-03 19:21:06 +09:00
|
|
|
|
2017-01-15 14:59:05 +09:00
|
|
|
void uniphier_ld4_sbc_init(void)
|
2014-10-03 19:21:06 +09:00
|
|
|
{
|
2015-01-06 14:20:04 +09:00
|
|
|
u32 tmp;
|
|
|
|
|
2019-07-10 20:07:37 +09:00
|
|
|
if (!uniphier_sbc_is_enabled())
|
|
|
|
return;
|
|
|
|
|
2017-01-15 14:59:05 +09:00
|
|
|
uniphier_sbc_init_savepin();
|
|
|
|
|
2015-01-06 14:20:04 +09:00
|
|
|
/* system bus output enable */
|
|
|
|
tmp = readl(PC0CTRL);
|
|
|
|
tmp &= 0xfffffcff;
|
|
|
|
writel(tmp, PC0CTRL);
|
2014-10-03 19:21:06 +09:00
|
|
|
}
|