From patchwork Wed Oct 5 22:11:03 2016 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: 9363527 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 75346607D6 for ; Wed, 5 Oct 2016 22:16:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74E1B28CC6 for ; Wed, 5 Oct 2016 22:16:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6920628D10; Wed, 5 Oct 2016 22:16:08 +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 DC3B528CC6 for ; Wed, 5 Oct 2016 22:16:07 +0000 (UTC) Received: from localhost ([::1]:51614 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bruTu-000612-Dm for patchwork-qemu-devel@patchwork.kernel.org; Wed, 05 Oct 2016 18:16:06 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bruOQ-0001f9-9M for qemu-devel@nongnu.org; Wed, 05 Oct 2016 18:10:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bruOM-0007W8-3E for qemu-devel@nongnu.org; Wed, 05 Oct 2016 18:10:25 -0400 Received: from greensocs.com ([193.104.36.180]:32847) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bruOL-0007Vq-O7 for qemu-devel@nongnu.org; Wed, 05 Oct 2016 18:10:22 -0400 Received: from localhost (localhost [127.0.0.1]) by greensocs.com (Postfix) with ESMTP id 3C9BB37BD5E; Thu, 6 Oct 2016 00:10:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1475705421; bh=NrxKnVa7ey0vClmTHGcsfF/8kfaxOrp+lnQxm023BZ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=cRKcQVNvkDAr1YmP8ZN6UCKb+hMjs5hcw0wVDUhbyNboWMyCMfvgLJFdsbf71N/BM UJEJhyL6GgLSMRNkXvzrVeBmVlhN4dUhdYINwMUOl9wh4ilcIy1mQrCrNFQC7YvwF/ 2HC/3R+qv7ZgGUpYUjYLxSI5UN96jwtE0PQRrfJ0= 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 header.b=pRgTCWyg; dkim=pass (1024-bit key) header.d=greensocs.com header.b=pRgTCWyg 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 O0sIncEGGJG8; Thu, 6 Oct 2016 00:10:20 +0200 (CEST) Received: by greensocs.com (Postfix, from userid 998) id 4BF7F37BD5D; Thu, 6 Oct 2016 00:10:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1475705420; bh=NrxKnVa7ey0vClmTHGcsfF/8kfaxOrp+lnQxm023BZ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=pRgTCWygnw2WgfsMxgalmhKqXg5IIOp846CmNcpak6TJeeNX5sf/Ecae+AxfT9GBE aBWjPgJRJNPlx3by5niI9/d50G2MGrOo4olCKgHOmfcNmvE/NvieY4aFTkdYAho7Mc OBPUfIoYO3ACAazlQcjclA9Osj8gGqV1En4gsRHQ= Received: from asus.localdomain (localhost [IPv6:::1]) (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 8821237BD23; Thu, 6 Oct 2016 00:10:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1475705420; bh=NrxKnVa7ey0vClmTHGcsfF/8kfaxOrp+lnQxm023BZ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=pRgTCWygnw2WgfsMxgalmhKqXg5IIOp846CmNcpak6TJeeNX5sf/Ecae+AxfT9GBE aBWjPgJRJNPlx3by5niI9/d50G2MGrOo4olCKgHOmfcNmvE/NvieY4aFTkdYAho7Mc OBPUfIoYO3ACAazlQcjclA9Osj8gGqV1En4gsRHQ= From: fred.konrad@greensocs.com To: qemu-devel@nongnu.org Date: Thu, 6 Oct 2016 00:11:03 +0200 Message-Id: <1475705464-27130-10-git-send-email-fred.konrad@greensocs.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1475705464-27130-1-git-send-email-fred.konrad@greensocs.com> References: <1475705464-27130-1-git-send-email-fred.konrad@greensocs.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 193.104.36.180 Subject: [Qemu-devel] [PATCH V1 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, fred.konrad@greensocs.com, mark.burton@greensocs.com, alistair.francis@xilinx.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 0d86ba3..05cf99b 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) @@ -422,6 +427,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;