Hi David,

We did not find following code snipest in our kernel :

psc = 26; /* To get 1MHz clock */
clk = ((i2c_davinci_inputClock/(psc + 1)) / (i2c_davinci_busFreq * 1000)) -
10;

If you are having "drivers/busses/i2c-davinci.c" file that is availaable on
"http://git.kernel.org/?p=linux/kernel/git/khilman/linux-davinci.git
" , then please send it to me, so that I can compare that file to my existing 
file.

In fact, we have one git kernel and in that we found the following code.

 /* get minimum of 7 MHz clock, but max of 12 MHz */
        psc = (input_clock / 7000000) - 1;
        if ((input_clock / (psc + 1)) > 12000000)
                psc++;  /* better to run under spec than over */
        d = (psc >= 2) ? 5 : 7 - psc;

        clk = ((input_clock / (psc + 1)) / (pdata->bus_freq * 1000)) - (d << 1);
        clkh = clk >> 1;
        clkl = clk - clkh;


We tried to use this code in "drivers/busses/i2c-davinci.c". But still we are
getting the same error. So as per your knowledge will this be useful and if yes
then please guide us to insert this code in our kernel.

Regards,

Dhaval Lakkad

-- 
_____________________________________________________________________
Disclaimer: This e-mail message and all attachments transmitted with it
are intended solely for the use of the addressee and may contain legally
privileged and confidential information. If the reader of this message
is not the intended recipient, or an employee or agent responsible for
delivering this message to the intended recipient, you are hereby
notified that any dissemination, distribution, copying, or other use of
this message or its attachments is strictly prohibited. If you have
received this message in error, please notify the sender immediately by
replying to this message and please delete it from your computer. Any
views expressed in this message are those of the individual sender
unless otherwise stated.Company has taken enough precautions to prevent
the spread of viruses. However the company accepts no liability for any
damage caused by any virus transmitted by this email.
__________________________________________________________________________
 

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to