From patchwork Wed Jul 6 06:45:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 9215571 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E46DE6048B for ; Wed, 6 Jul 2016 06:52:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D63D3286EF for ; Wed, 6 Jul 2016 06:52:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB2D928716; Wed, 6 Jul 2016 06:52:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, FROM_LOCAL_NOVOWEL, HK_RANDOM_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 446E828714 for ; Wed, 6 Jul 2016 06:52:04 +0000 (UTC) Received: from localhost ([::1]:59675 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKggl-0006qy-E9 for patchwork-qemu-devel@patchwork.kernel.org; Wed, 06 Jul 2016 02:52:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKgcL-0003DG-MN for qemu-devel@nongnu.org; Wed, 06 Jul 2016 02:47:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKgcF-0000ih-OW for qemu-devel@nongnu.org; Wed, 06 Jul 2016 02:47:28 -0400 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]:33852) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKgcF-0000iY-GH for qemu-devel@nongnu.org; Wed, 06 Jul 2016 02:47:23 -0400 Received: by mail-lf0-x242.google.com with SMTP id l102so9182777lfi.1 for ; Tue, 05 Jul 2016 23:47:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=ZYIq0EGqL4ARZMWFR9gfyyQio8o7RTfwVDWhEdlkwj4=; b=JPqe+TfRiROR3P3tWtQfaMqB6l8CGOPIZ9z9FPt4ug7Ys8MvY4aUCZvXky01Z7HBMU SoledFVcBVVLf7I+uT8eR3yyx8kojkAIc78IxqhqADjVRmPoOew9bn/+0k3rM8gWlGci tU4xbfuAEiUgk32iQNBPOFxIgHQNCU0m9H4D73eld3t+IVKJcquUKpnwv8jtL4WsQmKB cRthZsFSLzUBRm50UMa0zCo+3PGXxiGXzx/UhgxcSjWTiXpxN6UXr0ign8D113W7Q8kj ccYQRqf+2QhKI823fG8bLvhsJJa3R5y/n0nRX2H6d1g/Q2BBqiYz9qbbpcrxVY8KhCLM 9uBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ZYIq0EGqL4ARZMWFR9gfyyQio8o7RTfwVDWhEdlkwj4=; b=EGzDlKpQPimLLj5jyDNqEhF1mXQaHH1VcX+An33LOA4jjoyWj9MUB0bo+O3NQJsj9V RVgPfhCFaq6nCAQFYJPgrONK2ZcgtkybgAY+mI4JAbpTVhA/bQkuXwrCYTcI7H32g4BJ kQPZ5/FUt+++9KRz46GVaNsqbx9hSlIqbOiMJLwyzGw/auyOErsL1DZj5cE70dhD6wY3 NpVS2eHh29sLhtV0WkO8vAVKgi66jt35w7Y6Oq0jaDOa4T6l9mNNQ4hAnb4Vmy1o1DlX L5p1h8FdF3mhgynG4V4O5owdJsMGboDIrt5IIpZscAPCHV1Jvy/mG1fBI1g2c6/+yEEt cYJA== X-Gm-Message-State: ALyK8tLNQwQuDc7SZZPdz/qg5JhyL/9OHKzhnBewRk5pRX+Y2J3WqHNQFnoimPsZIZWUxQ== X-Received: by 10.25.37.145 with SMTP id l139mr4345771lfl.41.1467787642265; Tue, 05 Jul 2016 23:47:22 -0700 (PDT) Received: from octofox.metropolis ([5.19.183.212]) by smtp.gmail.com with ESMTPSA id s87sm5962650lfg.46.2016.07.05.23.47.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Jul 2016 23:47:21 -0700 (PDT) From: Max Filippov To: qemu-devel@nongnu.org Date: Wed, 6 Jul 2016 09:45:42 +0300 Message-Id: <1467787542-7778-1-git-send-email-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.1.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::242 Subject: [Qemu-devel] [PATCH] target-xtensa: xtfpga: fix FLASH interface width X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Max Filippov Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP FLASH chip on XTFPGA boards is connected with 16-bit-wide interface. Latest U-Boot can see the difference and does not work correctly with 32-bit-wide interface. Set FLASH chip 'width' property to 2. Signed-off-by: Max Filippov --- hw/xtensa/xtfpga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xtensa/xtfpga.c b/hw/xtensa/xtfpga.c index 3f171ac..f3c9672 100644 --- a/hw/xtensa/xtfpga.c +++ b/hw/xtensa/xtfpga.c @@ -306,7 +306,7 @@ static pflash_t *xtfpga_flash_init(MemoryRegion *address_space, qdev_prop_set_uint32(dev, "num-blocks", board->flash_size / board->flash_sector_size); qdev_prop_set_uint64(dev, "sector-length", board->flash_sector_size); - qdev_prop_set_uint8(dev, "width", 4); + qdev_prop_set_uint8(dev, "width", 2); qdev_prop_set_bit(dev, "big-endian", be); qdev_prop_set_string(dev, "name", "lx60.io.flash"); qdev_init_nofail(dev);