]> git.sur5r.net Git - u-boot/commit
net/fm: fix MDIO controller base on FMAN2
authorShaohui Xie <Shaohui.Xie@freescale.com>
Mon, 26 Oct 2015 11:47:49 +0000 (19:47 +0800)
committerYork Sun <yorksun@freescale.com>
Thu, 29 Oct 2015 17:34:00 +0000 (10:34 -0700)
commit23e1acaf4b2863917247a925c81f6ce5a4eadcc2
tree206fb5d3d467be2d1f54b45bce8452fbb6388295
parentbc24611ca11e276194e1edbb71070699a98389c5
net/fm: fix MDIO controller base on FMAN2

MDIO controller base on FMAN2 was defined as CONFIG_SYS_FSL_FM2_ADDR
plus offset, but CONFIG_SYS_FSL_FM2_ADDR only defined when there are two
FMANs, so we should only define MDIO controller base on FMAN2 when there
is FMAN2.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: Mingkai Hu <Mingkai.Hu@freescale.com>
Signed-off-by: Gong Qianyu <Qianyu.Gong@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
include/fm_eth.h