From patchwork Thu Jan 16 13:46:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 239660 List-Id: U-Boot discussion From: m.szyprowski at samsung.com (Marek Szyprowski) Date: Thu, 16 Jan 2020 14:46:04 +0100 Subject: [PATCH v3] arm: exynos: Use proper PMIC device names References: Message-ID: <20200116134604.12217-1-m.szyprowski@samsung.com> Since commit 4213609cc7 ("drivers: core: use strcmp when find device by name") one has to provide full name to get requested object. Fix the code used to detect enable power regulators on the supported Exynos boards to use proper PMIC device device name then. Signed-off-by: Marek Szyprowski Reviewed-by: Anand Moon Reviewed-by: Lukasz Majewski --- v3: - Fixed max77686 and s5m8767 PMIC too --- board/samsung/common/exynos5-dt-types.c | 2 +- board/samsung/common/exynos5-dt.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/board/samsung/common/exynos5-dt-types.c b/board/samsung/common/exynos5-dt-types.c index d51cc4eedc..1413dc8978 100644 --- a/board/samsung/common/exynos5-dt-types.c +++ b/board/samsung/common/exynos5-dt-types.c @@ -129,7 +129,7 @@ static const char *odroid_get_type_str(void) if (gd->board_type != EXYNOS5_BOARD_ODROID_XU3_REV02) goto exit; - ret = pmic_get("s2mps11", &dev); + ret = pmic_get("s2mps11_pmic at 66", &dev); if (ret) goto exit; diff --git a/board/samsung/common/exynos5-dt.c b/board/samsung/common/exynos5-dt.c index 387d1b9180..eef46b0dc4 100644 --- a/board/samsung/common/exynos5-dt.c +++ b/board/samsung/common/exynos5-dt.c @@ -65,9 +65,9 @@ int exynos_power_init(void) int ret; #ifdef CONFIG_PMIC_S2MPS11 - ret = pmic_get("s2mps11_pmic", &dev); + ret = pmic_get("s2mps11_pmic at 66", &dev); #else - ret = pmic_get("max77686", &dev); + ret = pmic_get("max77686_pmic at 09", &dev); if (!ret) { /* TODO(sjg at chromium.org): Move into the clock/pmic API */ ret = pmic_clrsetbits(dev, MAX77686_REG_PMIC_32KHZ, 0, @@ -79,7 +79,7 @@ int exynos_power_init(void) if (ret) return ret; } else { - ret = pmic_get("s5m8767-pmic", &dev); + ret = pmic_get("s5m8767_pmic at 66", &dev); /* TODO(sjg at chromium.org): Use driver model to access clock */ #ifdef CONFIG_PMIC_S5M8767 if (!ret)