diff options
author | Shaveta Leekha <shaveta@freescale.com> | 2014-04-11 14:12:39 +0530 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2014-05-13 08:20:31 -0700 |
commit | 4150f24290a4b6a3afe61487413408e5082f33be (patch) | |
tree | 1cf5f9784ebfbdfc10f68562b1d07bd22728524d /board/freescale/common/zm7300.h | |
parent | 69c0d323e325f48f3124fb0696de3d68fcbcae8e (diff) | |
download | u-boot-imx-4150f24290a4b6a3afe61487413408e5082f33be.zip u-boot-imx-4150f24290a4b6a3afe61487413408e5082f33be.tar.gz u-boot-imx-4150f24290a4b6a3afe61487413408e5082f33be.tar.bz2 |
board/freescale/common: ZM7300 driver
Adds Support for PowerOne ZM7300 voltage regulator.
This device is available on some Freescale Boards like B4860QDS
and has to be programmed to adjust the voltage on the board.
The device is accessible via I2C interface.
Signed-off-by: Shaveta Leekha <shaveta@freescale.com>
Signed-off-by: Poonam Aggrwal <poonam.aggrwal@freescale.com>
Diffstat (limited to 'board/freescale/common/zm7300.h')
-rw-r--r-- | board/freescale/common/zm7300.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/board/freescale/common/zm7300.h b/board/freescale/common/zm7300.h new file mode 100644 index 0000000..6b4d035 --- /dev/null +++ b/board/freescale/common/zm7300.h @@ -0,0 +1,22 @@ +/* + * Copyright 2013 Freescale Semiconductor, Inc. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef __ZM7300_H_ +#define __ZM7300_H 1_ + +#include <common.h> +#include <i2c.h> +#include <errno.h> +#include <asm/io.h> + +#define ZM_STEP 125 +int zm7300_set_voltage(int voltage_1_10mv); +int zm_write_voltage(int voltage); +int zm_read_voltage(void); +int zm_disable_wp(void); +int zm_enable_wp(void); + +#endif /* __ZM7300_H_ */ |