From mboxrd@z Thu Jan 1 00:00:00 1970 From: Minkyu Kang Date: Thu, 27 Mar 2014 21:13:47 +0900 Subject: [U-Boot] [PATCH 05/10] exynos5: support tps65090 pmic In-Reply-To: <1395856590-21917-6-git-send-email-sjg@chromium.org> References: <1395856590-21917-1-git-send-email-sjg@chromium.org> <1395856590-21917-6-git-send-email-sjg@chromium.org> Message-ID: <533415FB.1050008@samsung.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 27/03/14 02:56, Simon Glass wrote: > From: Aaron Durbin > > The TSP65090 is a PMIC on some exynos5 boards. The init function is > called for the TPS65090 pmic. If that device is not a part of the device > tree (returns -ENODEV) then continue. Otherwise return a failure. > > Signed-off-by: Aaron Durbin > Signed-off-by: Simon Glass > Reviewed-by: Simon Glass > --- > > board/samsung/common/board.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c > index 3866495..654bdb6 100644 > --- a/board/samsung/common/board.c > +++ b/board/samsung/common/board.c > @@ -23,6 +23,7 @@ > #include > #include > #include > +#include > > DECLARE_GLOBAL_DATA_PTR; > > @@ -261,6 +262,12 @@ int power_init_board(void) > ret = max77686_init(); > #endif What is the base tree of this patch? looks different with samsung tree. seems to need rebase? > #ifdef CONFIG_POWER_TPS65090 > + /* The TPS65090 may not be in the device tree. If so, it is not > + * an error. */ please fix this multi line comment. It should be /* * ... * ... */ > + ret = tps65090_init(); > + if (ret == 0 || ret == -ENODEV) > + return 0; #endif > + > return ret; > } > #endif > Thanks, Minkyu Kang.