zm7300.h 417 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright 2013 Freescale Semiconductor, Inc.
  4. */
  5. #ifndef __ZM7300_H_
  6. #define __ZM7300_H 1_
  7. #include <common.h>
  8. #include <i2c.h>
  9. #include <errno.h>
  10. #include <asm/io.h>
  11. #define ZM_STEP 125
  12. int zm7300_set_voltage(int voltage_1_10mv);
  13. int zm_write_voltage(int voltage);
  14. int zm_read_voltage(void);
  15. int zm_disable_wp(void);
  16. int zm_enable_wp(void);
  17. #endif /* __ZM7300_H_ */