Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Shaveta Leekha | afe5b06 | 2014-04-11 14:12:39 +0530 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2013 Freescale Semiconductor, Inc. |
Shaveta Leekha | afe5b06 | 2014-04-11 14:12:39 +0530 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __ZM7300_H_ |
| 7 | #define __ZM7300_H 1_ |
| 8 | |
| 9 | #include <common.h> |
| 10 | #include <i2c.h> |
| 11 | #include <errno.h> |
| 12 | #include <asm/io.h> |
| 13 | |
| 14 | #define ZM_STEP 125 |
| 15 | int zm7300_set_voltage(int voltage_1_10mv); |
| 16 | int zm_write_voltage(int voltage); |
| 17 | int zm_read_voltage(void); |
| 18 | int zm_disable_wp(void); |
| 19 | int zm_enable_wp(void); |
| 20 | |
| 21 | #endif /* __ZM7300_H_ */ |