/* Configure port to working with Gig PCS or don't.  */
static int gop_gpcs_mode_cfg(struct mvpp2_port *port, int en)
/* Configure port to working with Gig PCS or don't.  */
static int gop_gpcs_mode_cfg(struct mvpp2_port *port, int en)
{
	u32 val;
	val = readl(port->base + MVPP2_GMAC_CTRL_2_REG);
	if (en)
		val |= MVPP2_GMAC_PCS_ENABLE_MASK;
	else
		val &= ~MVPP2_GMAC_PCS_ENABLE_MASK;
	writel(val, port->base + MVPP2_GMAC_CTRL_2_REG);
	return 0;
}