From: Stefan Roese Date: Mon, 9 Nov 2020 09:34:10 +0100 Subject: [PATCH v3 05/23] mips: enable _machine_restart for spl In-Reply-To: <10361e9c14a7f36fd0609973910e5fef84a2160e.1604907361.git.weijie.gao@mediatek.com> References: <10361e9c14a7f36fd0609973910e5fef84a2160e.1604907361.git.weijie.gao@mediatek.com> Message-ID: <3d53bcdc-aeef-9dde-0eaf-d238a58b9e6d@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 09.11.20 09:24, Weijie Gao wrote: > The sysreset driver has a config CONFIG_SPL_SYSRESET for the spl stage. > Change CONFIG_SYSRESET to CONFIG_IS_ENABLED(SYSRESET) will give spl a > chance to use _machine_restart instead of the sysreset driver. > > Reviewed-by: Simon Glass > Signed-off-by: Weijie Gao Reviewed-by: Stefan Roese Thanks, Stefan > --- > v3 changes: none > v2 changes: new > --- > arch/mips/cpu/cpu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/mips/cpu/cpu.c b/arch/mips/cpu/cpu.c > index 7d5c9fd83a..b304026a67 100644 > --- a/arch/mips/cpu/cpu.c > +++ b/arch/mips/cpu/cpu.c > @@ -12,7 +12,7 @@ > #include > #include > > -#ifndef CONFIG_SYSRESET > +#if !CONFIG_IS_ENABLED(SYSRESET) > void __weak _machine_restart(void) > { > fprintf(stderr, "*** reset failed ***\n"); > Viele Gr??e, Stefan -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de