From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] samsung: board: init the s2mps11 pmic during booting time
Date: Mon, 29 Jan 2018 10:12:28 +0100 [thread overview]
Message-ID: <20180129101228.5ad520d7@jawa> (raw)
In-Reply-To: <20180129045319.5406-1-jh80.chung@samsung.com>
Hi Jaehoon,
> Exynos5422 board has s2mps11 pmic.
> If CONFIG_PMIC_S2MPS11 is enabled, it can initialize PMIC and
> Regulators during booting time.
>
> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
> Tested-by: Anand Moon <linux.amoon@gmail.com>
> ---
> Changelog on V2:
> - Fix the #endif location
>
> board/samsung/common/exynos5-dt.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/board/samsung/common/exynos5-dt.c
> b/board/samsung/common/exynos5-dt.c index a4eb351405..862644b00e
> 100644 --- a/board/samsung/common/exynos5-dt.c
> +++ b/board/samsung/common/exynos5-dt.c
> @@ -93,6 +93,9 @@ int exynos_power_init(void)
> struct udevice *dev;
> int ret;
>
> +#ifdef CONFIG_PMIC_S2MPS11
> + ret = pmic_get("s2mps11_pmic", &dev);
> +#else
> ret = pmic_get("max77686", &dev);
Cannot this be added to DT? We use #ifdefs in a file, which is supposed
to parse DT config.
> if (!ret) {
> /* TODO(sjg at chromium.org): Move into the clock/pmic
> API */ @@ -112,6 +115,7 @@ int exynos_power_init(void)
> s5m8767_enable_32khz_cp(dev);
> #endif
> }
> +#endif /* CONFIG_PMIC_S2MPS11 */
> if (ret == -ENODEV)
> return 0;
>
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180129/66ef2569/attachment.sig>
next prev parent reply other threads:[~2018-01-29 9:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20180129045322epcas1p46ad80065361454354b7c5488d67a83d8@epcas1p4.samsung.com>
2018-01-29 4:53 ` [U-Boot] [PATCH v2] samsung: board: init the s2mps11 pmic during booting time Jaehoon Chung
2018-01-29 9:12 ` Lukasz Majewski [this message]
2018-01-30 5:18 ` Jaehoon Chung
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=20180129101228.5ad520d7@jawa \
--to=lukma@denx.de \
--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.