From patchwork Fri Oct 20 17:00:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 736280 Delivered-To: patch@linaro.org Received: by 2002:adf:dd81:0:b0:32d:baff:b0ca with SMTP id x1csp410925wrl; Fri, 20 Oct 2023 10:02:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHogmtycm8/smNpNkoRrBAV3Txnj2s2DiUbK68CCokQbvQWw5oHNGW4jDzYhj4L8U9WfNXK X-Received: by 2002:a05:6830:108f:b0:6b9:b1b0:fcd1 with SMTP id y15-20020a056830108f00b006b9b1b0fcd1mr2303830oto.31.1697821320162; Fri, 20 Oct 2023 10:02:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697821320; cv=none; d=google.com; s=arc-20160816; b=odmBkt7eS/JOsoiDjOcAewmwoLdeDpALgGu/heVTSSXItIaNCflsOeGgO+KBszQ0pQ l/NfcrX3wtCM6QBte88CAiw8dsQi5K00YX7Gw/S2DDEGGALjqLamN3yd2NXe+aE8WfXg yPk016b4BVr6/VKzaKy4snkwmCVbhb2Jh0R/fNMkna2FtWZloSEcjc/+dKy4TqLxf5Rj uBGQMpc2Lx9acLs9IRwHlYdXTcmokUZZ+Rdn1aXRXC5PZGu2gJuCG1jNstNnj75GV9iI +wfDU4dDpJeqcn+OWkw4WMUVFQuN+9tWSlaTsyoOjFcpglVziDARwqX0TRq/LwpntqSu n+6w== 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:cc:to :from:dkim-signature; bh=pbtFw1Pjg71UOOCnDLcng5H0rDRsRUycUpGk3Jvwf+E=; fh=CSV7ixVglXzcxb66Foh/+b7TyX0eETHj/jUl4XtrXPU=; b=laKawHTRMdb9iRNqm+7X/MvXhd9sFTLSKiTYH+FKmckMBl3XBDoBFfPk2qqrBIJOrp C4kgYglx/udLmCAQ0U9ZnBhzCUAAiUIT8aWNMntjOX8XT/nL1ABoTIUXynZrWcRZe0I0 DlpvW1ZhPePRy4FlmT6cqN7ExSjrdr/+c/UzvOFLM1e2ipWLnEfXSoFASGiROfmBzp/i mnz+aTTuqkAOCPYDxDi3zoAgulqZR5YyWMRBPGSfCtUyQjO7EYZaVMteQtQdskSu4pzs IueGQFcOHRTyISBa8iGfP9hH9mpi93RqDm8VIon34skj1PXN/ezkynTETgH4uzPHiIea gb1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HVhWsJ12; 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 u23-20020a67cd17000000b004525f21db59si205748vsl.454.2023.10.20.10.01.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Oct 2023 10:02:00 -0700 (PDT) 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=HVhWsJ12; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtsrd-0002cn-H1; Fri, 20 Oct 2023 13:00:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtsrX-0002bf-Hw for qemu-devel@nongnu.org; Fri, 20 Oct 2023 13:00:39 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtsrW-0000KC-2z for qemu-devel@nongnu.org; Fri, 20 Oct 2023 13:00:39 -0400 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-4084095722aso8498185e9.1 for ; Fri, 20 Oct 2023 10:00:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697821235; x=1698426035; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pbtFw1Pjg71UOOCnDLcng5H0rDRsRUycUpGk3Jvwf+E=; b=HVhWsJ12DKZ8Ias3+ZxP+xhNixI8LvNChPDSguMrKjxp+PElSUgnURMXXu2I1hgYHS VNwWHasZDgdqKht1LlDjDFxDRFHNhlS6DXmNA++oJPFf1w3ktG7NiYUTYRdLmkrgcr6y aElMdEa7Vq7zzcjBfMABVmKYPOLk81Wre5OBRxtWTyb3W8dGlez/M0vBC4CRMfbxuSwN oW0coYyiGaZdOH9R5iXLJxcMoTAdJouvZ1UGpxt9DQSJxxGrgHom49zXVl/dhIiWspJq IDtQ0CI2zylbg7Uls/jL1fALGKgiLCdx8SOmzJ7YrO1kyKE1U98ExVxZEDJbLAwb19tU do1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697821235; x=1698426035; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pbtFw1Pjg71UOOCnDLcng5H0rDRsRUycUpGk3Jvwf+E=; b=ibQYLM9D12Bi9gqfxDI4wYY+630BjMhJEiOgd9Yps5WZWMuVuND/SlxwSQtgvuNaq0 BnNApL0WsF7DsLB/2AH9nMOvPye0x3Asl4mHHYkI54ouYG+S5zLKTcSv7HDXY1AKtMUb o7Z2EKLXVQT5+J31zHtn5LTNdQIPlJcL+pRe3uvCY2JPuA1eOVAk28GwtrrRfq5QLX/3 lTLhlG3EEeFxY72piMwcIFgv84n98SJauOhz9QcOlPlmno48gdz9e/Wm+sRUGfcd5ZV+ l16ly8j2m+dNj9OyH5ZUKV8R/7I/tgIzL38CT5hZ1YF8UF2ALZ6PH181QEb805IjUKa9 IN5g== X-Gm-Message-State: AOJu0YyAY+Q9LD8jy7oQFOjWEyv0J6JA9Fi4RxKtAQ4PcUXK8s3JMs6w mHTdCVD8oTWtOi9ImW1Y2srYVQ== X-Received: by 2002:a05:600c:4f49:b0:3fb:a100:2581 with SMTP id m9-20020a05600c4f4900b003fba1002581mr1888317wmq.14.1697821235488; Fri, 20 Oct 2023 10:00:35 -0700 (PDT) Received: from m1x-phil.lan (tbo33-h01-176-171-212-97.dsl.sta.abo.bbox.fr. [176.171.212.97]) by smtp.gmail.com with ESMTPSA id l8-20020a05600c1d0800b0040531f5c51asm2625453wms.5.2023.10.20.10.00.34 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 20 Oct 2023 10:00:35 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: Hans-Erik Floryd , qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Peter Maydell , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Paolo Bonzini , Alistair Francis , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PATCH v2 4/4] hw/char/stm32f2xx_usart: Add more definitions for CR1 register Date: Fri, 20 Oct 2023 19:00:08 +0200 Message-ID: <20231020170009.86870-5-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231020170009.86870-1-philmd@linaro.org> References: <20231020170009.86870-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=philmd@linaro.org; helo=mail-wm1-x334.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.29 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-bounces+patch=linaro.org@nongnu.org From: Hans-Erik Floryd Signed-off-by: Hans-Erik Floryd [PMD: Split from bigger patch] Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Acked-by: Alistair Francis --- Useful if unused? --- include/hw/char/stm32f2xx_usart.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/hw/char/stm32f2xx_usart.h b/include/hw/char/stm32f2xx_usart.h index 65bcc85470..fdfa7424a7 100644 --- a/include/hw/char/stm32f2xx_usart.h +++ b/include/hw/char/stm32f2xx_usart.h @@ -48,10 +48,12 @@ #define USART_SR_TC (1 << 6) #define USART_SR_RXNE (1 << 5) -#define USART_CR1_UE (1 << 13) -#define USART_CR1_RXNEIE (1 << 5) -#define USART_CR1_TE (1 << 3) -#define USART_CR1_RE (1 << 2) +#define USART_CR1_UE (1 << 13) +#define USART_CR1_TXEIE (1 << 7) +#define USART_CR1_TCEIE (1 << 6) +#define USART_CR1_RXNEIE (1 << 5) +#define USART_CR1_TE (1 << 3) +#define USART_CR1_RE (1 << 2) #define TYPE_STM32F2XX_USART "stm32f2xx-usart" OBJECT_DECLARE_SIMPLE_TYPE(STM32F2XXUsartState, STM32F2XX_USART)