From nobody Tue Dec 16 08:34:35 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1625223042; cv=none; d=zohomail.com; s=zohoarc; b=cVoAtgwIeqkGSC4m6waGf5b7DXLhGc+hxnnQWFzOFa7+ZYlwknhULd7c+23sKXdLrFb39SRD38BVERh5SD8uCQjJxbGvsGebIykSF2Xm4yuesrFUIYps2p7j7VSF0PT5mQHYS2bPV9DfHLJxfYC0LYgXdaVzPoNfaUcGz12RG0E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1625223042; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=pPs0EK8qhWJ7QET2DXUmT74qvqEztx/Rozsf7xNVhPY=; b=KeyQkWeS6kriWzftAcxtT6OuN1OqQQfuAo9mlmELocxDhI1vsF3HIgAIwQOZSK+fHzy/ZcHlWnI/MJ+XextK0EDDi8kkXFu4pbld8rHLeVir0IWsKN03p3/0ThMmAOmtvoXHitw3sWEWcYhBfM08P7h4VIsRJIRra40vIrdR19o= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 162522304228623.178150673494088; Fri, 2 Jul 2021 03:50:42 -0700 (PDT) Received: from localhost ([::1]:54454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzGkr-0005kY-8I for importer@patchew.org; Fri, 02 Jul 2021 06:50:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzGb5-0004oY-6V for qemu-devel@nongnu.org; Fri, 02 Jul 2021 06:40:35 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:41793) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzGaz-0006fz-Nm for qemu-devel@nongnu.org; Fri, 02 Jul 2021 06:40:34 -0400 Received: by mail-wr1-x431.google.com with SMTP id u8so11869746wrq.8 for ; Fri, 02 Jul 2021 03:40:29 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id p16sm2745810wrs.52.2021.07.02.03.40.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jul 2021 03:40:28 -0700 (PDT) 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=pPs0EK8qhWJ7QET2DXUmT74qvqEztx/Rozsf7xNVhPY=; b=QNlW6bmCpuhuwYHEHYgR1XD/1wxGj7e2zKRXVYVQvq/Tw1eT0zN19yZWenyKq1A7dn wmK6AZH0YcB3tY7f4CUmpODZKr/zbtIDcwtNKJAPmeE8DdpW6ZdAKIqcjpApOSoqsiRP 9bWJwBQVndRip0ZzzOND27xel0KAUB/TtlzejfF+d29L55Z2ukfrtzYn5bv0XNWYhnsj +4WDKUszqdBBga8FlqPg+RcHGdmGJz+s6Yu8d4RuJZJcLM+0Forg6AdcT7SxyxLKosm2 5HgtJZqbzBGG/AaRDgTIaNa1AJY/zUgmL802b2etKs6+WbHlMwWbKMEdZIhakJaTCVQo satw== 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=pPs0EK8qhWJ7QET2DXUmT74qvqEztx/Rozsf7xNVhPY=; b=a09DCH+JO9/5SxUXbnROHJCx6svtbFq9vq0r6AbCFFobYKK35NrJa242sNc0hAYK0E +3rNb1fuunaZmKWLVxdDIJoRDfgcHp5vjPWZq2faqjMvvZLaCYdl0oeXEVoF20rvZ0b/ EBlNIIqpJHnajnnzkb41AU9y35pyLuLPCnMcyUnOTZU8zIL4aWnYLhx4tQrUsCZyqlF7 Ds+NvsaMZOaZQClgFzisp9eSe1K8uN3/WKDAVzE73SqlyOokPMTLdyLUF9kxIxJz+nEa 6rQoObXIDnaE3rujI5pX5PkxVJeJzpDlI8xyJebQSZ/AvdZ+jQYdvdyyENKNcjEMkSHT UG+g== X-Gm-Message-State: AOAM530wVd/zf90zL9nwQb1SXILNAYgDkSr6HKf7Aha471ozD4liK2Oq GmuH2InbZNOOXEI4Slu8K9wQsA== X-Google-Smtp-Source: ABdhPJy4H80rg7isC+SSIOpnUG/0lRRSbGqkviiSsjcmV++nPf/N3JuIeplHtwOQii2UoYKryR43OQ== X-Received: by 2002:a5d:52c1:: with SMTP id r1mr1441628wrv.294.1625222428373; Fri, 02 Jul 2021 03:40:28 -0700 (PDT) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH 10/11] hw/gpio/pl061: Document a shortcoming in our implementation Date: Fri, 2 Jul 2021 11:40:17 +0100 Message-Id: <20210702104018.19881-11-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210702104018.19881-1-peter.maydell@linaro.org> References: <20210702104018.19881-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x431.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=unavailable 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: Maxim Uvarov Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1625223044515100001 Content-Type: text/plain; charset="utf-8" The Luminary PL061s in the Stellaris LM3S9695 don't all have the same reset value for GPIOPUR. We can get away with not letting the board configure the PUR reset value because we don't actually wire anything up to the lines which should reset to pull-up. Add a comment noting this omission. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- Not worth actually fixing, but I wanted a note since I spotted this while I was reading the datasheet anyway. --- hw/gpio/pl061.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hw/gpio/pl061.c b/hw/gpio/pl061.c index 8d12b2d6b97..2cb3a231b43 100644 --- a/hw/gpio/pl061.c +++ b/hw/gpio/pl061.c @@ -455,6 +455,15 @@ static void pl061_enter_reset(Object *obj, ResetType t= ype) trace_pl061_reset(DEVICE(s)->canonical_path); =20 /* reset values from PL061 TRM, Stellaris LM3S5P31 & LM3S8962 Data She= et */ + + /* + * FIXME: For the LM3S6965, not all of the PL061 instances have the + * same reset values for GPIOPUR, GPIOAFSEL and GPIODEN, so in theory + * we should allow the board to configure these via properties. + * In practice, we don't wire anything up to the affected GPIO lines + * (PB7, PC0, PC1, PC2, PC3 -- they're used for JTAG), so we can + * get away with this inaccuracy. + */ s->data =3D 0; s->old_in_data =3D 0; s->dir =3D 0; --=20 2.20.1