blob: 0e0ba27bd97b3c2a1ed9629b418a86bc87f3959e [file] [log] [blame]
Masahiro Yamada1fe65d32015-09-22 00:27:41 +09001/*
Masahiro Yamada6f11cde2017-01-15 14:59:05 +09002 * Copyright (C) 2016-2017 Socionext Inc.
Masahiro Yamada1fe65d32015-09-22 00:27:41 +09003 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#include <linux/io.h>
Masahiro Yamadaefdf3402016-01-09 01:51:13 +09008
9#include "../init.h"
Masahiro Yamadaefdf3402016-01-09 01:51:13 +090010#include "sbc-regs.h"
Masahiro Yamada1fe65d32015-09-22 00:27:41 +090011
Masahiro Yamada6f11cde2017-01-15 14:59:05 +090012void uniphier_pxs2_sbc_init(void)
Masahiro Yamada1fe65d32015-09-22 00:27:41 +090013{
Masahiro Yamada6f11cde2017-01-15 14:59:05 +090014 uniphier_sbc_init_savepin();
15
Masahiro Yamada1fe65d32015-09-22 00:27:41 +090016 /* necessary for ROM boot ?? */
17 /* system bus output enable */
18 writel(0x17, PC0CTRL);
Masahiro Yamadad69d0a72017-08-29 15:42:20 +090019
20 uniphier_pin_init("system_bus_grp"); /* PXs3 */
Masahiro Yamada1fe65d32015-09-22 00:27:41 +090021}