[U-Boot] [RESEND PATCH v3 2/2] keystone2: net: add keystone ethernet driver

Tom Rini trini at ti.com
Fri Mar 28 16:49:43 CET 2014


On Fri, Mar 21, 2014 at 05:01:43PM -0400, Murali Karicheri wrote:

> Ethernet driver configures the CPSW, SGMI and Phy and uses
> the the Navigator APIs. The driver supports 4 Ethernet ports and
> can work with only one port at a time.
> 
> Port configurations are defined in board.c.
> 
> Signed-off-by: Vitaly Andrianov <vitalya at ti.com>
> Signed-off-by: Murali Karicheri <m-karicheri2 at ti.com>
> Signed-off-by: WingMan Kwok <w-kwok2 at ti.com>
[snip]
> +#define reg_rmw(addr, value, mask) \
> +	writel(((readl(addr) & (~(mask))) | (value)), (addr))

Don't we have something in asm/io.h that does this already?

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140328/775986bf/attachment.pgp>


More information about the U-Boot mailing list