From patchwork Tue Jul 26 05:57:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Agner X-Patchwork-Id: 652599 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3rz6qR5CqPz9t0X for ; Tue, 26 Jul 2016 15:58:11 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=agner.ch header.i=@agner.ch header.b=cS62lfGg; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7AAC0A7690; Tue, 26 Jul 2016 07:58:09 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3u5dns8b0hK3; Tue, 26 Jul 2016 07:58:08 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6F55BA7531; Tue, 26 Jul 2016 07:58:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6560EA7531 for ; Tue, 26 Jul 2016 07:58:06 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MwdJnfnNV8VI for ; Tue, 26 Jul 2016 07:58:06 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail.kmu-office.ch (mail.kmu-office.ch [178.209.48.109]) by theia.denx.de (Postfix) with ESMTPS id 31B2DA752A for ; Tue, 26 Jul 2016 07:58:02 +0200 (CEST) Received: from trochilidae.lan (unknown [IPv6:2601:602:8802:504f:3e97:eff:fe92:db3b]) by mail.kmu-office.ch (Postfix) with ESMTPSA id E4BFA5C119A; Tue, 26 Jul 2016 07:53:54 +0200 (CEST) From: Stefan Agner To: u-boot@lists.denx.de, Stefano Babic Date: Mon, 25 Jul 2016 22:57:47 -0700 Message-Id: <20160726055747.32409-1-stefan@agner.ch> X-Mailer: git-send-email 2.9.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1469512437; bh=h0wr6jQzQz+Pvf/M1Qj4iltjD7QDzVxrWhj34Tf+kJQ=; h=From:To:Cc:Subject:Date:Message-Id; b=cS62lfGgVVg8PYDdZ5RP54aNTuaXto4nIwV7GZ5/AkjQ8O4VDZw17OWI/5y+dEBmjkOzX+wHkuMPa3RmOgCbCSZ3VRViRVsHWrs/mZASadA9Ov4Mz1Is/Ilu08fBSJ4RgD1y41GOr9uv+4lps7Zxt6MAeEcUdvvYLfAJWufg3SM= Cc: Stefan Agner , Marcel Ziswiler , Max Krummenacher , Fabio Estevam Subject: [U-Boot] [PATCH] mx7_common: initialize generic timer on all CPU's X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 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" From: Stefan Agner Use CONFIG_TIMER_CLK_FREQ to let the non-secure init code initialize the generic timer on all CPU's. This allows to make use of the timer freuquency register also on other CPU than the start CPU which is important for KVM. Signed-off-by: Stefan Agner --- include/configs/mx7_common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/mx7_common.h b/include/configs/mx7_common.h index 9f80f9f..7295fa6 100644 --- a/include/configs/mx7_common.h +++ b/include/configs/mx7_common.h @@ -21,6 +21,7 @@ #define CONFIG_MXC_GPT_HCLK #define CONFIG_SYSCOUNTER_TIMER #define CONFIG_SC_TIMER_CLK 8000000 /* 8Mhz */ +#define CONFIG_TIMER_CLK_FREQ CONFIG_SC_TIMER_CLK #define CONFIG_SYS_FSL_CLK #define CONFIG_SYS_BOOTM_LEN 0x1000000