From patchwork Tue Jan 22 12:20:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 1029516 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="sIszfruY"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43kfgC3ZHkz9s4s for ; Wed, 23 Jan 2019 07:10:47 +1100 (AEDT) Received: from localhost ([127.0.0.1]:48662 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gm2Ng-0006YM-RA for incoming@patchwork.ozlabs.org; Tue, 22 Jan 2019 15:10:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gm1Pw-0005lS-RG for qemu-devel@nongnu.org; Tue, 22 Jan 2019 14:09:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gm1Pv-0000xj-KV for qemu-devel@nongnu.org; Tue, 22 Jan 2019 14:09:00 -0500 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]:38835) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gm1Pv-0000ZY-CS for qemu-devel@nongnu.org; Tue, 22 Jan 2019 14:08:59 -0500 Received: by mail-pl1-x62a.google.com with SMTP id e5so11927289plb.5 for ; Tue, 22 Jan 2019 11:08:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9L7Po12DjNr3sbk7f27wrrPBoXaFgKuDRHnjoVF5r2Y=; b=sIszfruYkRU46qxaZSXP8BQ67XhOrxnbhHM6wPRlTM4Y+4JRNTvnYWZsYK7rn+65L1 N4qEFi+6lvgIus9MqunJSS+oejFSmH48Asdq6BRlI9yavl4AHD74qc2sFB1B4olZBU38 v1URZoZrqf5xOo7JkReeqPXclNZp9w3T9Ubn2WlIttGNb05EcmvWPLknecgl1WGNlh3C MNIQcgu0T8gjHD9FLVb81sr3X06BWqyAUCXZo71YXXNaJ5zslGonhfldG8cVfGDoXyKA SaDDsAcB17rjFUV/ZTCvQWGAnss7yN1BpCqtNb1ad83cn/5n7+pHyzI+31sjUpLpY8ru 1ewA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9L7Po12DjNr3sbk7f27wrrPBoXaFgKuDRHnjoVF5r2Y=; b=qVmoySYSKJZY1oYCz3CFaXHMGzd1pDw8ahcxbLdOplulV5DYAiohj7JExNZLwCwQdd OCeT9BPr8AI2e7YmCbuCwOjk3c/T3uFsngUAtWnxHfVIgt2H3pMriwySpTo0UvhSUoOB YA6/KZ4BMLuaXnvPWj3DOQu08QMhwe7/p+Vs1xTV0vU47HZuDFuircPH9lcE16NkHOlG AA7kz6TtPtyGzPLANRgkDN/g4Ef92YPiX00Y7+64T+LXk/kE456/xLDvtZYEt3IV45IP cZFL6C94Euyjp6IDjflFXqjXAiECLGPdhx2AM4UqMLQfIXqDTWhlHshVqAYwXLXE0D5o 0KjA== X-Gm-Message-State: AJcUukc3BCZhTOtE+nZrK2PpIvXaN40ok21QrSNzP3VIlpGOZelcGnet TspnvyrVQlyj1KINIBh8K83fjtSMEak= X-Google-Smtp-Source: ALg8bN7WOUjSYmptDFWGUT4Fd74fpBv944ktEWD1iOyHfsLg1Eje29HPBp4uFIm459gSXUJvtiPbcA== X-Received: by 2002:a17:902:b093:: with SMTP id p19mr33920860plr.135.1548159747741; Tue, 22 Jan 2019 04:22:27 -0800 (PST) Received: from localhost ([149.199.62.129]) by smtp.gmail.com with ESMTPSA id g185sm18858402pfc.174.2019.01.22.04.22.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Jan 2019 04:22:26 -0800 (PST) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Tue, 22 Jan 2019 04:20:47 -0800 Message-Id: <20190122122048.10845-3-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190122122048.10845-1-edgar.iglesias@gmail.com> References: <20190122122048.10845-1-edgar.iglesias@gmail.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::62a Subject: [Qemu-devel] [PULL v1 2/3] hw/microblaze: s3adsp1800: Create an unimplemented GPIO area 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: edgar.iglesias@xilinx.com, peter.maydell@linaro.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: "Edgar E. Iglesias" Create an unimplemented GPIO area instead of leaving it unassigned. Reviewed-by: Luc Michel Signed-off-by: Edgar E. Iglesias --- hw/microblaze/petalogix_s3adsp1800_mmu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/microblaze/petalogix_s3adsp1800_mmu.c b/hw/microblaze/petalogix_s3adsp1800_mmu.c index 5cf7b84c79..b9f0b0d06e 100644 --- a/hw/microblaze/petalogix_s3adsp1800_mmu.c +++ b/hw/microblaze/petalogix_s3adsp1800_mmu.c @@ -35,6 +35,7 @@ #include "sysemu/sysemu.h" #include "hw/devices.h" #include "hw/boards.h" +#include "hw/misc/unimp.h" #include "exec/address-spaces.h" #include "hw/char/xilinx_uartlite.h" @@ -47,6 +48,7 @@ #define MEMORY_BASEADDR 0x90000000 #define FLASH_BASEADDR 0xa0000000 +#define GPIO_BASEADDR 0x81400000 #define INTC_BASEADDR 0x81800000 #define TIMER_BASEADDR 0x83c00000 #define UARTLITE_BASEADDR 0x84000000 @@ -122,6 +124,8 @@ petalogix_s3adsp1800_init(MachineState *machine) sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, ETHLITE_BASEADDR); sysbus_connect_irq(SYS_BUS_DEVICE(dev), 0, irq[ETHLITE_IRQ]); + create_unimplemented_device("gpio", GPIO_BASEADDR, 0x10000); + microblaze_load_kernel(cpu, ddr_base, ram_size, machine->initrd_filename, BINARY_DEVICE_TREE_FILE,