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