From: Sean Anderson Date: Tue, 28 Jul 2020 11:54:31 -0400 Subject: [PATCH 1/1] clk: kendryte/pll.h: do not redefine nop() In-Reply-To: <20200728155223.95356-1-xypron.glpk@gmx.de> References: <20200728155223.95356-1-xypron.glpk@gmx.de> Message-ID: <4f80393d-96b0-d5f7-5d00-5787acc8ad94@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 7/28/20 11:52 AM, Heinrich Schuchardt wrote: > The kendryte PLL code uses nop as barrier. The macro is not defined for > the sandbox on x86 but is defined on RISC-V. > > Signed-off-by: Heinrich Schuchardt > --- > include/kendryte/pll.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/include/kendryte/pll.h b/include/kendryte/pll.h > index c8e3200799..55a40b9c97 100644 > --- a/include/kendryte/pll.h > +++ b/include/kendryte/pll.h > @@ -7,6 +7,7 @@ > > #include > #include > +#include > > #define K210_PLL_CLKR GENMASK(3, 0) > #define K210_PLL_CLKF GENMASK(9, 4) > @@ -43,9 +44,13 @@ struct k210_pll_config { > #ifdef CONFIG_UNIT_TEST > TEST_STATIC int k210_pll_calc_config(u32 rate, u32 rate_in, > struct k210_pll_config *best); > + > +#ifndef nop > #define nop() > #endif > > +#endif > + > extern const struct clk_ops k210_pll_ops; > > struct clk *k210_register_pll_struct(const char *name, const char *parent_name, > -- > 2.27.0 > Reviewed-by: Sean Anderson