blob: 3275f22ce96c7eaedc2c8f07250639155dd16b76 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Masahiro Yamada1fe65d32015-09-22 00:27:41 +09002/*
Masahiro Yamada6f11cde2017-01-15 14:59:05 +09003 * Copyright (C) 2016-2017 Socionext Inc.
Masahiro Yamada1fe65d32015-09-22 00:27:41 +09004 */
5
6#include <linux/io.h>
Masahiro Yamadaefdf3402016-01-09 01:51:13 +09007
8#include "../init.h"
Masahiro Yamadaefdf3402016-01-09 01:51:13 +09009#include "sbc-regs.h"
Masahiro Yamada1fe65d32015-09-22 00:27:41 +090010
Masahiro Yamada6f11cde2017-01-15 14:59:05 +090011void uniphier_pxs2_sbc_init(void)
Masahiro Yamada1fe65d32015-09-22 00:27:41 +090012{
Masahiro Yamadaf4716dc2019-07-10 20:07:37 +090013 if (!uniphier_sbc_is_enabled())
14 return;
15
Masahiro Yamada6f11cde2017-01-15 14:59:05 +090016 uniphier_sbc_init_savepin();
17
Masahiro Yamada1fe65d32015-09-22 00:27:41 +090018 /* necessary for ROM boot ?? */
19 /* system bus output enable */
20 writel(0x17, PC0CTRL);
Masahiro Yamadad69d0a72017-08-29 15:42:20 +090021
Masahiro Yamada6c086d02017-11-25 00:25:35 +090022 uniphier_pin_init("system-bus"); /* PXs3 */
Masahiro Yamada1fe65d32015-09-22 00:27:41 +090023}