powerpc/t1040rdb: added a break in switch case
authorShaohui Xie <Shaohui.Xie@freescale.com>
Fri, 11 Apr 2014 04:12:30 +0000 (12:12 +0800)
committerYork Sun <yorksun@freescale.com>
Wed, 23 Apr 2014 00:58:52 +0000 (17:58 -0700)
There should be a break for case PHY_INTERFACE_MODE_SGMII, otherwise it
will fall into case PHY_INTERFACE_MODE_RGMII.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
board/freescale/t104xrdb/eth.c

index 0188fd4090bf88bd8b253360c81a92cf84846d39..63e5f900da73ec45b1b29b24ba8b21c01dd7d906 100644 (file)
@@ -41,6 +41,7 @@ int board_eth_init(bd_t *bis)
                        /* T1040RDB only supports SGMII on DTSEC3 */
                        fm_info_set_phy_address(FM1_DTSEC3,
                                                CONFIG_SYS_SGMII1_PHY_ADDR);
+                       break;
 #endif
                case PHY_INTERFACE_MODE_RGMII:
                        if (FM1_DTSEC4 == i)