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