From patchwork Mon Feb 25 16:44:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 15071 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 2806D23E02 for ; Mon, 25 Feb 2013 16:44:45 +0000 (UTC) Received: from mail-vb0-f42.google.com (mail-vb0-f42.google.com [209.85.212.42]) by fiordland.canonical.com (Postfix) with ESMTP id D5811A180C2 for ; Mon, 25 Feb 2013 16:44:44 +0000 (UTC) Received: by mail-vb0-f42.google.com with SMTP id ff1so1807930vbb.15 for ; Mon, 25 Feb 2013 08:44:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=pggeWEmuF0ru6KtllxVIMmNQQ2zrtMhrdrVb25Cj4GY=; b=FajTv1e76irAqevs+v7IY7dj1C8EMJIyJFbi6HmD6HK1B7Xx+fcXwaBwRjTNMGQPnv 9kaq+HzCRJC+LLxL+CgGasgLrgHSRYqEqIkTK8Xhpo+qsA2e04wgj6Xro3FSZQl+AARr ThNzq3WKknCLtkeFq9wl9wv7w+gPdCPkigbnSyO17q8SFgOI+I+ldR4ESTr4eQgG7waU 8ZSV6LMMTNDl9V3V74wpCB1LIcWg4kGskcsKe594/IfrlWvoif5XHa+4cbMS4rdObGOi ayPx9TEt38NEjcDVqlXT/WnKtpRNzul6nRZ5R7b9l+RlygQY9jLJKpE+6FlyLaj+IxCh dBXg== X-Received: by 10.58.188.48 with SMTP id fx16mr10449702vec.22.1361810684358; Mon, 25 Feb 2013 08:44:44 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.145.101 with SMTP id st5csp67554veb; Mon, 25 Feb 2013 08:44:43 -0800 (PST) X-Received: by 10.68.238.103 with SMTP id vj7mr18810264pbc.181.1361810679421; Mon, 25 Feb 2013 08:44:39 -0800 (PST) Received: from mnementh.archaic.org.uk (1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id tm6si12311244pbc.265.2013.02.25.08.44.38 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 25 Feb 2013 08:44:39 -0800 (PST) Received-SPF: neutral (google.com: 2001:8b0:1d0::1 is neither permitted nor denied by best guess record for domain of pm215@archaic.org.uk) client-ip=2001:8b0:1d0::1; Authentication-Results: mx.google.com; spf=neutral (google.com: 2001:8b0:1d0::1 is neither permitted nor denied by best guess record for domain of pm215@archaic.org.uk) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1UA1AH-0006tY-BG; Mon, 25 Feb 2013 16:44:33 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, =?UTF-8?q?Andreas=20F=C3=A4rber?= , Anthony Liguori Subject: [PATCH v2 04/10] hw/arm_sysctl: Implement SYS_CFG_DVIMODE as a no-op Date: Mon, 25 Feb 2013 16:44:27 +0000 Message-Id: <1361810673-26473-5-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1361810673-26473-1-git-send-email-peter.maydell@linaro.org> References: <1361810673-26473-1-git-send-email-peter.maydell@linaro.org> X-Gm-Message-State: ALoCoQmqgK8CH37CFTqFp2k1vGBIlUhy5l8wdM6D9bT+SfPonh/BjKdABgOIuImaKR5cQtfPK4ea SYS_CFG_DVIMODE allows the guest to select whether the output DVI signal is VGA, SVGA, XGA, SGA or UXGA. Since this makes no difference to QEMU, implement writes as a no-op so Linux doesn't complain. Signed-off-by: Peter Maydell --- hw/arm_sysctl.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hw/arm_sysctl.c b/hw/arm_sysctl.c index 960b664..bb56238 100644 --- a/hw/arm_sysctl.c +++ b/hw/arm_sysctl.c @@ -295,6 +295,14 @@ static bool vexpress_cfgctrl_write(arm_sysctl_state *s, unsigned int dcc, return true; } break; + case SYS_CFG_DVIMODE: + if (site == SYS_CFG_SITE_MB && device == 0) { + /* Selecting DVI mode is meaningless for QEMU: we will + * always display the output correctly according to the + * pixel height/width programmed into the CLCD controller. + */ + return true; + } default: break; }