From: Minkyu Kang <mk7.kang@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 07/12] exynos5: support tps65090 pmic
Date: Thu, 15 May 2014 15:51:24 +0900 [thread overview]
Message-ID: <537463EC.4080709@samsung.com> (raw)
In-Reply-To: <1396481069-24950-8-git-send-email-sjg@chromium.org>
On 03/04/14 08:24, Simon Glass wrote:
> From: Aaron Durbin <adurbin@chromium.org>
>
> 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 <adurbin@chromium.org>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Reviewed-by: Simon Glass <sjg@chromium.org>
> ---
>
> Changes in v2:
> - Move code to exynos5-dt.c
> - Fix comment style
> - Add #ifdef around tps65090 code
>
> board/samsung/smdk5250/exynos5-dt.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/board/samsung/smdk5250/exynos5-dt.c b/board/samsung/smdk5250/exynos5-dt.c
> index 1a64b9b..2c1cf8a 100644
> --- a/board/samsung/smdk5250/exynos5-dt.c
> +++ b/board/samsung/smdk5250/exynos5-dt.c
> @@ -20,6 +20,7 @@
> #include <asm/arch/sromc.h>
> #include <power/pmic.h>
> #include <power/max77686_pmic.h>
> +#include <power/tps65090_pmic.h>
> #include <tmu.h>
>
> DECLARE_GLOBAL_DATA_PTR;
> @@ -164,7 +165,19 @@ int exynos_power_init(void)
>
> #ifdef CONFIG_POWER_MAX77686
> ret = max77686_init();
> + if (ret)
> + return ret;
> #endif
> +#ifdef CONFIG_POWER_TPS65090
> + /*
> + * The TPS65090 may not be in the device tree. If so, it is not
> + * an error.
Then, how we can initialise the tps65090?
> + */
> + ret = tps65090_init();
> + if (ret == 0 || ret == -ENODEV)
> + return 0;
> +#endif
> +
> return ret;
> }
> #endif /* CONFIG_POWER */
>
Thanks,
Minkyu Kang.
next prev parent reply other threads:[~2014-05-15 6:51 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-02 23:24 [U-Boot] [PATCH v2 0/12] Enable LCD display on snow Simon Glass
2014-04-02 23:24 ` [U-Boot] [PATCH v2 01/12] exynos: Drop old smdk5250.c file Simon Glass
2014-04-02 23:24 ` [U-Boot] [PATCH v2 02/12] power: Rename CONFIG_PMIC_... to CONFIG_POWER_ Simon Glass
2014-04-02 23:24 ` [U-Boot] [PATCH v2 03/12] power: Add PMIC_ prefix to CHARGER_EN/DISABLE Simon Glass
2014-04-02 23:24 ` [U-Boot] [PATCH v2 04/12] power: Add support for TPS65090 PMU chip Simon Glass
2014-05-15 6:52 ` Minkyu Kang
2014-05-20 11:46 ` Simon Glass
2014-04-02 23:24 ` [U-Boot] [PATCH v2 05/12] exynos5: Enable tps65090 on exynos5-dt Simon Glass
2014-04-02 23:24 ` [U-Boot] [PATCH v2 06/12] power: Explicitly select pmic device's bus Simon Glass
2014-04-02 23:24 ` [U-Boot] [PATCH v2 07/12] exynos5: support tps65090 pmic Simon Glass
2014-05-15 6:51 ` Minkyu Kang [this message]
2014-05-20 11:47 ` Simon Glass
2014-05-21 10:05 ` Minkyu Kang
2014-05-21 18:58 ` Simon Glass
2014-05-22 1:20 ` Minkyu Kang
2014-05-22 17:27 ` Simon Glass
2014-05-22 18:24 ` David Nelson
2014-05-22 20:07 ` Simon Glass
2014-05-26 7:15 ` Minkyu Kang
2014-05-27 0:01 ` Simon Glass
2014-05-28 13:02 ` Minkyu Kang
2014-05-29 23:36 ` Simon Glass
2014-04-02 23:24 ` [U-Boot] [PATCH v2 08/12] exynos: Enable PSHOLD in SPL Simon Glass
2014-04-02 23:24 ` [U-Boot] [PATCH v2 09/12] exynos: dts: Disable cros_ec interrupts due to broken GPIOs Simon Glass
2014-05-15 6:51 ` Minkyu Kang
2014-05-19 21:27 ` Simon Glass
2014-05-20 0:53 ` Minkyu Kang
2014-05-20 11:49 ` Simon Glass
2014-04-02 23:24 ` [U-Boot] [PATCH v2 10/12] exynos: dts: Enable LCD for snow Simon Glass
2014-05-15 6:51 ` Minkyu Kang
2014-05-20 11:53 ` Simon Glass
2014-04-02 23:24 ` [U-Boot] [PATCH v2 11/12] exynos: Enable the LCD backlight " Simon Glass
2014-05-15 6:51 ` Minkyu Kang
2014-05-20 11:48 ` Simon Glass
2014-04-02 23:24 ` [U-Boot] [PATCH v2 12/12] initcall: Improve debugging support Simon Glass
2014-05-12 22:45 ` [U-Boot] [PATCH v2 0/12] Enable LCD display on snow Simon Glass
2014-05-14 5:19 ` Minkyu Kang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=537463EC.4080709@samsung.com \
--to=mk7.kang@samsung.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.