xref: /OK3568_Linux_fs/u-boot/board/gdsys/a38x/dt_helpers.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * (C) Copyright 2016
3*4882a593Smuzhiyun  * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * SPDX-License-Identifier:    GPL-2.0+
6*4882a593Smuzhiyun  */
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun #ifndef __DT_HELPERS_H
9*4882a593Smuzhiyun #define __DT_HELPERS_H
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun int fdt_disable_by_ofname(void *rw_fdt_blob, char *ofname);
12*4882a593Smuzhiyun bool dm_i2c_simple_probe(struct udevice *bus, uint chip_addr);
13*4882a593Smuzhiyun int request_gpio_by_name(struct gpio_desc *gpio, const char *gpio_dev_name,
14*4882a593Smuzhiyun 			 uint offset, char *gpio_name);
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun #endif /* __DT_HELPERS_H */
17