From patchwork Tue Feb 28 10:03:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?S09OUkFEIEZyw6lkw6lyaWM=?= X-Patchwork-Id: 9595083 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 191D9601D7 for ; Tue, 28 Feb 2017 10:08:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EEF0B26530 for ; Tue, 28 Feb 2017 10:08:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3FC028518; Tue, 28 Feb 2017 10:08:48 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, 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 938F126530 for ; Tue, 28 Feb 2017 10:08:48 +0000 (UTC) Received: from localhost ([::1]:59874 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciei7-0002Rf-Mo for patchwork-qemu-devel@patchwork.kernel.org; Tue, 28 Feb 2017 05:08:47 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cied7-0006pN-PL for qemu-devel@nongnu.org; Tue, 28 Feb 2017 05:03:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cied6-00049u-Uy for qemu-devel@nongnu.org; Tue, 28 Feb 2017 05:03:37 -0500 Received: from greensocs.com ([193.104.36.180]:38450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cied6-00049e-KO for qemu-devel@nongnu.org; Tue, 28 Feb 2017 05:03:36 -0500 Received: from localhost (localhost [127.0.0.1]) by greensocs.com (Postfix) with ESMTP id EC76140D438; Tue, 28 Feb 2017 11:03:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1488276216; bh=2KDoRjJqGn03rQ7iHwEFOcbhwzxYR3+HV0L4onuMnDk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=kmWkoWtfNYZ1SeiOVS9i9sX4KUpmnYjZL5yRHr0+HQjgua2VfujvlSdt/kzqe5+RX /7IFFQGf9TW0aTNhtV+DWm8BhUUARv7fA1SWnyHgMfdd5bgpCTqaR1rvymCuHWbYZL TLpPLVKcfMLKz5koJpVbgtvASJPkQX0SRTvvTZ1s= X-Virus-Scanned: amavisd-new at greensocs.com Authentication-Results: gs-01.greensocs.com (amavisd-new); dkim=pass (1024-bit key) header.d=greensocs.com Received: from greensocs.com ([127.0.0.1]) by localhost (gs-01.greensocs.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r10k6XMI3T47; Tue, 28 Feb 2017 11:03:35 +0100 (CET) Received: from corsair.home (bd231-7-88-127-3-24.fbx.proxad.net [88.127.3.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: fred.konrad@greensocs.com) by greensocs.com (Postfix) with ESMTPSA id C6A193FE898; Tue, 28 Feb 2017 11:03:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1488276215; bh=2KDoRjJqGn03rQ7iHwEFOcbhwzxYR3+HV0L4onuMnDk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=pgWpLqHd6shM6G32mTsE7fPFrUcnUjVj+foVku8l69buC3Rij1d+L1utK3dA4QTwS uKsVkBm5UM7sknGGn3J6kcBWkk8KnW3adoK762svh2T+aO7FRbDYiNS2rtJlpmlVpS Prek/1+MUiGZeKBAZiw91Qrdxj77Q7LSz/JweLy0= From: fred.konrad@greensocs.com To: qemu-devel@nongnu.org Date: Tue, 28 Feb 2017 11:03:04 +0100 Message-Id: <1488276185-31168-10-git-send-email-fred.konrad@greensocs.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1488276185-31168-1-git-send-email-fred.konrad@greensocs.com> References: <1488276185-31168-1-git-send-email-fred.konrad@greensocs.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 193.104.36.180 Subject: [Qemu-devel] [PATCH v3 09/10] zynqmp: add the zynqmp_crf to the platform 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, mark.burton@greensocs.com, alistair.francis@xilinx.com, clg@kaod.org, fred.konrad@greensocs.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: KONRAD Frederic This adds the zynqmp_crf to the zynqmp platform. Signed-off-by: KONRAD Frederic --- hw/arm/xlnx-zynqmp.c | 7 +++++++ include/hw/arm/xlnx-zynqmp.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqmp.c index bc4e66b..27dccdb 100644 --- a/hw/arm/xlnx-zynqmp.c +++ b/hw/arm/xlnx-zynqmp.c @@ -177,6 +177,11 @@ static void xlnx_zynqmp_init(Object *obj) object_initialize(&s->dpdma, sizeof(s->dpdma), TYPE_XLNX_DPDMA); qdev_set_parent_bus(DEVICE(&s->dpdma), sysbus_get_default()); + + s->crf = object_new("xlnx.zynqmp_crf"); + qdev_set_parent_bus(DEVICE(s->crf), sysbus_get_default()); + object_property_add_child(obj, "xlnx.zynqmp_crf", OBJECT(s->crf), + &error_abort); } static void xlnx_zynqmp_realize(DeviceState *dev, Error **errp) @@ -424,6 +429,8 @@ static void xlnx_zynqmp_realize(DeviceState *dev, Error **errp) &error_abort); sysbus_mmio_map(SYS_BUS_DEVICE(&s->dpdma), 0, DPDMA_ADDR); sysbus_connect_irq(SYS_BUS_DEVICE(&s->dpdma), 0, gic_spi[DPDMA_IRQ]); + + sysbus_mmio_map(SYS_BUS_DEVICE(s->crf), 0, 0xFD1A0000); } static Property xlnx_zynqmp_props[] = { diff --git a/include/hw/arm/xlnx-zynqmp.h b/include/hw/arm/xlnx-zynqmp.h index c2931bf..379a17a 100644 --- a/include/hw/arm/xlnx-zynqmp.h +++ b/include/hw/arm/xlnx-zynqmp.h @@ -86,6 +86,8 @@ typedef struct XlnxZynqMPState { XlnxDPState dp; XlnxDPDMAState dpdma; + Object *crf; + char *boot_cpu; ARMCPU *boot_cpu_ptr;