From patchwork Wed May 10 21:58:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Dureghello X-Patchwork-Id: 760877 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3wNVVQ20skz9s84 for ; Thu, 11 May 2017 07:58:21 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 04E8FC21DA9; Wed, 10 May 2017 21:58:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 425FAC21CA3; Wed, 10 May 2017 21:58:12 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 8CAC7C21CA3; Wed, 10 May 2017 21:58:10 +0000 (UTC) Received: from sysam.it (sysam.it [5.39.81.93]) by lists.denx.de (Postfix) with ESMTPS id 2C437C21C3C for ; Wed, 10 May 2017 21:58:10 +0000 (UTC) Received: (qmail 2657 invoked from network); 10 May 2017 21:23:36 -0000 Received: from host69-135-dynamic.248-95-r.retail.telecomitalia.it (HELO localhost.localdomain) (angelo@sysam.it@95.248.135.69) by sysam.it with ESMTPA; 10 May 2017 21:23:36 -0000 From: Angelo Dureghello To: u-boot@lists.denx.de Date: Wed, 10 May 2017 23:58:06 +0200 Message-Id: <20170510215806.31659-1-angelo@sysam.it> X-Mailer: git-send-email 2.11.0 Cc: trini@konsulko.com, Angelo Dureghello , alison.wang@freescale.com Subject: [U-Boot] [PATCH] board_f: skip timer_init() on Coldfire archs X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Coldfire arch is not happy with timer_init since interrupt handlers are still not set at that stage, and the boot hangs silently. Signed-off-by: Angelo Dureghello --- common/board_f.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/board_f.c b/common/board_f.c index d9431ee79a..30e588e213 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -740,7 +740,9 @@ static const init_fnc_t init_sequence_f[] = { /* get CPU and bus clocks according to the environment variable */ get_clocks, /* get CPU and bus clocks (etc.) */ #endif +#if !defined(CONFIG_M68K) timer_init, /* initialize timer */ +#endif #if defined(CONFIG_BOARD_POSTCLK_INIT) board_postclk_init, #endif