From nobody Thu Dec 18 17:55:28 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1594649550; cv=none; d=zohomail.com; s=zohoarc; b=PSXbLJl6KgweaCTiNaaA5MoG0cg796rRaSIuY0/bkx/aANfYAKV8us253WdhaqMwPQKpOCbjvXGvL/Cdiq23+Gavv0+ZnU38rnBVPHY2EZsT0dmKFEvyDancNyxLqVGL9nuWA+5yUc7C+x9k1ofVEcWsx93NwSID+92Xfa/FAnI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594649550; h=Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ThbookUz1zgsdvCKld312FzMkynGTVCEmFDPRgdidJc=; b=BIMBWz9JWNvjHflrAOIwjjiPDBqhC37BSJ4OyoCElXNIjIMaFRQXzyADGeGwRGO3Si1XcXNrdeHHjhQv4xDS/nZGfBNKgatC7uOVOwHspx2GxddxbwCwibqiTRT+S+ELcwSgN1z9ydo10vTgRYqkAi7ZsEGvcJIXDGVVYi/M7ME= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1594649550326330.59405608532074; Mon, 13 Jul 2020 07:12:30 -0700 (PDT) Received: from localhost ([::1]:51006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1juzC1-0006k1-3D for importer@patchew.org; Mon, 13 Jul 2020 10:12:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35018) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juzAo-0004vC-19 for qemu-devel@nongnu.org; Mon, 13 Jul 2020 10:11:14 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:51354) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1juzAm-0006c3-9L for qemu-devel@nongnu.org; Mon, 13 Jul 2020 10:11:13 -0400 Received: by mail-wm1-x331.google.com with SMTP id 22so13464976wmg.1 for ; Mon, 13 Jul 2020 07:11:11 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id c136sm24031297wmd.10.2020.07.13.07.11.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 07:11:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=ThbookUz1zgsdvCKld312FzMkynGTVCEmFDPRgdidJc=; b=WO6+T7xVUb+gHhYwaQj8LyFgWWriMtvap0ZmQ/asqALD0XK0TWPBod5ylUg1bAwU3N pf5aYrzrgvOBPHnaAJjAv4X+jyT6yyOh+3GR5zW7UY6l29QKo/ZC1+crC/lSSDL7aKeT OuDAKEVAvsjDLQs+7+o7XiGEi2gkQ4Adj91aM+VOkpQsTBGypHMxiat97Jd2ABO3rrmR FG4rORazyVDwbwQuQV6Flv+PCf9SyWwtmdNb6va1naJ0tbNoV9P/vFtYzQ5ldkbnO6oo 4V47zzgtfqbHMTKckdg7oWtbV7ebugeKyJ2/KpcEVRanEhtqVhFAd9CTzUWo7hLiAzOz 1VDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ThbookUz1zgsdvCKld312FzMkynGTVCEmFDPRgdidJc=; b=uZK8BzTryJlH3F6zMgF0TIA2FuCVZvXZo3RNWpX2kCrYhziDWKrwN8FOB44D1K1GDV pHb2YSTFokAdbCL9WbqACbOkcPx/FVsFalpe6nbGZlZGMpRNZ/yjm1oGLKVs96huKjPZ TeFsdcCBHRb15JKy1diDr64gXnOGLcu8vOYR+YiqAy6U5JRXI8B+MNjWjNTxbBKzETu0 WNLvp2/G8qfrCM8x+FJTZCX4kYM73WNK6msP9cVygZss+rK+5uN488r2f9s9hn16SnKX 6HqwoAPp2NrHTZUIpo1o7bhlIMmtWljCib5g4+985mchSbpk75Moj5ZERV8eiNAbEQ1Q bi6A== X-Gm-Message-State: AOAM533zdWIWmvtV9CRaMqo8XNKKIVtdXQuQQXRvODyu3MMOXKCkJPDu rPw7q8uZqNimoCboBqQOqjQ/YBFI/gaRGQ== X-Google-Smtp-Source: ABdhPJwV4fvk4EvqSETggtljkJDYK5w9xJnfKq72BH29gJIvAMR6lE0RbDfcHjp8tkRNcqmz20fR+g== X-Received: by 2002:a1c:5459:: with SMTP id p25mr159718wmi.148.1594649470383; Mon, 13 Jul 2020 07:11:10 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 03/25] Add the ability to change the FEC PHY MDIO device number on i.MX25 processor Date: Mon, 13 Jul 2020 15:10:42 +0100 Message-Id: <20200713141104.5139-4-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200713141104.5139-1-peter.maydell@linaro.org> References: <20200713141104.5139-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x331.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" From: Jean-Christophe Dubois Signed-off-by: Jean-Christophe Dubois Message-id: 9f8923ecd974160ae8f634c275b1100c2cbe66d7.1593806826.git.jcd@tri= budubois.net Reviewed-by: Peter Maydell [PMM: updated for object_property_set_uint() argument reordering] Signed-off-by: Peter Maydell --- include/hw/arm/fsl-imx25.h | 1 + hw/arm/fsl-imx25.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/include/hw/arm/fsl-imx25.h b/include/hw/arm/fsl-imx25.h index 9e228daceae..54ee1bfd780 100644 --- a/include/hw/arm/fsl-imx25.h +++ b/include/hw/arm/fsl-imx25.h @@ -65,6 +65,7 @@ typedef struct FslIMX25State { MemoryRegion rom[2]; MemoryRegion iram; MemoryRegion iram_alias; + uint32_t phy_num; } FslIMX25State; =20 /** diff --git a/hw/arm/fsl-imx25.c b/hw/arm/fsl-imx25.c index b4ddceae45a..08a98f828fc 100644 --- a/hw/arm/fsl-imx25.c +++ b/hw/arm/fsl-imx25.c @@ -171,6 +171,7 @@ static void fsl_imx25_realize(DeviceState *dev, Error *= *errp) epit_table[i].irq)); } =20 + object_property_set_uint(OBJECT(&s->fec), "phy-num", s->phy_num, &err); qdev_set_nic_properties(DEVICE(&s->fec), &nd_table[0]); =20 if (!sysbus_realize(SYS_BUS_DEVICE(&s->fec), errp)) { @@ -315,10 +316,16 @@ static void fsl_imx25_realize(DeviceState *dev, Error= **errp) &s->iram_alias); } =20 +static Property fsl_imx25_properties[] =3D { + DEFINE_PROP_UINT32("fec-phy-num", FslIMX25State, phy_num, 0), + DEFINE_PROP_END_OF_LIST(), +}; + static void fsl_imx25_class_init(ObjectClass *oc, void *data) { DeviceClass *dc =3D DEVICE_CLASS(oc); =20 + device_class_set_props(dc, fsl_imx25_properties); dc->realize =3D fsl_imx25_realize; dc->desc =3D "i.MX25 SOC"; /* --=20 2.20.1