blob: 24a55ea5456ed53d14352d433ba63e657205928c [file] [log] [blame]
Masahiro Yamada5894ca02014-10-03 19:21:06 +09001/*
Masahiro Yamada9e3bb842017-01-15 14:59:05 +09002 * Copyright (C) 2011-2015 Panasonic Corporation
3 * Copyright (C) 2015-2017 Socionext Inc.
Masahiro Yamada5894ca02014-10-03 19:21:06 +09004 *
5 * SPDX-License-Identifier: GPL-2.0+
6 */
7
Masahiro Yamadaf6e7f072015-05-29 17:30:00 +09008#include <linux/io.h>
Masahiro Yamada107b3fb2016-01-09 01:51:13 +09009
10#include "../init.h"
Masahiro Yamada107b3fb2016-01-09 01:51:13 +090011#include "sbc-regs.h"
Masahiro Yamada5894ca02014-10-03 19:21:06 +090012
Masahiro Yamada9e3bb842017-01-15 14:59:05 +090013void uniphier_ld4_sbc_init(void)
Masahiro Yamada5894ca02014-10-03 19:21:06 +090014{
Masahiro Yamada2661dfd2015-01-06 14:20:04 +090015 u32 tmp;
16
Masahiro Yamada9e3bb842017-01-15 14:59:05 +090017 uniphier_sbc_init_savepin();
18
Masahiro Yamada2661dfd2015-01-06 14:20:04 +090019 /* system bus output enable */
20 tmp = readl(PC0CTRL);
21 tmp &= 0xfffffcff;
22 writel(tmp, PC0CTRL);
Masahiro Yamada5894ca02014-10-03 19:21:06 +090023}