From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Tue, 7 May 2019 00:16:29 +0200 Subject: [U-Boot] [i.MX8MM+CCF 12/41] clk: fixed_rate: add pre reloc flag In-Reply-To: <20190430103056.32537-13-peng.fan@nxp.com> References: <20190430103056.32537-1-peng.fan@nxp.com> <20190430103056.32537-13-peng.fan@nxp.com> Message-ID: <20190507001629.46814dc7@jawa> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, 30 Apr 2019 10:18:12 +0000 Peng Fan wrote: > Add pre reloc flag to use this driver before relocation > > Signed-off-by: Peng Fan > --- > drivers/clk/clk_fixed_rate.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/clk/clk_fixed_rate.c > b/drivers/clk/clk_fixed_rate.c index 069e643fbc..debada1463 100644 > --- a/drivers/clk/clk_fixed_rate.c > +++ b/drivers/clk/clk_fixed_rate.c > @@ -45,4 +45,5 @@ U_BOOT_DRIVER(clk_fixed_rate) = { > .ofdata_to_platdata = clk_fixed_rate_ofdata_to_platdata, > .platdata_auto_alloc_size = sizeof(struct clk_fixed_rate), > .ops = &clk_fixed_rate_ops, > + .flags = DM_FLAG_PRE_RELOC, > }; This probably shall be done with proper dts file (from TPC70 - imx6q conversion code): +#include "imx6qdl-u-boot.dtsi" + +/ { + clocks { + u-boot,dm-spl; + osc { + u-boot,dm-spl; + }; + }; +}; + +&clks { + u-boot,dm-pre-reloc; +}; Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 488 bytes Desc: OpenPGP digital signature URL: