dt_helpers.h 439 B

123456789101112131415
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2016
  4. * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
  5. */
  6. #ifndef __DT_HELPERS_H
  7. #define __DT_HELPERS_H
  8. int fdt_disable_by_ofname(void *rw_fdt_blob, char *ofname);
  9. bool dm_i2c_simple_probe(struct udevice *bus, uint chip_addr);
  10. int request_gpio_by_name(struct gpio_desc *gpio, const char *gpio_dev_name,
  11. uint offset, char *gpio_name);
  12. #endif /* __DT_HELPERS_H */