ARM: uniphier: make boot_is_swapped() code optional
[oweals/u-boot.git] / arch / arm / mach-uniphier / sbc / sbc-ld4.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright (C) 2011-2015 Panasonic Corporation
4  * Copyright (C) 2015-2017 Socionext Inc.
5  */
6
7 #include <linux/io.h>
8
9 #include "../init.h"
10 #include "sbc-regs.h"
11
12 void uniphier_ld4_sbc_init(void)
13 {
14         u32 tmp;
15
16         if (!uniphier_sbc_is_enabled())
17                 return;
18
19         uniphier_sbc_init_savepin();
20
21         /* system bus output enable */
22         tmp = readl(PC0CTRL);
23         tmp &= 0xfffffcff;
24         writel(tmp, PC0CTRL);
25 }