From patchwork Wed Sep 18 14:56:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 11150627 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9EBC414ED for ; Wed, 18 Sep 2019 15:53:54 +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 7B2EF207FC for ; Wed, 18 Sep 2019 15:53:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7B2EF207FC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:60302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAcHA-0006SN-Va for patchwork-qemu-devel@patchwork.kernel.org; Wed, 18 Sep 2019 11:53:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49501) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAbsU-0007BP-90 for qemu-devel@nongnu.org; Wed, 18 Sep 2019 11:28:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iAbsS-0006rq-SF for qemu-devel@nongnu.org; Wed, 18 Sep 2019 11:28:21 -0400 Received: from mail-pg1-f178.google.com ([209.85.215.178]:42972) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iAbsS-0006re-NC for qemu-devel@nongnu.org; Wed, 18 Sep 2019 11:28:20 -0400 Received: by mail-pg1-f178.google.com with SMTP id z12so33601pgp.9 for ; Wed, 18 Sep 2019 08:28:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:cc:from:to; bh=r6cr511A/xs0M+5DL630HqnuaMziajwdPSyYPcj6+yE=; b=tTUP6RXznpNKsdkmxSIX9LNYjGiD7F5d514bQ7tA7NMh+k8vDk8p9iXqE4DsTxJ1IW YDgcCPGc367nEvV1yQEFsBRaG+tlEPztkgKRbsc9ht+5d2b4uhcMOd2hX+ncFvnXrGDi 78s5YUHEAc75lUpIEvvhsUAaNEZ0LBehF+v0D52QTaeH/nVIei2IUgYEEeZgeRXUCHu3 7reblc/EUxslamdnX5oiKavAerIThF7LsUu5UKnJRClApR7j2JW/m+Ei6jo1euu9rgsE frCAcZIBEDPwXVeVSeMniYBwNQLLTkeUL9QPcc3TkE/e9770kxOEYzt2AMiixhsoQjap NB5Q== X-Gm-Message-State: APjAAAV6AUKl10xArjXogTGXhGfuHPHEnAr0W9F9GesbIDabkd7+is6R Jcu3HmM2ICeSIK0g6mnoUJwRBA== X-Google-Smtp-Source: APXvYqwifxFpkAI3SRm0Bot4DuNoiBJNixgszV8u1U44CAff2UFzq2xDUeemzi+5317GKu7Dtw6c6A== X-Received: by 2002:a63:1020:: with SMTP id f32mr4670737pgl.203.1568820499505; Wed, 18 Sep 2019 08:28:19 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id g5sm6738029pfh.133.2019.09.18.08.28.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2019 08:28:18 -0700 (PDT) Date: Wed, 18 Sep 2019 07:56:16 -0700 Message-Id: <20190918145640.17349-25-palmer@sifive.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190918145640.17349-1-palmer@sifive.com> References: <20190918145640.17349-1-palmer@sifive.com> MIME-Version: 1.0 From: Palmer Dabbelt To: Peter Maydell X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.215.178 Subject: [Qemu-devel] [PULL 24/48] riscv: sifive_e: prci: Fix a typo of hfxosccfg register programming 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: qemu-riscv@nongnu.org, Palmer Dabbelt , qemu-devel@nongnu.org, Chih-Min Chao , Alistair Francis , Bin Meng , ilippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" From: Bin Meng For hfxosccfg register programming, SIFIVE_E_PRCI_HFXOSCCFG_RDY and SIFIVE_E_PRCI_HFXOSCCFG_EN should be used. Signed-off-by: Bin Meng Acked-by: Alistair Francis Reviewed-by: Chih-Min Chao Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Palmer Dabbelt --- hw/riscv/sifive_e_prci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/riscv/sifive_e_prci.c b/hw/riscv/sifive_e_prci.c index b6d32db935..bfe9b13a67 100644 --- a/hw/riscv/sifive_e_prci.c +++ b/hw/riscv/sifive_e_prci.c @@ -91,7 +91,7 @@ static void sifive_e_prci_init(Object *obj) sysbus_init_mmio(SYS_BUS_DEVICE(obj), &s->mmio); s->hfrosccfg = (SIFIVE_E_PRCI_HFROSCCFG_RDY | SIFIVE_E_PRCI_HFROSCCFG_EN); - s->hfxosccfg = (SIFIVE_E_PRCI_HFROSCCFG_RDY | SIFIVE_E_PRCI_HFROSCCFG_EN); + s->hfxosccfg = (SIFIVE_E_PRCI_HFXOSCCFG_RDY | SIFIVE_E_PRCI_HFXOSCCFG_EN); s->pllcfg = (SIFIVE_E_PRCI_PLLCFG_REFSEL | SIFIVE_E_PRCI_PLLCFG_BYPASS | SIFIVE_E_PRCI_PLLCFG_LOCK); s->plloutdiv = SIFIVE_E_PRCI_PLLOUTDIV_DIV1;