summaryrefslogtreecommitdiff
path: root/src/drivers/maxim/max77686/max77686.h
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2013-01-09 16:26:26 -0800
committerRonald G. Minnich <rminnich@gmail.com>2013-01-10 05:54:53 +0100
commit1d5390ecc85f7d0fc25d1a5cbe62ae6fa1abf5e2 (patch)
treea8d12e6374e541c9868ae3e6a1e8f9efe56b4cdf /src/drivers/maxim/max77686/max77686.h
parent92dd172a573a7eff4774030fdfe5eb9625d59aa0 (diff)
downloadcoreboot-1d5390ecc85f7d0fc25d1a5cbe62ae6fa1abf5e2.tar.xz
size optimizations for max77686
This contains some size optimizations for the Maxim MAX77686 driver: - change max77686_para.vol_{min,div} from u32 to u16 (currently their max value is 50000 so it should be fine) - remove max77686_para.regnum which takes 4 bytes for each and is not used (Patch was originally written by Hung-Te Lin, I'm just uploading it) Change-Id: I24044427c49467e99380d1f60ebc59e69c285b22 Signed-off-by: Hung-Te Lin <hungte@chromium.org> Signed-off-by: David Hendricks <dhendrix@chromium.org> Reviewed-on: http://review.coreboot.org/2124 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/drivers/maxim/max77686/max77686.h')
-rw-r--r--src/drivers/maxim/max77686/max77686.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/drivers/maxim/max77686/max77686.h b/src/drivers/maxim/max77686/max77686.h
index 345471eb21..ee53e27a81 100644
--- a/src/drivers/maxim/max77686/max77686.h
+++ b/src/drivers/maxim/max77686/max77686.h
@@ -77,7 +77,6 @@ enum max77686_regnum {
* @param vol_div voltage division value of given buck/ldo
*/
struct max77686_para {
- enum max77686_regnum regnum;
u8 vol_addr;
u8 vol_bitpos;
u8 vol_bitmask;
@@ -86,8 +85,8 @@ struct max77686_para {
u8 reg_enbitmask;
u8 reg_enbiton;
u8 reg_enbitoff;
- u32 vol_min;
- u32 vol_div;
+ u16 vol_min;
+ u16 vol_div;
};
/* I2C device address for pmic max77686 */