ARM: rmobile: alt: Fix I2C bus number
[oweals/u-boot.git] / board / renesas / alt / alt.c
index 7598b1a4b92b698827e790cef44e85b517b8f970..0726776a573fe6beeb979124090f37aa84ed838b 100644 (file)
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * board/renesas/alt/alt.c
  *
  * Copyright (C) 2014, 2015 Renesas Electronics Corporation
- *
- * SPDX-License-Identifier: GPL-2.0
  */
 
 #include <common.h>
@@ -29,7 +28,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#define CLK2MHZ(clk)   (clk / 1000 / 1000)
 void s_init(void)
 {
        struct rcar_rwdt *rwdt = (struct rcar_rwdt *)RWDT_BASE;
@@ -79,7 +77,7 @@ int board_init(void)
 
 int dram_init(void)
 {
-       if (fdtdec_setup_memory_size() != 0)
+       if (fdtdec_setup_mem_size_base() != 0)
                return -EINVAL;
 
        return 0;
@@ -94,7 +92,7 @@ int dram_init_banksize(void)
 
 /* KSZ8041RNLI */
 #define PHY_CONTROL1           0x1E
-#define PHY_LED_MODE           0xC0000
+#define PHY_LED_MODE           0xC000
 #define PHY_LED_MODE_ACK       0x4000
 int board_phy_config(struct phy_device *phydev)
 {
@@ -106,14 +104,10 @@ int board_phy_config(struct phy_device *phydev)
        return 0;
 }
 
-const struct rmobile_sysinfo sysinfo = {
-       CONFIG_ARCH_RMOBILE_BOARD_STRING
-};
-
 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;