ARM: rmobile: alt: Fix I2C bus number
[oweals/u-boot.git] / board / renesas / alt / alt.c
index 86e9d2446dccde6d159a9ad381bd93bf9800099b..0726776a573fe6beeb979124090f37aa84ed838b 100644 (file)
@@ -28,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;
@@ -78,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;
@@ -93,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)
 {
@@ -108,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;