Re: [PATCH] powerpc/boot: cuboot: Fix up ethernet3 MAC address on MPC85xx

2009-06-10 Thread Nathaniel Case
On Wed, 10 Jun 2009 21:54:01 -0500, Kumar Gala 
wrote:
>> #define TARGET_85xx
>> +#define TARGET_HAS_ETH3
> 
> This is problematic in that we'd be changing the memory layout of the  
> bd_t and not ALL 85xx's have HAS_ETH3 set.

It shouldn't be problematic.  The bi_enet3addr field is at the end of the
structure on MPC85xx.  The only fields after it in ppcboot.h are
4xx-specific
fields.  I believe the MAC addresses were placed at the end of the struct
for
this very reason.

-- 
Nate Case 
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Re: [PATCH 2/2] USB: isp1760: Support board-specific hardware configurations

2008-05-22 Thread Nathaniel Case
On Thu, 2008-05-22 at 17:35 +0200, Sebastian Siewior wrote:
> If you don't mind, I would prefer having ISP1760_FLAG_BUS_WIDTH_32 and
> or conditionally HW_DATA_BUS_32BIT.

It doesn't matter much to me -- I just reasoned that a 32-bit bus width
was the norm since it's the hardware default and so having a flags=0
would be desirable for that case.  Did you have something else in mind?

> Why do you have to read the chip id here? Is this a dummy read to ensure
> something?

The idea is to force the data bus lines to change states to protect
against a false success.  E.g., you read back 0xdeadbabe but it was due
to the line states from the previous write rather than coming from the
chip itself (I've seen this when you get the bus chip select or timing
configuration wrong). 

> I'm sorry, you can't solve this way. My ISP1760 claims to be an ISP1761
> this way :) So I end up with one functional port... The only way to
> distinguish between 1760 & 1761 would be at the probing level.

Yikes -- you're right.  I would have never guessed that the 1760 would
have returned 0x1761, but sure enough that's what the datasheet says.

Thanks for the feedback.

--
Nate Case <[EMAIL PROTECTED]>

___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev