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