From: Stefano Babic Date: Mon, 28 Aug 2017 18:07:52 +0200 Subject: [U-Boot] [PATCH 2/2] spl: do not repeat timer init on i.MX6 In-Reply-To: <1503935193-28474-2-git-send-email-agust@denx.de> References: <1503935193-28474-1-git-send-email-agust@denx.de> <1503935193-28474-2-git-send-email-agust@denx.de> Message-ID: <8acc71b2-c1ba-7b48-4c3b-3ce34ac229db@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 28/08/2017 17:46, Anatolij Gustschin wrote: > The GPT timer was already initialised in board_init_f() as > it is needed in dram init. Do not repeat timer init in > board_init_r(). > > Signed-off-by: Anatolij Gustschin > --- > common/spl/spl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/common/spl/spl.c b/common/spl/spl.c > index d245cfc..8b219ba 100644 > --- a/common/spl/spl.c > +++ b/common/spl/spl.c > @@ -379,7 +379,7 @@ void board_init_r(gd_t *dummy1, ulong dummy2) > if (spl_init()) > hang(); > } > -#ifndef CONFIG_PPC > +#if !defined(CONFIG_PPC) && !defined(CONFIG_ARCH_MX6) > /* > * timer_init() does not exist on PPC systems. The timer is initialized > * and enabled (decrementer) in interrupt_init() here. > Acked-by: Stefano Babic Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================