From: Marek Vasut Date: Thu, 21 Feb 2019 23:16:47 +0100 Subject: [U-Boot] [PATCH v2 7/8] arm: socfpga: gen5: deassert peripheral reset by default In-Reply-To: References: <20190221214332.4246-1-simon.k.r.goldschmidt@gmail.com> <20190221214332.4246-8-simon.k.r.goldschmidt@gmail.com> Message-ID: <3824d053-c657-2f4c-d86c-05df6dabd2b2@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On 2/21/19 11:09 PM, Simon Goldschmidt wrote: > > > Am Do., 21. Feb. 2019, 22:56 hat Marek Vasut > geschrieben: > > On 2/21/19 10:43 PM, Simon Goldschmidt wrote: > > To keep the current behaviour of taking all peripherals out of reset > > before booting the OS before removing that code from socfpga gen5 SPL, > > this enables the new behaviour by default for all gen5 boards by > adding > > the environment variable "socfpga_permodrst_ungate=1" to the default > > environment. > > > > This can be overridden in board config files or by saving an > environment > > without this variable enabled. > > > > Signed-off-by: Simon Goldschmidt > > > --- > > > > Changes in v2: > > - this patch is new in v2 > > > >  include/configs/socfpga_common.h | 14 ++++++++++++++ > >  1 file changed, 14 insertions(+) > > > > diff --git a/include/configs/socfpga_common.h > b/include/configs/socfpga_common.h > > index c9cbf8f5e3..2510c6fd7b 100644 > > --- a/include/configs/socfpga_common.h > > +++ b/include/configs/socfpga_common.h > > @@ -321,6 +321,19 @@ unsigned int cm_get_qspi_controller_clk_hz(void); > >  > >  #include > >  > > +#ifdef CONFIG_TARGET_SOCFPGA_GEN5 > > +/* > > + * Handle compatibility for peripheral reset for Linux kernels > that haven't > > + * implemented peripheral reset for all drivers. > > + * Define this to "" disable this compatibility. > > + */ > > +#ifndef SOCFPGA_PERMODRST_UNGATE > > +#define SOCFPGA_PERMODRST_UNGATE "socfpga_permodrst_ungate=1\0" > > +#endif > > +#else > > +#define SOCFPGA_PERMODRST_UNGATE "" > > +#endif > > Just add this socfpga_permodrst_ungate to the default end and drop all > those macros/Kconfig options. > > > But how would it then be overridden? User would setenv it to "" and saveenv ? I might be missing something obvious. -- Best regards, Marek Vasut