From: Wolfgang Denk Date: Wed, 17 Nov 2010 00:29:17 +0100 Subject: [U-Boot] [PATCH] powerpc/85xx: compare actual device addresses with the device tree In-Reply-To: <4CE30FE1.2010806@freescale.com> References: <1289343709-11793-1-git-send-email-timur@freescale.com> <20101110195113.3A7871522C0@gemini.denx.de> <4CDAFC37.40309@freescale.com> <20101110203451.550DD1522C0@gemini.denx.de> <4CDB0686.300@freescale.com> <20101110211312.EFBEAB195@gemini.denx.de> <4CE302A5.8070608@freescale.com> <20101116231035.90B7E14EA7E@gemini.denx.de> <4CE30FE1.2010806@freescale.com> Message-ID: <20101116232917.67BE314E645@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Timur Tabi, In message <4CE30FE1.2010806@freescale.com> you wrote: > > Ok, I can do it this way, but 99% of the code will be CPU-specific. The whole > point behind the function is to compare the device tree numbers with the > physical addresses of the actual devices in hardware. Maybe this can be implemented in a largely CPU independent way? Try to make it data-driven, so you can then for example just provide a CPU-specific data sructure (array of names / addresses or whatever you are checking). > Do you want the default weak functions to say something like "not implemented", > or just do nothing at all? No news is good news. Make them silent, please. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Why can you only have two doors on a chicken coop? If it had four it would be a chicken sedan.