blob: e6b83ff75b553b6cdb3cac0690cd3a9002d99c5e [file] [log] [blame]
Masahiro Yamada9e3bb842017-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)
24 uniphier_pin_init("system_bus_grp");
25}