diff options
author | Tom Rini <trini@konsulko.com> | 2017-05-08 15:44:44 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-05-08 15:44:44 -0400 |
commit | a6d4cd4778bcc30f451f2d5d92ec4722ff5b71cc (patch) | |
tree | a20f104d8896941c598f2fcb61ce26c327959cd9 /drivers/power | |
parent | ee3c6532be343e495d11adfe15a457d24d9747d9 (diff) | |
parent | 5a49b2929c0c73e43470cc53b80a6dfa47b5efda (diff) | |
download | u-boot-a6d4cd4778bcc30f451f2d5d92ec4722ff5b71cc.tar.gz u-boot-a6d4cd4778bcc30f451f2d5d92ec4722ff5b71cc.tar.bz2 u-boot-a6d4cd4778bcc30f451f2d5d92ec4722ff5b71cc.zip |
Merge branch 'master' of git://git.denx.de/u-boot-sunxi
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/sy8106a.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/power/sy8106a.c b/drivers/power/sy8106a.c index bbf116f655..f9db3965f2 100644 --- a/drivers/power/sy8106a.c +++ b/drivers/power/sy8106a.c @@ -12,6 +12,7 @@ #define SY8106A_VOUT1_SEL 1 #define SY8106A_VOUT1_SEL_ENABLE (1 << 7) +#ifdef CONFIG_SPL_BUILD static u8 sy8106a_mvolt_to_cfg(int mvolt, int min, int max, int div) { if (mvolt < min) @@ -27,3 +28,4 @@ int sy8106a_set_vout1(unsigned int mvolt) u8 data = sy8106a_mvolt_to_cfg(mvolt, 680, 1950, 10) | SY8106A_VOUT1_SEL_ENABLE; return i2c_write(SY8106A_I2C_ADDR, SY8106A_VOUT1_SEL, 1, &data, 1); } +#endif |