From patchwork Fri Mar 5 17:14:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 393547 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp637576jai; Fri, 5 Mar 2021 09:56:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJwR/FRgyb+ANNMRSfAeME6rMzf+rJkwmE6bMhEfJeLB3kQyltCKdC+zAGHy1qPCH4mUGAcq X-Received: by 2002:a05:6602:56:: with SMTP id z22mr9236427ioz.184.1614966975303; Fri, 05 Mar 2021 09:56:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614966975; cv=none; d=google.com; s=arc-20160816; b=JGN0z7UN6C4Yl+xaQ8dDVzWqjLQhKb5KU43i8JG90fHnqnep3Z+QbY/mTktHZS/NLA 5gPc6Z5e9eVE4IIN7c0M9wyEiSCfckeekuJezQqIG8lzy90rpRSKxkQQ6Q9/SOExBVW2 XaFg1ruLhEFhABaO0S3A9MyI1cc12b9HZIQCNZFTuJlo2j4w3/gLxG1D4fSzPvk0WTLw a6OGA030vfCF7pLegxxoLQ5m2hsZTReKfsZJEo2wD/JKB4aM95s4VMjJileAguOW/tE+ bM09vQVrYQiPSfAen27CO9agPXfP4nVd7ckOBOIMStD+O+iP27HE5s+KrLvZD9ikPguX pDKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=gj5VjeYF9Elb4NtSjOuTjpuxn7GzS8nIUQntXvjQ7Zo=; b=aOWBdy5Uj+TGv5Gtmhc/maIJvUL2kjrlLXK9w5n+lHL/ShLI1VTACO3gEXSEL/j19z o+LufK1NHWwW8rdN1DhTbSbNrD+JoeZAB/qv29czsxSLm98xOY2TR8Tzgy/0yII2ddvt YLwBuWFxbBrIhAd14SHxBH50y2+HZeGjbpgMkjSzcP+WFXGncPw5TpMxwlw9RjEGh7k/ F4oMWyjW2C231l44+0n/vHpelRi2aSPcN6tfztO9VWD2IbCmB7SHXN9w/GBZ3HIzd8kp QY58J9xdeUggae7Jihni1XqBlmqvyjx4OGBfrMIYv3+HesoaUJp+S8fmxV6hPmtJy2Wt gLMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bV54Jm00; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id e203si2537045iof.59.2021.03.05.09.56.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Mar 2021 09:56:15 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bV54Jm00; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:39314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIEgQ-0004Yc-MM for patch@linaro.org; Fri, 05 Mar 2021 12:56:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIE3S-00074a-6j for qemu-devel@nongnu.org; Fri, 05 Mar 2021 12:15:58 -0500 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:35622) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIE3B-0007dm-Hq for qemu-devel@nongnu.org; Fri, 05 Mar 2021 12:15:57 -0500 Received: by mail-wr1-x42f.google.com with SMTP id l12so2900354wry.2 for ; Fri, 05 Mar 2021 09:15:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=gj5VjeYF9Elb4NtSjOuTjpuxn7GzS8nIUQntXvjQ7Zo=; b=bV54Jm00aMFWs3G9Ch6ptVf7t+vHU/KlfrmUs0P5QMgV/FK7mBOU0yhNx5sWoPXWQ5 Tz7y2VFsbfDzCA7NnjcXCYDLzR2J5ScFKENi2zM41/yNBDUm4ahKD6ebjTKZek/TvHVx 2ossqCXFn9RhkAVOqt8gDLB/pPEgr3FfGnu4NfttAAKd94jZ1FLvXdJlKqoLbuqtFeoS RWCXNzQHD2WptlJLfKK6kAxGHr1Ub3h00peVetrPhvBrxWIMZQnrY2acwCzLMvhw9rBQ CaIoaA+wrwUXu2pMDkOj8YgtgkUYlmR7ixEM/MOFpL3kqaXULLM6SgINIAUo81gUpuyt TpOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gj5VjeYF9Elb4NtSjOuTjpuxn7GzS8nIUQntXvjQ7Zo=; b=cImq47/sT6c+5VcYAdzRbbWW/qNNP5Y2NS8Begok04btq2mt0fEOIGF2avuOw8weBu nHKEvpzCbtP244/io7p/CN44V6w+wbjSwBoW2HEUIRo8P64HQWbrVWUdekG9w8m3c1Uk FG/0KufhkpUzLQQVXr39WZKlzBfL3qJUxbT3aI0QngZ1Pa6g7/oaNLYJTSSGLsJQMkEd NrUqyuFlVR/WQyakdOPIEfk1UmiHY9ElkHE5mHqjyqafTQDpnpUw2X4c8gE3/YUfnEy5 vuM9Ei9F01jiIK02JzL+V/8Xl2KkzhnbqXNXBDLcpPHiH79TJXLnOB9V+qKEG1h5HbRs jRrQ== X-Gm-Message-State: AOAM5329fxaG7BmSa15JhFXXYfC/ips22jndK1cCts0QU5LK0cuvZAAK kUSBomaYjvGRW8MSQUEo1hmDdOOQecZQXQ== X-Received: by 2002:adf:f44b:: with SMTP id f11mr10544601wrp.345.1614964537259; Fri, 05 Mar 2021 09:15:37 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id m132sm5942357wmf.45.2021.03.05.09.15.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Mar 2021 09:15:36 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 28/49] hw/arm/mps2-tz: Correct the OSCCLK settings for mps2-an505 and mps2-an511 Date: Fri, 5 Mar 2021 17:14:54 +0000 Message-Id: <20210305171515.1038-29-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210305171515.1038-1-peter.maydell@linaro.org> References: <20210305171515.1038-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x42f.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: , Errors-To: qemu-devel-bounces+patch=linaro.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é Reviewed-by: Richard Henderson Message-id: 20210215115138.20465-4-peter.maydell@linaro.org --- hw/arm/mps2-tz.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.1 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);