From: Marek Vasut <marek.vasut+renesas@gmail.com>
Date: Sat, 30 Mar 2019 07:24:19 +0000 (+0100)
Subject: ARM: rmobile: alt: Fix I2C bus number
X-Git-Tag: v2025.01-rc5-pxa1908~3059^2
X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-favicon.png?a=commitdiff_plain;h=0c78ec64bcc96c34642ebd29614c4c26132ad4b6;p=u-boot.git

ARM: rmobile: alt: Fix I2C bus number

The I2C bus number to access the PMIC is I2C 7, fix this.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
---

diff --git a/board/renesas/alt/alt.c b/board/renesas/alt/alt.c
index 7b85000203..0726776a57 100644
--- a/board/renesas/alt/alt.c
+++ b/board/renesas/alt/alt.c
@@ -107,7 +107,7 @@ int board_phy_config(struct phy_device *phydev)
 void reset_cpu(ulong addr)
 {
 	struct udevice *dev;
-	const u8 pmic_bus = 1;
+	const u8 pmic_bus = 7;
 	const u8 pmic_addr = 0x58;
 	u8 data;
 	int ret;