1 /*
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 
14 void 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 }
26