From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <4889EFFE.2070201@grandegger.com> Date: Fri, 25 Jul 2008 17:23:42 +0200 From: Wolfgang Grandegger MIME-Version: 1.0 To: Timur Tabi Subject: Re: [PATCH] powerpc: i2c-mpc: make speed registers configurable via FDT References: <488982B5.4070102@grandegger.com> <4889942C.4040800@scram.de> <48899736.8020400@grandegger.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: Scott Wood , Linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Timur Tabi wrote: > On Fri, Jul 25, 2008 at 8:12 AM, Grant Likely wrote: > >> Yes, please use something like clock-frequency or current-speed and do >> the calculation. > > Ditto. I already wrote the code that does that for U-Boot, so all you > need to do is port it. I know but we still need an algorithm for MPC52xx and MPC82xx as well. > Although I'm curious, if U-Boot already programs the speed, why does > the driver program it again? Maybe because it's not obvious for the driver if the registers have already been configured by the boot-loader. Wolfgang.