From patchwork Mon Feb 4 13:44:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 14529 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 18E5723FEE for ; Mon, 4 Feb 2013 13:44:44 +0000 (UTC) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by fiordland.canonical.com (Postfix) with ESMTP id C69F5A1918D for ; Mon, 4 Feb 2013 13:44:43 +0000 (UTC) Received: by mail-ve0-f177.google.com with SMTP id m1so4723520ves.36 for ; Mon, 04 Feb 2013 05:44:43 -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=UaUfm1yXrD4q1vNd1hWJFWmgIHest4crfLFLC0USkJCBM8/FGojJATIn73pmTUOH7E X2ceLaJXG2mBxy4FOCHcZix82uAmiLNIym93UAl+DTKy0+0ZEIH2LA/UvUS21fUcHQCZ YpS4sh9FdfJx294C1VA1oEX8t19PnzfDwNlJ2xI4mTJ33QjKPGaHY10VDjIdfGmns0b+ O37ok6D+RyNuC5VN956Z1h5YFxjDpFPdZL1QWq15pJ3VCAGBxR5tI+Ovfv+DlaQ0M0Jn qXqIPnequ3eaLn2s7ZV/OZPLddpkX++0GBsFNMlNKvHBcWJXGgyBiUbs0eEdWewE/d6n GCmA== X-Received: by 10.220.153.143 with SMTP id k15mr22004683vcw.33.1359985483314; Mon, 04 Feb 2013 05:44:43 -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.252.8 with SMTP id zo8csp87648vec; Mon, 4 Feb 2013 05:44:42 -0800 (PST) X-Received: by 10.204.127.21 with SMTP id e21mr5663886bks.59.1359985480407; Mon, 04 Feb 2013 05:44:40 -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 hu4si12098987bkc.81.2013.02.04.05.44.39 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 04 Feb 2013 05:44:40 -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 1U2MLd-0007eR-7s; Mon, 04 Feb 2013 13:44:37 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Anthony Liguori Subject: [PATCH 04/10] hw/arm_sysctl: Implement SYS_CFG_DVIMODE as a no-op Date: Mon, 4 Feb 2013 13:44:30 +0000 Message-Id: <1359985476-29380-5-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1359985476-29380-1-git-send-email-peter.maydell@linaro.org> References: <1359985476-29380-1-git-send-email-peter.maydell@linaro.org> X-Gm-Message-State: ALoCoQl8yNBGCZ+7cMoPZNXaJ9pT4KgPmndx0cxAxEFhX4jK5HVjnVWnot9oxpJ+6sas7T1k8EbI 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; }