From patchwork Mon Mar 18 10:05:39 2024 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: 780909 Delivered-To: patch@linaro.org Received: by 2002:a5d:46c1:0:b0:33e:7753:30bd with SMTP id g1csp1346634wrs; Mon, 18 Mar 2024 03:06:46 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV7j34hczfLydi7talXI+WAeuNVeEMKSecxttfrjDWatlf+IwLBvL0uxCobL3CqNjbz733bJH+26FL6G37NObXl X-Google-Smtp-Source: AGHT+IEaSDExRbTuv1rslqKMzStqL19ymoEF8QKp0hHZ+3/DtqGBKCQPFySuGwodY6EeNKhWvFyT X-Received: by 2002:ad4:4c0d:0:b0:690:b11:36c2 with SMTP id bz13-20020ad44c0d000000b006900b1136c2mr10237904qvb.63.1710756406097; Mon, 18 Mar 2024 03:06:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1710756406; cv=none; d=google.com; s=arc-20160816; b=n5U4YsYk9W8rVIOo4lQxARtcYQsJPP7uuUrfmpoBpPmLjaOvFx/1bFAyMuXmK4Spvf mb9Cg3RvjL5om66jWO2UD2hSrcop48OMjx/yq+lYVpLei+3yR5WiOQrUonfYwyVeeG6N M884m5JQfHKXVvYBJbpJJXNL3eUJ3jNj0/QLH6fUfNXLRBLObEDQ1VRv08b9J9B1dH08 uuMhnsw7gKWVED55zIkVr1nhCueYG1BdYZ9BXF8HMyDcB8Jmlrs5gegw55wxx8GfC7Lb wwOx2ZJ0rBra1sSKLzXkovgYnLDmip+HUceeFrDqvfzFeAkLZ7V4Q7dCxONtKKL1D1J+ hQGg== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=XRdZ7V52KGINFgH2MKciuqDB0KCcONfxHqjyag63VzI=; fh=KUAlKLrL/1V6YIm+DLAbV/OwrOTdGgaYBZrzeVbcM0g=; b=VA9VLrW6mrVm8Rl7qghpmJjNlPCeawNrDXydl6OCcgPXICcLjFpQTL4pJDpEmOEm+P xwGNaa9irC1BlekYR6OrD1/M/2W8vNJ7zjFPM9tcRy+FOkzghC1IJYgcy4VxGfF5bYbo uV8i1WnpMteSn9auyhLrKaa9DCG3xaUm0C7TnGnvYxGvYYXlLUbNaSnt8p8f03AW7DAp lL8aX/i0Z1Hsx+cLxELA+X8npQ4hePfZ8hpNh54Gjr0Tu6L6j24Q+4Q8NA6gDDwQNYEX 23XwSQJTxmGpVW0IQQsJOMQKgxkSSQQmxwED5AtRD2JNUtbp0INsxaYh1JHUE14bR+Mz BWnw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dynqvVM4; 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 q7-20020ad45ca7000000b0068fd7a853b3si8210388qvh.501.2024.03.18.03.06.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Mar 2024 03:06:46 -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=dynqvVM4; 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 1rm9sR-0001EV-Tu; Mon, 18 Mar 2024 06:05:55 -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 1rm9sM-0001E3-34 for qemu-devel@nongnu.org; Mon, 18 Mar 2024 06:05:50 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rm9sK-0005w7-8r for qemu-devel@nongnu.org; Mon, 18 Mar 2024 06:05:49 -0400 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4141a52a98dso1635335e9.0 for ; Mon, 18 Mar 2024 03:05:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710756346; x=1711361146; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=XRdZ7V52KGINFgH2MKciuqDB0KCcONfxHqjyag63VzI=; b=dynqvVM4uDC6FtuWGa7JlBcdSRUo82Ok0Av4h99SrPVRaPO6ZK9bSXajIPiPWmWsDW BUPjqHLYPs9A07+FALh7qw7GttNlrd26L/f8RTN945y85wOhUOHDszXeufviEUrSBY/r 5mFOaZQ3Ww+ncGEVS7gu6/Qc9/qHnJ6PlfIM5eWx0SEozDnTn7pxtFKquRfZolGlhZO6 LAxK9d2T0FmDTiKLwZYAPY00SGo2VoXn++ZbDxsznJmz4azBq26JORR99WWu4zNbPPBG Dn2adah/gxoKrP8ndPeoScE3F+ouw5ukRxRmxGRMyeOMeSp5iz7Scr1vgKDd+VkxfL2t dMPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710756346; x=1711361146; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XRdZ7V52KGINFgH2MKciuqDB0KCcONfxHqjyag63VzI=; b=Uzb9gkUIvsuqgQ91FSpEV4HZ7UkVitS6EangcCuYc4ibSAnm5aXxbY8mV9XnQ8RUBk d/j6JrtfSgWcd3DTj2qfggUwfDEdSeJfjOI4eOpaT/RWF/z4M7ocg/65BAgVjPWvbwSc I5C8qs6Z9xEs0f373PpftK0Tk6/j4OsbHeGzh+5kL8Il28QVt0hl1uGlpWyjl7XE9CL3 CvSTGpyWc8i8xW8lSS89DVRLXj3HCYJQuidnVOnW8pscjmWJpedpH8KJ/QNmv2OT1KW7 P5GRRQARgtYKned51pB9YzuEyepovGrw0jwh5hROOdCFxzDzpeA4WT7Iu4N7LxT8eabJ FEMg== X-Gm-Message-State: AOJu0YzTS1yNNEDlT/EjIwEAblXprgglipXZePxPOi+IOT+M4HtsS4/s 9W4Yjjp52GPtdRs7bNU05kT5NrOT8mys1iQOd8LdxEN72o+CThtttgb+yOClEH3RZHP1nFeg48S 8 X-Received: by 2002:a05:600c:a45:b0:414:a25:9970 with SMTP id c5-20020a05600c0a4500b004140a259970mr3759902wmq.39.1710756345850; Mon, 18 Mar 2024 03:05:45 -0700 (PDT) Received: from m1x-phil.lan (vit94-h02-176-184-29-165.dsl.sta.abo.bbox.fr. [176.184.29.165]) by smtp.gmail.com with ESMTPSA id hg13-20020a05600c538d00b004140b6625dcsm4984940wmb.13.2024.03.18.03.05.44 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 18 Mar 2024 03:05:45 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , Gerd Hoffmann , qemu-arm@nongnu.org, Paolo Bonzini , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH-for-9.1 0/3] ui/display: Introduce API to change console orientation Date: Mon, 18 Mar 2024 11:05:39 +0100 Message-ID: <20240318100543.78846-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=philmd@linaro.org; helo=mail-wm1-x332.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, T_SCC_BODY_TEXT_LINE=-0.01 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 Hi, The idea behind this series is to reduce the use of the 'graphic_rotate' global. It is only used by the Spitz machine, so we could convert the '-rotate' argument to a sugar property on the PXA2XX_LCD_TYPE model, but since the Spitz machine has been deprecated recently (commit a2531bb855 "Deprecate various old Arm machine types") it doesn't seem worthwhile. So just extract the API to change console orientation. Regards, Phil. Philippe Mathieu-Daudé (3): ui/console: Introduce API to change console orientation hw/display/pxa2xx_lcd: Set rotation angle using qemu_console_set_rotate ui/console: Add 'rotate_arcdegree' field to allow per-console rotation include/ui/console.h | 3 +++ ui/console-priv.h | 1 + hw/display/pxa2xx_lcd.c | 1 + ui/console.c | 15 +++++++++++++++ ui/input.c | 9 ++++----- 5 files changed, 24 insertions(+), 5 deletions(-)