From d03bc27bd1c072fe50cd6e6b6b450f96bdbdb41d Mon Sep 17 00:00:00 2001 From: MyungJoo Ham Date: Tue, 31 Aug 2010 09:12:09 +0900 Subject: [PATCH] s5pc210: universal: set VDDARM from MAX8952 @ 1.1V --- board/samsung/universal_c210/universal.c | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/board/samsung/universal_c210/universal.c b/board/samsung/universal_c210/universal.c index 3268cc3..6164cf1 100644 --- a/board/samsung/universal_c210/universal.c +++ b/board/samsung/universal_c210/universal.c @@ -493,21 +493,11 @@ static void init_pmic_max8952(void) if (max8952_probe()) return; - /* - * Note: use the default setting and configure pins high - * to generate the 1.1V - */ - /* VARM_OUTPUT_SEL_A / VID_0 / XEINT_3 (GPX0[3]) = default 1 */ - gpio_direction_output(&gpio2->x0, 3, 1); - /* VARM_OUTPUT_SEL_B / VID_1 / XEINT_4 (GPX0[4]) = default 1 */ - gpio_direction_output(&gpio2->x0, 4, 1); - -#if 0 - /* MODE0: 1.25V */ - val[0] = 48; + /* MODE0: 1.20V */ + val[0] = 43; i2c_write(addr, 0x00, 1, val, 1); - /* MODE1: 1.20V */ - val[0] = 32; + /* MODE1: 1.10V */ + val[0] = 33; i2c_write(addr, 0x01, 1, val, 1); /* MODE2: 1.05V */ val[0] = 28; @@ -516,10 +506,18 @@ static void init_pmic_max8952(void) val[0] = 18; i2c_write(addr, 0x03, 1, val, 1); + /* + * Note: use the default setting and configure pins high + * to generate the 1.1V + */ + /* VARM_OUTPUT_SEL_A / VID_0 / XEINT_3 (GPX0[3]) = default 1 */ + gpio_direction_output(&gpio2->x0, 3, 1); + /* VARM_OUTPUT_SEL_B / VID_1 / XEINT_4 (GPX0[4]) = default 0 */ + gpio_direction_output(&gpio2->x0, 4, 0); + /* CONTROL: Disable PULL_DOWN */ val[0] = 0; i2c_write(addr, 0x04, 1, val, 1); -#endif /* SYNC: Do Nothing */ /* RAMP: As Fast As Possible: Default: Do Nothing */ -- 2.7.4