global: Move remaining CONFIG_SYS_SDRAM_* to CFG_SYS_SDRAM_*
[platform/kernel/u-boot.git] / board / renesas / lager / lager.c
index add4eef..1437875 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <cpu_func.h>
 #include <env.h>
 #include <env_internal.h>
@@ -50,7 +51,7 @@ void s_init(void)
        /* CPU frequency setting. Set to 1.4GHz */
        if (rmobile_get_cpu_rev_integer() >= R8A7790_CUT_ES2X) {
                u32 stat = 0;
-               u32 stc = ((1400 / CLK2MHZ(CONFIG_SYS_CLK_FREQ)) - 1)
+               u32 stc = ((1400 / CLK2MHZ(get_board_sys_clk())) - 1)
                        << PLL0_STC_BIT;
                clrsetbits_le32(PLL0CR, PLL0_STC_MASK, stc);
 
@@ -88,7 +89,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        /* Force ethernet PHY out of reset */
        gpio_request(ETHERNET_PHY_RESET, "phy_reset");
@@ -128,7 +129,7 @@ int board_phy_config(struct phy_device *phydev)
        return 0;
 }
 
-void reset_cpu(ulong addr)
+void reset_cpu(void)
 {
        struct udevice *dev;
        const u8 pmic_bus = 2;