upstream u-boot with additional patches for our devices/boards:
https://lists.denx.de/pipermail/u-boot/2017-March/282789.html (AXP crashes) ;
Gbit ethernet patch for some LIME2 revisions ;
with SPI flash support
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
629 B
32 lines
629 B
/*
|
|
* Copyright (C) 2016 Socionext Inc.
|
|
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <linux/err.h>
|
|
#include <dm/device.h>
|
|
#include <dm/pinctrl.h>
|
|
#include <dm/uclass.h>
|
|
|
|
#include "init.h"
|
|
|
|
int uniphier_pin_init(const char *pinconfig_name)
|
|
{
|
|
struct udevice *pctldev, *config, *next;
|
|
int ret;
|
|
|
|
ret = uclass_first_device(UCLASS_PINCTRL, &pctldev);
|
|
if (ret)
|
|
return ret;
|
|
|
|
device_foreach_child_safe(config, next, pctldev) {
|
|
if (strcmp(config->name, pinconfig_name))
|
|
continue;
|
|
|
|
return pinctrl_generic_set_state(pctldev, config);
|
|
}
|
|
|
|
return -ENODEV;
|
|
}
|
|
|