blob: d075c47d61ed6c03e030785a69c627ff4ccc67b4 [file] [log] [blame]
Masahiro Yamada6f11cde2017-01-15 14:59:05 +09001/*
2 * Copyright (C) 2016-2017 Socionext Inc.
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#include <common.h>
8#include <spl.h>
9#include <linux/io.h>
10
11#include "../init.h"
12#include "sbc-regs.h"
13
14void uniphier_ld11_sbc_init(void)
15{
16 uniphier_sbc_init_savepin();
17
18 /* necessary for ROM boot ?? */
19 /* system bus output enable */
20 writel(0x17, PC0CTRL);
21
22 /* pins for NAND and System Bus are multiplexed */
23 if (spl_boot_device() != BOOT_DEVICE_NAND)
Masahiro Yamada6c086d02017-11-25 00:25:35 +090024 uniphier_pin_init("system-bus");
Masahiro Yamada6f11cde2017-01-15 14:59:05 +090025}