From 91064c7ec8b825732c2072fa8ab5cf8abb1662fe Mon Sep 17 00:00:00 2001 From: gatecat Date: Thu, 4 Mar 2021 19:37:44 +0000 Subject: [PATCH] nexus: Add pin definitions for DPHY Signed-off-by: gatecat --- nexus/arch.h | 1 + nexus/constids.inc | 21 +++++++++++++++++++++ nexus/pins.cc | 26 ++++++++++++++++++++++++++ 3 files changed, 48 insertions(+) diff --git a/nexus/arch.h b/nexus/arch.h index 5dcc53bc..9dfc4551 100644 --- a/nexus/arch.h +++ b/nexus/arch.h @@ -800,6 +800,7 @@ enum CellPinStyle PINSTYLE_DEDI = 0x0000, // dedicated signals, leave alone PINSTYLE_PU = 0x4022, // signals that float high and default high PINSTYLE_PU_NONCIB = 0x0022, // signals that float high and default high + PINSTYLE_PD_NONCIB = 0x0012, // signals that float high and default low PINSTYLE_T = 0x4027, // PIO 'T' signal PINSTYLE_ADLSB = 0x4017, // special case of the EBR address MSBs diff --git a/nexus/constids.inc b/nexus/constids.inc index 08ca5d09..dd6fbea7 100644 --- a/nexus/constids.inc +++ b/nexus/constids.inc @@ -480,3 +480,24 @@ X(CEB2B3) X(RSTB0B1) X(RSTB2B3) X(M9ADDSUB) + +X(DPHY_CORE) +X(CKN) +X(CKP) +X(DN0) +X(DN1) +X(DN2) +X(DN3) +X(DP0) +X(DP1) +X(DP2) +X(DP3) +X(DP4) +X(SCCLKIN) +X(SCRSTNIN) +X(CLKREF) +X(U2TDE4CK) +X(U1ENTHEN) +X(U2END2) +X(U3END3) +X(UED0THEN) diff --git a/nexus/pins.cc b/nexus/pins.cc index 0e27214b..a283953b 100644 --- a/nexus/pins.cc +++ b/nexus/pins.cc @@ -189,6 +189,32 @@ static const std::unordered_map base_cell_pin_data {id_SCANRST, PINSTYLE_DEDI}, {id_OPCGLDCK, PINSTYLE_DEDI}, {{}, PINSTYLE_CIB}, + }}, + {id_DPHY_CORE, + { + {id_CKN, PINSTYLE_DEDI}, + {id_CKP, PINSTYLE_DEDI}, + {id_DN0, PINSTYLE_DEDI}, + {id_DN1, PINSTYLE_DEDI}, + {id_DN2, PINSTYLE_DEDI}, + {id_DN3, PINSTYLE_DEDI}, + {id_DP0, PINSTYLE_DEDI}, + {id_DP1, PINSTYLE_DEDI}, + {id_DP2, PINSTYLE_DEDI}, + {id_DP3, PINSTYLE_DEDI}, + {id_SCCLKIN, PINSTYLE_DEDI}, + {id_SCRSTNIN, PINSTYLE_DEDI}, + {id_SCANCLK, PINSTYLE_DEDI}, + {id_SCANRST, PINSTYLE_DEDI}, + {id_LMMIRESETN, PINSTYLE_DEDI}, + {id_CLKREF, PINSTYLE_DEDI}, + {id_U2TDE4CK, PINSTYLE_DEDI}, + {id_OPCGLDCK, PINSTYLE_DEDI}, + {id_U1ENTHEN, PINSTYLE_PD_NONCIB}, + {id_U2END2, PINSTYLE_PD_NONCIB}, + {id_U3END3, PINSTYLE_PD_NONCIB}, + {id_UED0THEN, PINSTYLE_PD_NONCIB}, + {{}, PINSTYLE_CIB}, }}}; } // namespace