From patchwork Fri Jul 18 20:06:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 33905 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7437E20CA0 for ; Fri, 18 Jul 2014 20:06:52 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id v1sf13358699yhn.0 for ; Fri, 18 Jul 2014 13:06:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=FA/Q0d0mByJtvDIcD/eJux50iuwwllpku5mvjI1oNtE=; b=BCyrrucRYOJnSPPPf67CIeMONHkvLa6yvvSLQtMHvs6ZwI4yHIEQdwMebPTyBbZrlm S8M2KzHEWujeQ8Jyy/a1IA6TQTNYMtlDFi4d7X842Fg0gGE3Wxv31PwW4hT8D/ZmxjHl grv2lQFZrNEc36SoUeQm6HCkPRzQv+sVqESZJU0s9RopJZQLgeSAh2tsCFDYqLxidMud xlqGO//hID0qhPXx5HI4bur964m3Zyf99ip/FrBo1eT6fUJmmqX+IKd5bugG+a5NdkD2 LHPV+9W6INSJsxhec04hSqEzkIj2sP/Wam7646Lp/GcpR/EtljOS9iu9rsDUQ7NO+2kg E6Pw== X-Gm-Message-State: ALoCoQk7C6h2Z8VwA3vPNt5j3hxsDZtFzUEWhbuWm40yromf8liGWFE/cxplQyKe6W/COYqjE0cK X-Received: by 10.236.117.141 with SMTP id j13mr3001454yhh.3.1405714012116; Fri, 18 Jul 2014 13:06:52 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.48.132 with SMTP id o4ls1175740qga.40.gmail; Fri, 18 Jul 2014 13:06:51 -0700 (PDT) X-Received: by 10.52.170.69 with SMTP id ak5mr7678700vdc.63.1405714011931; Fri, 18 Jul 2014 13:06:51 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id rw10si6834452vcb.44.2014.07.18.13.06.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 18 Jul 2014 13:06:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id hq11so6799979vcb.30 for ; Fri, 18 Jul 2014 13:06:51 -0700 (PDT) X-Received: by 10.220.7.71 with SMTP id c7mr7163133vcc.77.1405714011818; Fri, 18 Jul 2014 13:06:51 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp38164vcb; Fri, 18 Jul 2014 13:06:51 -0700 (PDT) X-Received: by 10.180.187.113 with SMTP id fr17mr10911935wic.51.1405714010824; Fri, 18 Jul 2014 13:06:50 -0700 (PDT) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id fz7si6045660wib.22.2014.07.18.13.06.50 for ; Fri, 18 Jul 2014 13:06:50 -0700 (PDT) Received-SPF: none (google.com: u-boot-bounces@lists.denx.de does not designate permitted sender hosts) client-ip=85.214.87.163; Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C92244B930; Fri, 18 Jul 2014 22:06:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 e7Dkqj1tFNDs; Fri, 18 Jul 2014 22:06:49 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E77B4A73E0; Fri, 18 Jul 2014 22:06:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 57BB6A7465 for ; Fri, 18 Jul 2014 22:06:45 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 TGGvWGZXQOf4 for ; Fri, 18 Jul 2014 22:06:44 +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 benson.vm.bytemark.co.uk (benson.vm.bytemark.co.uk [212.110.190.137]) by theia.denx.de (Postfix) with ESMTPS id 9B342A73FC for ; Fri, 18 Jul 2014 22:06:43 +0200 (CEST) Received: from cpc22-cmbg14-2-0-cust482.5-4.cable.virginm.net ([86.6.25.227] helo=celaeno.hellion.org.uk) by benson.vm.bytemark.co.uk with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1X8EQV-0007XQ-4r; Fri, 18 Jul 2014 21:06:43 +0100 Received: from dagon.hellion.org.uk ([192.168.1.7]) by celaeno.hellion.org.uk with smtp (Exim 4.80) (envelope-from ) id 1X8EQS-0001B9-DD; Fri, 18 Jul 2014 21:06:41 +0100 Received: by dagon.hellion.org.uk (sSMTP sendmail emulation); Fri, 18 Jul 2014 21:06:40 +0100 From: Ian Campbell To: u-boot@lists.denx.de, Albert Aribaud Date: Fri, 18 Jul 2014 21:06:39 +0100 Message-Id: <1405713999-9297-2-git-send-email-ijc@hellion.org.uk> X-Mailer: git-send-email 2.0.1 In-Reply-To: <1405713965.26270.30.camel@hastur.hellion.org.uk> References: <1405713965.26270.30.camel@hastur.hellion.org.uk> Cc: Marc Zyngier , linux-sunxi@googlegroups.com Subject: [U-Boot] [PATCH v5 2/2] sunxi: HYP/non-sec: configure CNTFRQ on all CPUs X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ijc@hellion.org.uk X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Marc Zyngier CNTFRQ needs to be properly configured on all CPUs. Otherwise, virtual machines hoping to find valuable information on secondary CPUs will be disapointed... Signed-off-by: Marc Zyngier --- include/configs/sun7i.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/sun7i.h b/include/configs/sun7i.h index 5b5801d..f82431c 100644 --- a/include/configs/sun7i.h +++ b/include/configs/sun7i.h @@ -21,6 +21,7 @@ #define CONFIG_ARMV7_PSCI 1 #define CONFIG_ARMV7_PSCI_NR_CPUS 2 #define CONFIG_ARMV7_SECURE_BASE SUNXI_SRAM_B_BASE +#define CONFIG_SYS_CLK_FREQ 24000000 /* * Include common sunxi configuration where most the settings are