On Sun, Feb 05, 2023 at 03:40:05PM -0700, Simon Glass wrote: > This converts 2 usages of this option to the non-SPL form, since there is > no SPL_GMAC_ROCKCHIP defined in Kconfig > > Signed-off-by: Simon Glass <sjg@chromium.org> This is used to avoid code in SPL/TPL on these platforms.
Hi Tom, On Wed, 8 Feb 2023 at 18:51, Tom Rini <trini@konsulko.com> wrote: > > On Sun, Feb 05, 2023 at 03:40:05PM -0700, Simon Glass wrote: > > > This converts 2 usages of this option to the non-SPL form, since there is > > no SPL_GMAC_ROCKCHIP defined in Kconfig > > > > Signed-off-by: Simon Glass <sjg@chromium.org> > > This is used to avoid code in SPL/TPL on these platforms. > I'll add this to config_nospl Regards, Simon
diff --git a/drivers/clk/rockchip/clk_rk3368.c b/drivers/clk/rockchip/clk_rk3368.c index 39caf23c31f..ea8d120738f 100644 --- a/drivers/clk/rockchip/clk_rk3368.c +++ b/drivers/clk/rockchip/clk_rk3368.c @@ -313,7 +313,7 @@ static ulong rk3368_ddr_set_clk(struct rk3368_cru *cru, ulong set_rate) } #endif -#if CONFIG_IS_ENABLED(GMAC_ROCKCHIP) +#if IS_ENABLED(CONFIG_GMAC_ROCKCHIP) static ulong rk3368_gmac_set_clk(struct rk3368_cru *cru, ulong set_rate) { ulong ret; @@ -507,7 +507,7 @@ static ulong rk3368_clk_set_rate(struct clk *clk, ulong rate) ret = rk3368_mmc_set_clk(clk, rate); break; #endif -#if CONFIG_IS_ENABLED(GMAC_ROCKCHIP) +#if IS_ENABLED(CONFIG_GMAC_ROCKCHIP) case SCLK_MAC: /* select the external clock */ ret = rk3368_gmac_set_clk(priv->cru, rate);
This converts 2 usages of this option to the non-SPL form, since there is no SPL_GMAC_ROCKCHIP defined in Kconfig Signed-off-by: Simon Glass <sjg@chromium.org> --- (no changes since v1) drivers/clk/rockchip/clk_rk3368.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)