blob: 8c167ef0698b4f5965c0520d1a4f225d056fc6e6 [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 Yamada9e3bb842017-01-15 14:59:05 +090013 uniphier_sbc_init_savepin();
14
Masahiro Yamada019df872015-09-22 00:27:41 +090015 /* necessary for ROM boot ?? */
16 /* system bus output enable */
17 writel(0x17, PC0CTRL);
Masahiro Yamadad8a10e72017-08-29 15:42:20 +090018
Masahiro Yamadab443fb42017-11-25 00:25:35 +090019 uniphier_pin_init("system-bus"); /* PXs3 */
Masahiro Yamada019df872015-09-22 00:27:41 +090020}