[Arm-netbook] Mele A1000 ethernet

Jorgen Lundman lundman at lundman.net
Wed Jul 25 01:23:02 BST 2012



>   so the subtle changes in registers etc. may be to do with how they
> had to connect the "standard" DM9000 circuits onto an AHB/AMBA bus.
> is there a lot of zero-padding for example?  i haven't looked at the
> code, but are the registers by any chance all addressed as 8-bit
> quantities spaced out on 32-bit or 64-bit boundaries with zeros in
> between?  if so, it means that they literally just dropped the
> DM9000's 8-bit bus directly onto a 32-bit (or 64-bit) AHB/AMBA data
> bus!
>

That was indeed my thought when working with both sources. dm9000 would 
write a byte, on 8 bit alignment. Whereas wemac would write a byte on 32bit 
alignment, and leave 3 bytes alone. (sometimes)

All calls used are indeed readl/writel, and the register offsets in the 
header is nicely *4.  Suppose that explains nicely why dm9000 and wemac 
registers do differs (but perhaps not as badly as I initially thought)

It even writes the MAC address with 32bit calls, and not like the dm9000 
with a byte at a time.

Lund

-- 
Jorgen Lundman       | <lundman at lundman.net>
Unix Administrator   | +81 (0)3 -5456-2687 ext 1017 (work)
Shibuya-ku, Tokyo    | +81 (0)90-5578-8500          (cell)
Japan                | +81 (0)3 -3375-1767          (home)



More information about the arm-netbook mailing list