From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DCAD4C433DB for ; Mon, 15 Feb 2021 11:55:16 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7C53664D73 for ; Mon, 15 Feb 2021 11:55:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7C53664D73 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:42006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBcTD-00033i-Jk for qemu-devel@archiver.kernel.org; Mon, 15 Feb 2021 06:55:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBcQ9-0006mK-MZ for qemu-devel@nongnu.org; Mon, 15 Feb 2021 06:52:07 -0500 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:46895) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lBcQ7-0003pA-Eb for qemu-devel@nongnu.org; Mon, 15 Feb 2021 06:52:05 -0500 Received: by mail-wr1-x42b.google.com with SMTP id t15so8441149wrx.13 for ; Mon, 15 Feb 2021 03:52:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TPCQ7hQbzvDDHnYGwctNAE4kUhgse5UxYRkoh3yegnE=; b=oHXWZxiVJIeV6r7ZllLuGWgHqlOcgt9i9v4+AcKvoXqHxs8Kq34g3qQAFi3ckE9KTP MnCbMYOUv2YHCBXYn40ABJQyxGcKCx5llTTp+iHN+wichcfQw4frUMsc+5ac3kZB3yni ZtDWTLRbdI6udDDZuXoUFNKM67bHOWqBKeB+p6Jjzv8hvpFvMAw/K2DQCgsPn4gq6jrF DZv6Cq/AAvwwih8YHllBNVpR2WueJD8heXk9b+RCkLjmM/2eLCQVP6AlU5CVS+FseWle PFhwH9Oj7/sIxwRke8c+27asaSzOZp6U9J7FsMqg4H64OCAj+uxM+o0Lz+t1pizJdFMT 37fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TPCQ7hQbzvDDHnYGwctNAE4kUhgse5UxYRkoh3yegnE=; b=iR0+C+ysXEauhXU9/8ajvSwSQcgp/fFA9HDRjs0LftvWTt8W49N56FaXIgNyAPvjNv wkDqAktJik4SvG+BUZ6enfoCdHO0HXgtFlUxWQ2hggwKbVtRQSNJlYiGgumpOLoTpMBQ 6fxuTahvp0jo88ZBBWsveqMOsKfWP+x20voswJGPGF+i33LHsB6l6ZoaVVcKNMY+5g4J 9epz24DPBtO6+j+Sd/mP2BAC8LCtXGF1goXaJ41xBUXVShYXan3/7wqjM0zJZlh/BJoO xhu9rpK0MOvS1s2+XTA4IIi109eWyD9azN/x0YpKkWAkyo48A/qHWKZUsjNu2gtrD/p4 doLA== X-Gm-Message-State: AOAM533v82w1qc4Nwm3ua8B0p6atHH0eIEs0rLyV1Mb2rUT9ROIaNNBK xeQS+l0uiiv8idudVvyUNcXWTA== X-Google-Smtp-Source: ABdhPJwgP14LVqtJ5TrHAwQ7ibamRRjLBXmQTkMXI64NWkrlTA2lZgYA8s5lpGFxzhZN7k17pTJb2g== X-Received: by 2002:a05:6000:c1:: with SMTP id q1mr18562285wrx.114.1613389921530; Mon, 15 Feb 2021 03:52:01 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id l83sm25574812wmf.4.2021.02.15.03.51.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Feb 2021 03:52:01 -0800 (PST) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH v2 03/24] hw/arm/mps2-tz: Correct the OSCCLK settings for mps2-an505 and mps2-an511 Date: Mon, 15 Feb 2021 11:51:17 +0000 Message-Id: <20210215115138.20465-4-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210215115138.20465-1-peter.maydell@linaro.org> References: <20210215115138.20465-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x42b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" We were previously using the default OSCCLK settings, which are correct for the older MPS2 boards (mps2-an385, mps2-an386, mps2-an500, mps2-an511), but wrong for the mps2-an505 and mps2-511 implemented in mps2-tz.c. Now we're setting the values explicitly we can fix them to be correct. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé --- hw/arm/mps2-tz.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/arm/mps2-tz.c b/hw/arm/mps2-tz.c index 7c066c11ed4..976f5f5c682 100644 --- a/hw/arm/mps2-tz.c +++ b/hw/arm/mps2-tz.c @@ -221,8 +221,8 @@ static MemoryRegion *make_scc(MPS2TZMachineState *mms, void *opaque, qdev_prop_set_uint32(sccdev, "scc-id", mmc->scc_id); /* This will need to be per-FPGA image eventually */ qdev_prop_set_uint32(sccdev, "len-oscclk", 3); - qdev_prop_set_uint32(sccdev, "oscclk[0]", 50000000); - qdev_prop_set_uint32(sccdev, "oscclk[1]", 24576000); + qdev_prop_set_uint32(sccdev, "oscclk[0]", 40000000); + qdev_prop_set_uint32(sccdev, "oscclk[1]", 24580000); qdev_prop_set_uint32(sccdev, "oscclk[2]", 25000000); sysbus_realize(SYS_BUS_DEVICE(scc), &error_fatal); return sysbus_mmio_get_region(SYS_BUS_DEVICE(sccdev), 0); -- 2.20.1