init.c (42817eb85de1d7dec399c75dbd133ea6b5351a72) init.c (cc19c25e2752bb8b446463eb627e258e659d73d9)
1/*
2 * Copyright 2011 Freescale Semiconductor, Inc.
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6#include <common.h>
7#include <asm/io.h>
8#include <asm/fsl_serdes.h>

--- 240 unchanged lines hidden (view full) ---

249#ifdef CONFIG_SYS_FMAN_V3
250 /*
251 * Physically FM1_DTSEC9 and FM1_10GEC1 use the same dual-role MAC, when
252 * FM1_10GEC1 is enabled and FM1_DTSEC9 is disabled, ensure that the
253 * dual-role MAC is not disabled, ditto for other dual-role MACs.
254 */
255 if (((info->port == FM1_DTSEC9) && (PORT_IS_ENABLED(FM1_10GEC1))) ||
256 ((info->port == FM1_DTSEC10) && (PORT_IS_ENABLED(FM1_10GEC2))) ||
1/*
2 * Copyright 2011 Freescale Semiconductor, Inc.
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6#include <common.h>
7#include <asm/io.h>
8#include <asm/fsl_serdes.h>

--- 240 unchanged lines hidden (view full) ---

249#ifdef CONFIG_SYS_FMAN_V3
250 /*
251 * Physically FM1_DTSEC9 and FM1_10GEC1 use the same dual-role MAC, when
252 * FM1_10GEC1 is enabled and FM1_DTSEC9 is disabled, ensure that the
253 * dual-role MAC is not disabled, ditto for other dual-role MACs.
254 */
255 if (((info->port == FM1_DTSEC9) && (PORT_IS_ENABLED(FM1_10GEC1))) ||
256 ((info->port == FM1_DTSEC10) && (PORT_IS_ENABLED(FM1_10GEC2))) ||
257 ((info->port == FM1_DTSEC1) && (PORT_IS_ENABLED(FM1_10GEC1))) ||
257 ((info->port == FM1_DTSEC1) && (PORT_IS_ENABLED(FM1_10GEC3))) ||
258 ((info->port == FM1_DTSEC2) && (PORT_IS_ENABLED(FM1_10GEC4))) ||
258 ((info->port == FM1_DTSEC1) && (PORT_IS_ENABLED(FM1_10GEC3))) ||
259 ((info->port == FM1_DTSEC2) && (PORT_IS_ENABLED(FM1_10GEC4))) ||
260 ((info->port == FM1_10GEC1) && (PORT_IS_ENABLED(FM1_DTSEC1))) ||
259 ((info->port == FM1_10GEC1) && (PORT_IS_ENABLED(FM1_DTSEC9))) ||
260 ((info->port == FM1_10GEC2) && (PORT_IS_ENABLED(FM1_DTSEC10))) ||
261 ((info->port == FM1_10GEC3) && (PORT_IS_ENABLED(FM1_DTSEC1))) ||
262 ((info->port == FM1_10GEC4) && (PORT_IS_ENABLED(FM1_DTSEC2)))
263#if (CONFIG_SYS_NUM_FMAN == 2)
264 ||
265 ((info->port == FM2_DTSEC9) && (PORT_IS_ENABLED(FM2_10GEC1))) ||
266 ((info->port == FM2_DTSEC10) && (PORT_IS_ENABLED(FM2_10GEC2))) ||

--- 79 unchanged lines hidden ---
261 ((info->port == FM1_10GEC1) && (PORT_IS_ENABLED(FM1_DTSEC9))) ||
262 ((info->port == FM1_10GEC2) && (PORT_IS_ENABLED(FM1_DTSEC10))) ||
263 ((info->port == FM1_10GEC3) && (PORT_IS_ENABLED(FM1_DTSEC1))) ||
264 ((info->port == FM1_10GEC4) && (PORT_IS_ENABLED(FM1_DTSEC2)))
265#if (CONFIG_SYS_NUM_FMAN == 2)
266 ||
267 ((info->port == FM2_DTSEC9) && (PORT_IS_ENABLED(FM2_10GEC1))) ||
268 ((info->port == FM2_DTSEC10) && (PORT_IS_ENABLED(FM2_10GEC2))) ||

--- 79 unchanged lines hidden ---