1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2016 Socionext Inc.
4 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
8 #include <linux/errno.h>
10 #include <dm/pinctrl.h>
14 int uniphier_pin_init(const char *pinconfig_name)
16 struct udevice *pctldev, *config, *next;
19 ret = uclass_first_device(UCLASS_PINCTRL, &pctldev);
23 device_foreach_child_safe(config, next, pctldev) {
24 if (strcmp(config->name, pinconfig_name))
27 return pinctrl_generic_set_state(pctldev, config);