From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lvps87-230-0-242.dedicated.hosteurope.de (lvps87-230-0-242.dedicated.hosteurope.de [87.230.0.242]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "plesk", Issuer "plesk" (not verified)) by ozlabs.org (Postfix) with ESMTPS id B214BDDDF3 for ; Thu, 5 Mar 2009 18:42:01 +1100 (EST) MIME-Version: 1.0 Date: Thu, 05 Mar 2009 08:41:55 +0100 From: Michael Guntsche To: Grant Likely Subject: Re: PHY not found after migration of gianfar driver to an =?UTF-8?Q?of=5Fplatform=5Fdriver?= In-Reply-To: References: <9d38520266f15d80352d1554e63c1ce6@localhost> <7AC161D8-83A8-4330-A2CF-3120F15D9038@it-loops.com> <68DDAAA9-42AF-4E9C-907C-7D3269816184@it-loops.com> Message-ID: <20e286be3bc61f03018fc94366e6fd01@localhost> Content-Type: text/plain; charset="UTF-8" Cc: linuxppc-dev List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 4 Mar 2009 08:57:59 -0700, Grant Likely wrote: > You might be able to use of_attach_node() & prom_add_property() to > modify the tree, but I've never done it myself. Give it a try and > tell me if it works. :-) > Hello Grant, I made some progress in this area, but I have now hit a problem I do not know how to solve. Taking code from the iseries/vio.c files I am able to add properties with add_string_property and add_raw_property. The problem I have is adding properties like reg = <0x2520 0x20> I know how to add a property reg = <0x2520> but I do not know what data structure to pass to add_raw_property to add two numbers there. Kind regards, Michael