]> git.baikalelectronics.ru Git - uboot.git/commit
net: ti: cpsw-common: Isolate getting syscon address from assigning macid
authorFaiz Abbas <faiz_abbas@ti.com>
Mon, 18 Mar 2019 08:24:34 +0000 (13:54 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 12 Apr 2019 12:05:53 +0000 (08:05 -0400)
commit9f433f3c8549d5a3a7b4f01d7abdc31c7c410af3
tree8048564b0f4fd796276b4d6e406798025693e95e
parentc0701b0bdc5e5aa5772f3eaee1ae77cc7fad6ece
net: ti: cpsw-common: Isolate getting syscon address from assigning macid

ti_cm_get_macid() is used to get a syscon node from the dt, read the
efuse address and then assign the macid read from the address. Divide
these two steps into separate functions one of which can be called from
ofdata_to_platdata() while the other can be called from _probe(). This
ensures that platdata can be assigned statically in a board file when
OF_CONTROL is not enabled. Also add a macid_sel_compat in private data
to get information about the macid byte placement.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
drivers/net/ti/cpsw-common.c
drivers/net/ti/cpsw.c
include/cpsw.h