Commit b68fc09b authored by Quentin Schulz's avatar Quentin Schulz Committed by David S. Miller
Browse files

dt-bindings: add constants for Microsemi Ocelot SerDes driver



The Microsemi Ocelot has multiple SerDes and requires that the SerDes be
muxed accordingly to the hardware representation.

Let's add a constant for each SerDes available in the Microsemi Ocelot.

Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarQuentin Schulz <quentin.schulz@bootlin.com>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1d6a632c
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
/* Copyright (c) 2018 Microsemi Corporation */
#ifndef __PHY_OCELOT_SERDES_H__
#define __PHY_OCELOT_SERDES_H__

#define SERDES1G(x)	(x)
#define SERDES1G_MAX	SERDES1G(5)
#define SERDES6G(x)	(SERDES1G_MAX + 1 + (x))
#define SERDES6G_MAX	SERDES6G(2)
#define SERDES_MAX	SERDES6G_MAX

#endif