
-----Original Message----- From: Tom Rini [mailto:tom.rini@gmail.com] On Behalf Of Rini, Tom Sent: Friday, March 28, 2014 11:50 AM To: Karicheri, Muralidharan Cc: u-boot@lists.denx.de; Kwok, WingMan Subject: Re: [U-Boot] [RESEND PATCH v3 2/2] keystone2: net: add keystone ethernet driver
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@ti.com Signed-off-by: Murali Karicheri m-karicheri2@ti.com Signed-off-by: WingMan Kwok w-kwok2@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,
I did a scan of arch/arm/include/asm/io.h. I can't find a read/modify/write function. Am I missing something?
Murali
-- Tom