Skip to content

Commit

Permalink
dt-bindings: add constants for Microsemi Ocelot SerDes driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Quentin Schulz authored and David S. Miller committed Oct 5, 2018
1 parent 1d6a632 commit b68fc09
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions include/dt-bindings/phy/phy-ocelot-serdes.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* 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

0 comments on commit b68fc09

Please sign in to comment.