From mboxrd@z Thu Jan 1 00:00:00 1970 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) From: Max Filippov Date: Wed, 6 Jul 2016 09:45:42 +0300 Message-Id: <1467787542-7778-1-git-send-email-jcmvbkbc@gmail.com> Subject: [Qemu-devel] [PATCH] target-xtensa: xtfpga: fix FLASH interface width List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Max Filippov 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); -- 2.1.4