* [U-Boot] [PATCH] 85xx: Using proper I2C source clock divider for MPC8544
@ 2008-09-30 8:55 Wolfgang Grandegger
2008-10-10 3:30 ` Kumar Gala
0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Grandegger @ 2008-09-30 8:55 UTC (permalink / raw)
To: u-boot
Measurements with our MPC8544 board showed that the I2C bus frequency
is wrong by a factor of 1.5. Obviously, the interpretation of the
MPC85xx_PORDEVSR2_SEC_CFG bit of the cfg_sec_freq register is not
correct. There seems to be an error in the 8544 RM.
Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
---
cpu/mpc85xx/speed.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: u-boot/cpu/mpc85xx/speed.c
===================================================================
--- u-boot.orig/cpu/mpc85xx/speed.c
+++ u-boot/cpu/mpc85xx/speed.c
@@ -101,9 +101,9 @@ int get_clocks (void)
* PORDEVSR2_SEC_CFG bit is 0 on all 85xx boards that are not an 8544.
*/
if (gur->pordevsr2 & MPC85xx_PORDEVSR2_SEC_CFG)
- gd->i2c1_clk = sys_info.freqSystemBus / 3;
- else
gd->i2c1_clk = sys_info.freqSystemBus / 2;
+ else
+ gd->i2c1_clk = sys_info.freqSystemBus / 3;
#else
/* Most 85xx SOCs use CCB/2, so this is the default behavior. */
gd->i2c1_clk = sys_info.freqSystemBus / 2;
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH] 85xx: Using proper I2C source clock divider for MPC8544
2008-09-30 8:55 [U-Boot] [PATCH] 85xx: Using proper I2C source clock divider for MPC8544 Wolfgang Grandegger
@ 2008-10-10 3:30 ` Kumar Gala
2008-10-10 7:29 ` Wolfgang Grandegger
0 siblings, 1 reply; 10+ messages in thread
From: Kumar Gala @ 2008-10-10 3:30 UTC (permalink / raw)
To: u-boot
On Sep 30, 2008, at 3:55 AM, Wolfgang Grandegger wrote:
> Measurements with our MPC8544 board showed that the I2C bus frequency
> is wrong by a factor of 1.5. Obviously, the interpretation of the
> MPC85xx_PORDEVSR2_SEC_CFG bit of the cfg_sec_freq register is not
> correct. There seems to be an error in the 8544 RM.
>
> Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
> ---
> cpu/mpc85xx/speed.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
can you do me a favor and dump the value of MPC85xx_PORDEVSR2. Also
can you tell me what rev 8544 you have.
- k
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH] 85xx: Using proper I2C source clock divider for MPC8544
2008-10-10 3:30 ` Kumar Gala
@ 2008-10-10 7:29 ` Wolfgang Grandegger
2008-10-10 14:09 ` Kumar Gala
0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Grandegger @ 2008-10-10 7:29 UTC (permalink / raw)
To: u-boot
Kumar Gala wrote:
> On Sep 30, 2008, at 3:55 AM, Wolfgang Grandegger wrote:
>
>> Measurements with our MPC8544 board showed that the I2C bus frequency
>> is wrong by a factor of 1.5. Obviously, the interpretation of the
>> MPC85xx_PORDEVSR2_SEC_CFG bit of the cfg_sec_freq register is not
>> correct. There seems to be an error in the 8544 RM.
>>
>> Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
>> ---
>> cpu/mpc85xx/speed.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> can you do me a favor and dump the value of MPC85xx_PORDEVSR2. Also
> can you tell me what rev 8544 you have.
See below:
pordevsr2 at e00e0014=0x8f00007d
CPU: 8544E, Version: 1.1, (0x803c0111)
Core: E500, Version: 2.2, (0x80210022)
Clock Configuration:
CPU: 667 MHz, CCB: 334 MHz,
DDR: 167 MHz (334 MT/s data rate), LBC: 41 MHz
L1: D-cache 32 kB enabled
I-cache 32 kB enabled
Board: Socrates
Wolfgang.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH] 85xx: Using proper I2C source clock divider for MPC8544
2008-10-10 7:29 ` Wolfgang Grandegger
@ 2008-10-10 14:09 ` Kumar Gala
2008-10-10 15:16 ` Wolfgang Grandegger
2008-10-14 19:11 ` Wolfgang Grandegger
0 siblings, 2 replies; 10+ messages in thread
From: Kumar Gala @ 2008-10-10 14:09 UTC (permalink / raw)
To: u-boot
On Oct 10, 2008, at 2:29 AM, Wolfgang Grandegger wrote:
> Kumar Gala wrote:
>> On Sep 30, 2008, at 3:55 AM, Wolfgang Grandegger wrote:
>>
>>> Measurements with our MPC8544 board showed that the I2C bus
>>> frequency
>>> is wrong by a factor of 1.5. Obviously, the interpretation of the
>>> MPC85xx_PORDEVSR2_SEC_CFG bit of the cfg_sec_freq register is not
>>> correct. There seems to be an error in the 8544 RM.
>>>
>>> Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
>>> ---
>>> cpu/mpc85xx/speed.c | 4 ++--
>>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> can you do me a favor and dump the value of MPC85xx_PORDEVSR2. Also
>> can you tell me what rev 8544 you have.
>
> See below:
>
> pordevsr2 at e00e0014=0x8f00007d
>
> CPU: 8544E, Version: 1.1, (0x803c0111)
> Core: E500, Version: 2.2, (0x80210022)
> Clock Configuration:
> CPU: 667 MHz, CCB: 334 MHz,
> DDR: 167 MHz (334 MT/s data rate), LBC: 41 MHz
> L1: D-cache 32 kB enabled
> I-cache 32 kB enabled
> Board: Socrates
>
> Wolfgang.
thanks. How did you do the measurements that got you this 1.5x factor?
- k
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH] 85xx: Using proper I2C source clock divider for MPC8544
2008-10-10 14:09 ` Kumar Gala
@ 2008-10-10 15:16 ` Wolfgang Grandegger
2008-10-14 19:11 ` Wolfgang Grandegger
1 sibling, 0 replies; 10+ messages in thread
From: Wolfgang Grandegger @ 2008-10-10 15:16 UTC (permalink / raw)
To: u-boot
Kumar Gala wrote:
> On Oct 10, 2008, at 2:29 AM, Wolfgang Grandegger wrote:
>
>> Kumar Gala wrote:
>>> On Sep 30, 2008, at 3:55 AM, Wolfgang Grandegger wrote:
>>>
>>>> Measurements with our MPC8544 board showed that the I2C bus
>>>> frequency
>>>> is wrong by a factor of 1.5. Obviously, the interpretation of the
>>>> MPC85xx_PORDEVSR2_SEC_CFG bit of the cfg_sec_freq register is not
>>>> correct. There seems to be an error in the 8544 RM.
>>>>
>>>> Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
>>>> ---
>>>> cpu/mpc85xx/speed.c | 4 ++--
>>>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>> can you do me a favor and dump the value of MPC85xx_PORDEVSR2. Also
>>> can you tell me what rev 8544 you have.
>> See below:
>>
>> pordevsr2 at e00e0014=0x8f00007d
>>
>> CPU: 8544E, Version: 1.1, (0x803c0111)
>> Core: E500, Version: 2.2, (0x80210022)
>> Clock Configuration:
>> CPU: 667 MHz, CCB: 334 MHz,
>> DDR: 167 MHz (334 MT/s data rate), LBC: 41 MHz
>> L1: D-cache 32 kB enabled
>> I-cache 32 kB enabled
>> Board: Socrates
>>
>> Wolfgang.
>
> thanks. How did you do the measurements that got you this 1.5x factor?
Actually, this problem was reported by a customer using the I2C bus on
the MPC8544E intensively. I'm going to find out how he did the measurements.
Wolfgang.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH] 85xx: Using proper I2C source clock divider for MPC8544
2008-10-14 19:11 ` Wolfgang Grandegger
@ 2008-10-14 19:10 ` Kumar Gala
2008-10-14 19:25 ` Wolfgang Grandegger
0 siblings, 1 reply; 10+ messages in thread
From: Kumar Gala @ 2008-10-14 19:10 UTC (permalink / raw)
To: u-boot
On Oct 14, 2008, at 2:11 PM, Wolfgang Grandegger wrote:
> Kumar Gala wrote:
>> On Oct 10, 2008, at 2:29 AM, Wolfgang Grandegger wrote:
>>
>>> Kumar Gala wrote:
>>>> On Sep 30, 2008, at 3:55 AM, Wolfgang Grandegger wrote:
>>>>
>>>>> Measurements with our MPC8544 board showed that the I2C bus
>>>>> frequency
>>>>> is wrong by a factor of 1.5. Obviously, the interpretation of the
>>>>> MPC85xx_PORDEVSR2_SEC_CFG bit of the cfg_sec_freq register is not
>>>>> correct. There seems to be an error in the 8544 RM.
>>>>>
>>>>> Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
>>>>> ---
>>>>> cpu/mpc85xx/speed.c | 4 ++--
>>>>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>>> can you do me a favor and dump the value of MPC85xx_PORDEVSR2.
>>>> Also
>>>> can you tell me what rev 8544 you have.
>>> See below:
>>>
>>> pordevsr2 at e00e0014=0x8f00007d
>>>
>>> CPU: 8544E, Version: 1.1, (0x803c0111)
>>> Core: E500, Version: 2.2, (0x80210022)
>>> Clock Configuration:
>>> CPU: 667 MHz, CCB: 334 MHz,
>>> DDR: 167 MHz (334 MT/s data rate), LBC: 41 MHz
>>> L1: D-cache 32 kB enabled
>>> I-cache 32 kB enabled
>>> Board: Socrates
>>>
>>> Wolfgang.
>>
>> thanks. How did you do the measurements that got you this 1.5x
>> factor?
>
> This afternoon I re-measured the I2C bus clock frequency with the
> oscilloscope at the I2C clock line on our Socrates MPC8544 board. With
> the patch applied, I measured the correct frequency of 100 kHz.
> Without,
> it was a factor of 1.5 too high.
are you able to change cfg_seq_freq on the board?
- k
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH] 85xx: Using proper I2C source clock divider for MPC8544
2008-10-10 14:09 ` Kumar Gala
2008-10-10 15:16 ` Wolfgang Grandegger
@ 2008-10-14 19:11 ` Wolfgang Grandegger
2008-10-14 19:10 ` Kumar Gala
1 sibling, 1 reply; 10+ messages in thread
From: Wolfgang Grandegger @ 2008-10-14 19:11 UTC (permalink / raw)
To: u-boot
Kumar Gala wrote:
> On Oct 10, 2008, at 2:29 AM, Wolfgang Grandegger wrote:
>
>> Kumar Gala wrote:
>>> On Sep 30, 2008, at 3:55 AM, Wolfgang Grandegger wrote:
>>>
>>>> Measurements with our MPC8544 board showed that the I2C bus
>>>> frequency
>>>> is wrong by a factor of 1.5. Obviously, the interpretation of the
>>>> MPC85xx_PORDEVSR2_SEC_CFG bit of the cfg_sec_freq register is not
>>>> correct. There seems to be an error in the 8544 RM.
>>>>
>>>> Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
>>>> ---
>>>> cpu/mpc85xx/speed.c | 4 ++--
>>>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>> can you do me a favor and dump the value of MPC85xx_PORDEVSR2. Also
>>> can you tell me what rev 8544 you have.
>> See below:
>>
>> pordevsr2 at e00e0014=0x8f00007d
>>
>> CPU: 8544E, Version: 1.1, (0x803c0111)
>> Core: E500, Version: 2.2, (0x80210022)
>> Clock Configuration:
>> CPU: 667 MHz, CCB: 334 MHz,
>> DDR: 167 MHz (334 MT/s data rate), LBC: 41 MHz
>> L1: D-cache 32 kB enabled
>> I-cache 32 kB enabled
>> Board: Socrates
>>
>> Wolfgang.
>
> thanks. How did you do the measurements that got you this 1.5x factor?
This afternoon I re-measured the I2C bus clock frequency with the
oscilloscope at the I2C clock line on our Socrates MPC8544 board. With
the patch applied, I measured the correct frequency of 100 kHz. Without,
it was a factor of 1.5 too high.
Wolfgang.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH] 85xx: Using proper I2C source clock divider for MPC8544
2008-10-14 19:10 ` Kumar Gala
@ 2008-10-14 19:25 ` Wolfgang Grandegger
2008-10-14 21:04 ` Kumar Gala
0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Grandegger @ 2008-10-14 19:25 UTC (permalink / raw)
To: u-boot
Kumar Gala wrote:
>
> On Oct 14, 2008, at 2:11 PM, Wolfgang Grandegger wrote:
>
>> Kumar Gala wrote:
>>> On Oct 10, 2008, at 2:29 AM, Wolfgang Grandegger wrote:
>>>
>>>> Kumar Gala wrote:
>>>>> On Sep 30, 2008, at 3:55 AM, Wolfgang Grandegger wrote:
>>>>>
>>>>>> Measurements with our MPC8544 board showed that the I2C bus
>>>>>> frequency
>>>>>> is wrong by a factor of 1.5. Obviously, the interpretation of the
>>>>>> MPC85xx_PORDEVSR2_SEC_CFG bit of the cfg_sec_freq register is not
>>>>>> correct. There seems to be an error in the 8544 RM.
>>>>>>
>>>>>> Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
>>>>>> ---
>>>>>> cpu/mpc85xx/speed.c | 4 ++--
>>>>>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>>>> can you do me a favor and dump the value of MPC85xx_PORDEVSR2. Also
>>>>> can you tell me what rev 8544 you have.
>>>> See below:
>>>>
>>>> pordevsr2 at e00e0014=0x8f00007d
>>>>
>>>> CPU: 8544E, Version: 1.1, (0x803c0111)
>>>> Core: E500, Version: 2.2, (0x80210022)
>>>> Clock Configuration:
>>>> CPU: 667 MHz, CCB: 334 MHz,
>>>> DDR: 167 MHz (334 MT/s data rate), LBC: 41 MHz
>>>> L1: D-cache 32 kB enabled
>>>> I-cache 32 kB enabled
>>>> Board: Socrates
>>>>
>>>> Wolfgang.
>>>
>>> thanks. How did you do the measurements that got you this 1.5x factor?
>>
>> This afternoon I re-measured the I2C bus clock frequency with the
>> oscilloscope at the I2C clock line on our Socrates MPC8544 board. With
>> the patch applied, I measured the correct frequency of 100 kHz. Without,
>> it was a factor of 1.5 too high.
>
> are you able to change cfg_seq_freq on the board?
At least I don't know how. It's defined via hardware strap, I imagine.
Wolfgang.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH] 85xx: Using proper I2C source clock divider for MPC8544
2008-10-14 19:25 ` Wolfgang Grandegger
@ 2008-10-14 21:04 ` Kumar Gala
2008-10-14 21:38 ` Wolfgang Grandegger
0 siblings, 1 reply; 10+ messages in thread
From: Kumar Gala @ 2008-10-14 21:04 UTC (permalink / raw)
To: u-boot
>>>> thanks. How did you do the measurements that got you this 1.5x
>>>> factor?
>>>
>>> This afternoon I re-measured the I2C bus clock frequency with the
>>> oscilloscope at the I2C clock line on our Socrates MPC8544 board.
>>> With
>>> the patch applied, I measured the correct frequency of 100 kHz.
>>> Without,
>>> it was a factor of 1.5 too high.
>>
>> are you able to change cfg_seq_freq on the board?
>
> At least I don't know how. It's defined via hardware strap, I imagine.
Its is.. not sure if you have schematics for the board. If you do
look to see if LWE_B is wired to anything.
- k
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH] 85xx: Using proper I2C source clock divider for MPC8544
2008-10-14 21:04 ` Kumar Gala
@ 2008-10-14 21:38 ` Wolfgang Grandegger
0 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Grandegger @ 2008-10-14 21:38 UTC (permalink / raw)
To: u-boot
Kumar Gala wrote:
>>>>> thanks. How did you do the measurements that got you this 1.5x
>>>>> factor?
>>>> This afternoon I re-measured the I2C bus clock frequency with the
>>>> oscilloscope at the I2C clock line on our Socrates MPC8544 board.
>>>> With
>>>> the patch applied, I measured the correct frequency of 100 kHz.
>>>> Without,
>>>> it was a factor of 1.5 too high.
>>> are you able to change cfg_seq_freq on the board?
>> At least I don't know how. It's defined via hardware strap, I imagine.
>
> Its is.. not sure if you have schematics for the board. If you do
> look to see if LWE_B is wired to anything.
I'm going to ask the customer. But even if it's wired, the bit in the
cfg_sec_freq register should reflect properly that case.
Wolfgang.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-10-14 21:38 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-30 8:55 [U-Boot] [PATCH] 85xx: Using proper I2C source clock divider for MPC8544 Wolfgang Grandegger
2008-10-10 3:30 ` Kumar Gala
2008-10-10 7:29 ` Wolfgang Grandegger
2008-10-10 14:09 ` Kumar Gala
2008-10-10 15:16 ` Wolfgang Grandegger
2008-10-14 19:11 ` Wolfgang Grandegger
2008-10-14 19:10 ` Kumar Gala
2008-10-14 19:25 ` Wolfgang Grandegger
2008-10-14 21:04 ` Kumar Gala
2008-10-14 21:38 ` Wolfgang Grandegger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox