[U-Boot] Micrel Controller KSZ8841-16MBL

Douglas Lopes Pereira douglaslopespereira at gmail.com
Tue Jun 15 16:24:05 CEST 2010


Hi all,

I managed to get KS8841 driver recognized by u-boot. But I'm certain that it
was not in the correct way.

The driver I've found on BlackFin forum was written for a 2008 u-boot
version and we are working on a 1.3.1 (very old) version. So I just modify
some function calls.

The problem is that the KS8841 driver does not have a ks884x_initialize
function. So we created it. All it does is create and fill an eth_device
structure. Register it using eth_register function and them it should
initialize the PHY (that is what I suppose it should do).

Since I am not sure on how to do that, I just called the ks884x_init
function.

It ends in a TRAP message just after the Micrel device being printed at the
console.

Could anyone point me out some directions to get my driver correctly
initialized?

Thanks for your time.

Regards,
Douglas

On Sun, Jun 13, 2010 at 1:18 AM, Ben Warren <biggerbadderben at gmail.com>wrote:

>
>
> On Sat, Jun 12, 2010 at 7:35 PM, Mike Frysinger <vapier at gentoo.org> wrote:
>
>> On Thu, Jun 10, 2010 at 3:18 PM, Ben Warren wrote:
>> > Huh? drivers/net/phy does exist...  But the KS8841 is a MAC/PHY, so
>> > belongs in driver/net proper.
>>
>> unrelated, but the current phy/ subdir isnt a phylib setup like linux,
>> right ?
>>
> Not yet.
>
>> -mike
>>
> --Ben


More information about the U-Boot mailing list