ARM: uniphier: consolidate System Bus pin-mux settings for LD11/LD20
[platform/kernel/u-boot.git] / arch / arm / mach-uniphier / pinctrl / pinctrl-ld20.c
1 /*
2  * Copyright (C) 2016 Masahiro Yamada <yamada.masahiro@socionext.com>
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6
7 #include <linux/io.h>
8
9 #include "../init.h"
10 #include "../sg-regs.h"
11
12 void uniphier_ld20_pin_init(void)
13 {
14         /* Comment format:    PAD Name -> Function Name */
15
16         sg_set_pinsel(149, 14, 8, 4);   /* XIRQ0    -> XIRQ0 */
17         sg_set_iectrl(149);
18         sg_set_pinsel(153, 14, 8, 4);   /* XIRQ4    -> XIRQ4 */
19         sg_set_iectrl(153);
20 }