39#ifndef LIBBSP_ARM_TMS570_MDIO
40#define LIBBSP_ARM_TMS570_MDIO
50 uint32_t LINKINTMASKED;
51 uint8_t reserved1 [8];
53 uint32_t USERINTMASKED;
54 uint32_t USERINTMASKSET;
55 uint32_t USERINTMASKCLEAR;
56 uint8_t reserved2 [80];
70#define TMS570_MDIO_CONTROL_IDLE BSP_BIT32(31)
73#define TMS570_MDIO_CONTROL_ENABLE BSP_BIT32(30)
76#define TMS570_MDIO_CONTROL_HIGHEST_USER_CHANNEL(val) BSP_FLD32(val,24, 28)
77#define TMS570_MDIO_CONTROL_HIGHEST_USER_CHANNEL_GET(reg) BSP_FLD32GET(reg,24, 28)
78#define TMS570_MDIO_CONTROL_HIGHEST_USER_CHANNEL_SET(reg,val) BSP_FLD32SET(reg, val,24, 28)
81#define TMS570_MDIO_CONTROL_PREAMBLE BSP_BIT32(20)
84#define TMS570_MDIO_CONTROL_FAULT BSP_BIT32(19)
87#define TMS570_MDIO_CONTROL_FAULTENB BSP_BIT32(18)
90#define TMS570_MDIO_CONTROL_CLKDIV(val) BSP_FLD32(val,0, 15)
91#define TMS570_MDIO_CONTROL_CLKDIV_GET(reg) BSP_FLD32GET(reg,0, 15)
92#define TMS570_MDIO_CONTROL_CLKDIV_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
105#define TMS570_MDIO_LINKINTRAW_USERPHY1 BSP_BIT32(1)
108#define TMS570_MDIO_LINKINTRAW_USERPHY0 BSP_BIT32(0)
113#define TMS570_MDIO_LINKINTMASKED_USERPHY1 BSP_BIT32(1)
116#define TMS570_MDIO_LINKINTMASKED_USERPHY0 BSP_BIT32(0)
121#define TMS570_MDIO_USERINTRAW_USERACCESS1 BSP_BIT32(1)
124#define TMS570_MDIO_USERINTRAW_USERACCESS0 BSP_BIT32(0)
129#define TMS570_MDIO_USERINTMASKED_USERACCESS1 BSP_BIT32(1)
132#define TMS570_MDIO_USERINTMASKED_USERACCESS0 BSP_BIT32(0)
137#define TMS570_MDIO_USERINTMASKSET_USERACCESS1 BSP_BIT32(1)
140#define TMS570_MDIO_USERINTMASKSET_USERACCESS0 BSP_BIT32(0)
145#define TMS570_MDIO_USERINTMASKCLEAR_USERACCESS1 BSP_BIT32(1)
148#define TMS570_MDIO_USERINTMASKCLEAR_USERACCESS0 BSP_BIT32(0)
153#define TMS570_MDIO_USERACCESS0_GO BSP_BIT32(31)
156#define TMS570_MDIO_USERACCESS0_WRITE BSP_BIT32(30)
159#define TMS570_MDIO_USERACCESS0_ACK BSP_BIT32(29)
162#define TMS570_MDIO_USERACCESS0_REGADR(val) BSP_FLD32(val,21, 25)
163#define TMS570_MDIO_USERACCESS0_REGADR_GET(reg) BSP_FLD32GET(reg,21, 25)
164#define TMS570_MDIO_USERACCESS0_REGADR_SET(reg,val) BSP_FLD32SET(reg, val,21, 25)
167#define TMS570_MDIO_USERACCESS0_PHYADR(val) BSP_FLD32(val,16, 20)
168#define TMS570_MDIO_USERACCESS0_PHYADR_GET(reg) BSP_FLD32GET(reg,16, 20)
169#define TMS570_MDIO_USERACCESS0_PHYADR_SET(reg,val) BSP_FLD32SET(reg, val,16, 20)
172#define TMS570_MDIO_USERACCESS0_DATA(val) BSP_FLD32(val,0, 15)
173#define TMS570_MDIO_USERACCESS0_DATA_GET(reg) BSP_FLD32GET(reg,0, 15)
174#define TMS570_MDIO_USERACCESS0_DATA_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
179#define TMS570_MDIO_USERPHYSEL0_LINKSEL BSP_BIT32(7)
182#define TMS570_MDIO_USERPHYSEL0_LINKINTENB BSP_BIT32(6)
185#define TMS570_MDIO_USERPHYSEL0_PHYADRMON(val) BSP_FLD32(val,0, 4)
186#define TMS570_MDIO_USERPHYSEL0_PHYADRMON_GET(reg) BSP_FLD32GET(reg,0, 4)
187#define TMS570_MDIO_USERPHYSEL0_PHYADRMON_SET(reg,val) BSP_FLD32SET(reg, val,0, 4)
192#define TMS570_MDIO_USERACCESS1_GO BSP_BIT32(31)
195#define TMS570_MDIO_USERACCESS1_WRITE BSP_BIT32(30)
198#define TMS570_MDIO_USERACCESS1_ACK BSP_BIT32(29)
201#define TMS570_MDIO_USERACCESS1_REGADR(val) BSP_FLD32(val,21, 25)
202#define TMS570_MDIO_USERACCESS1_REGADR_GET(reg) BSP_FLD32GET(reg,21, 25)
203#define TMS570_MDIO_USERACCESS1_REGADR_SET(reg,val) BSP_FLD32SET(reg, val,21, 25)
206#define TMS570_MDIO_USERACCESS1_PHYADR(val) BSP_FLD32(val,16, 20)
207#define TMS570_MDIO_USERACCESS1_PHYADR_GET(reg) BSP_FLD32GET(reg,16, 20)
208#define TMS570_MDIO_USERACCESS1_PHYADR_SET(reg,val) BSP_FLD32SET(reg, val,16, 20)
211#define TMS570_MDIO_USERACCESS1_DATA(val) BSP_FLD32(val,0, 15)
212#define TMS570_MDIO_USERACCESS1_DATA_GET(reg) BSP_FLD32GET(reg,0, 15)
213#define TMS570_MDIO_USERACCESS1_DATA_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
218#define TMS570_MDIO_USERPHYSEL1_LINKSEL BSP_BIT32(7)
221#define TMS570_MDIO_USERPHYSEL1_LINKINTENB BSP_BIT32(6)
224#define TMS570_MDIO_USERPHYSEL1_PHYADRMON(val) BSP_FLD32(val,0, 4)
225#define TMS570_MDIO_USERPHYSEL1_PHYADRMON_GET(reg) BSP_FLD32GET(reg,0, 4)
226#define TMS570_MDIO_USERPHYSEL1_PHYADRMON_SET(reg,val) BSP_FLD32SET(reg, val,0, 4)
This header file provides utility macros for BSPs.
Definition: reg_mdio.h:44