From patchwork Tue Aug 13 15:12:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 19092 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gh0-f200.google.com (mail-gh0-f200.google.com [209.85.160.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7A2A9246B8 for ; Tue, 13 Aug 2013 15:14:02 +0000 (UTC) Received: by mail-gh0-f200.google.com with SMTP id 10sf6486710ghy.3 for ; Tue, 13 Aug 2013 08:14:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=mjku1Xy7XgvNIaxHlGQ2JlWuD+LfvzL8/EMuKVg2e0Q=; b=MN+PR/z3eG6M/tzxoN9CfUjQ4/7qju8RdCawkW9/c9GEscxS6xXAByrSW3lJ3mydTr 6VqSkOvO4ocdcQD/Y5aAlgf13M2GzL8oOcy4APE2vi/pSYRDtQC5SYnxwjfXH6fiXjU5 XEbMQrcxRQaHHRb70/lgiz4v8M5kViLv613UVIUP3f4GaKUrKpTB3/deMhJ0oTpdascg zqITwmagEUfzJnXBlAN5C/2ZrHQMdh8IxwnZd5e01PI7qgNsU4pVJwUB72/9+HaZcuwP Y8CpbazrqDfEEi91sT044IijZyGrG9qvMiGZRuEwO4JkLI67S+mjHwLwBOZ/nzPI3NNu 7tJQ== X-Received: by 10.236.91.4 with SMTP id g4mr1810771yhf.30.1376406842212; Tue, 13 Aug 2013 08:14:02 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.84.170 with SMTP id a10ls2848450qez.20.gmail; Tue, 13 Aug 2013 08:14:02 -0700 (PDT) X-Received: by 10.220.86.69 with SMTP id r5mr105862vcl.42.1376406842028; Tue, 13 Aug 2013 08:14:02 -0700 (PDT) Received: from mail-vb0-f43.google.com (mail-vb0-f43.google.com [209.85.212.43]) by mx.google.com with ESMTPS id gw1si2757739vcb.137.2013.08.13.08.14.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 Aug 2013 08:14:02 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.43 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.43; Received: by mail-vb0-f43.google.com with SMTP id h11so6790825vbh.16 for ; Tue, 13 Aug 2013 08:14:02 -0700 (PDT) X-Gm-Message-State: ALoCoQksBQec97+sEuJfMQP3n5mTbFdtc7z/dfoWLv2ZzGqAHhn1wUAOXsJQby4rkcPRMFoJplWW X-Received: by 10.52.164.16 with SMTP id ym16mr3957620vdb.32.1376406841947; Tue, 13 Aug 2013 08:14:01 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp159525vcz; Tue, 13 Aug 2013 08:14:01 -0700 (PDT) X-Received: by 10.60.60.41 with SMTP id e9mr4786730oer.47.1376406841408; Tue, 13 Aug 2013 08:14:01 -0700 (PDT) Received: from mail-oa0-f48.google.com (mail-oa0-f48.google.com [209.85.219.48]) by mx.google.com with ESMTPS id i3si19010659obz.3.2013.08.13.08.14.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 Aug 2013 08:14:01 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.219.48 is neither permitted nor denied by best guess record for domain of andre.przywara@linaro.org) client-ip=209.85.219.48; Received: by mail-oa0-f48.google.com with SMTP id o17so11334291oag.7 for ; Tue, 13 Aug 2013 08:14:01 -0700 (PDT) X-Received: by 10.182.65.137 with SMTP id x9mr541417obs.97.1376406841027; Tue, 13 Aug 2013 08:14:01 -0700 (PDT) Received: from slackpad.drs.calxeda.com (g224199244.adsl.alicedsl.de. [92.224.199.244]) by mx.google.com with ESMTPSA id rr6sm39857159oeb.0.2013.08.13.08.13.59 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 Aug 2013 08:14:00 -0700 (PDT) From: Andre Przywara To: stefano.stabellini@eu.citrix.com, Ian.Campbell@citrix.com, julien.grall@linaro.org Cc: xen-devel@lists.xen.org, patches@linaro.org, Andre Przywara Subject: [PATCH] PL011: don't force baud rate of 38400 bps Date: Tue, 13 Aug 2013 17:12:52 +0200 Message-Id: <1376406772-23737-1-git-send-email-andre.przywara@linaro.org> X-Mailer: git-send-email 1.7.12.1 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: andre.przywara@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.43 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The PL011 driver currently sets the baudrate to a hardcoded value of 38400 bits/second. This will break Calxeda Midway, which uses 115200 bps. Instead don't tinker with the baud rate register at all and rely on the firmware or bootloader setting the correct value in here. This works fine on Versatile Express and Calxeda Midway. Signed-off-by: Andre Przywara --- xen/drivers/char/pl011.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/drivers/char/pl011.c b/xen/drivers/char/pl011.c index 8e90520..0e1eb64 100644 --- a/xen/drivers/char/pl011.c +++ b/xen/drivers/char/pl011.c @@ -229,7 +229,7 @@ static int __init pl011_uart_init(struct dt_device_node *dev, uart = &pl011_com; uart->clock_hz = 0x16e3600; - uart->baud = 38400; + uart->baud = BAUD_AUTO; uart->data_bits = 8; uart->parity = PARITY_NONE; uart->stop_bits = 1;