Skip to content

Commit b68fc09

Browse files
QSchulzdavem330
authored andcommitted
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: Rob Herring <robh@kernel.org> Signed-off-by: Quentin Schulz <quentin.schulz@bootlin.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 1d6a632 commit b68fc09

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
2+
/* Copyright (c) 2018 Microsemi Corporation */
3+
#ifndef __PHY_OCELOT_SERDES_H__
4+
#define __PHY_OCELOT_SERDES_H__
5+
6+
#define SERDES1G(x) (x)
7+
#define SERDES1G_MAX SERDES1G(5)
8+
#define SERDES6G(x) (SERDES1G_MAX + 1 + (x))
9+
#define SERDES6G_MAX SERDES6G(2)
10+
#define SERDES_MAX SERDES6G_MAX
11+
12+
#endif

0 commit comments

Comments
 (0)