49#ifndef LIBBSP_ARM_TMS570_MDIO
50#define LIBBSP_ARM_TMS570_MDIO
60 uint32_t LINKINTMASKED;
61 uint8_t reserved1 [8];
63 uint32_t USERINTMASKED;
64 uint32_t USERINTMASKSET;
65 uint32_t USERINTMASKCLEAR;
66 uint8_t reserved2 [80];
80#define TMS570_MDIO_CONTROL_IDLE BSP_BIT32(31)
83#define TMS570_MDIO_CONTROL_ENABLE BSP_BIT32(30)
86#define TMS570_MDIO_CONTROL_HIGHEST_USER_CHANNEL(val) BSP_FLD32(val,24, 28)
87#define TMS570_MDIO_CONTROL_HIGHEST_USER_CHANNEL_GET(reg) BSP_FLD32GET(reg,24, 28)
88#define TMS570_MDIO_CONTROL_HIGHEST_USER_CHANNEL_SET(reg,val) BSP_FLD32SET(reg, val,24, 28)
91#define TMS570_MDIO_CONTROL_PREAMBLE BSP_BIT32(20)
94#define TMS570_MDIO_CONTROL_FAULT BSP_BIT32(19)
97#define TMS570_MDIO_CONTROL_FAULTENB BSP_BIT32(18)
100#define TMS570_MDIO_CONTROL_CLKDIV(val) BSP_FLD32(val,0, 15)
101#define TMS570_MDIO_CONTROL_CLKDIV_GET(reg) BSP_FLD32GET(reg,0, 15)
102#define TMS570_MDIO_CONTROL_CLKDIV_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
115#define TMS570_MDIO_LINKINTRAW_USERPHY1 BSP_BIT32(1)
118#define TMS570_MDIO_LINKINTRAW_USERPHY0 BSP_BIT32(0)
123#define TMS570_MDIO_LINKINTMASKED_USERPHY1 BSP_BIT32(1)
126#define TMS570_MDIO_LINKINTMASKED_USERPHY0 BSP_BIT32(0)
131#define TMS570_MDIO_USERINTRAW_USERACCESS1 BSP_BIT32(1)
134#define TMS570_MDIO_USERINTRAW_USERACCESS0 BSP_BIT32(0)
139#define TMS570_MDIO_USERINTMASKED_USERACCESS1 BSP_BIT32(1)
142#define TMS570_MDIO_USERINTMASKED_USERACCESS0 BSP_BIT32(0)
147#define TMS570_MDIO_USERINTMASKSET_USERACCESS1 BSP_BIT32(1)
150#define TMS570_MDIO_USERINTMASKSET_USERACCESS0 BSP_BIT32(0)
155#define TMS570_MDIO_USERINTMASKCLEAR_USERACCESS1 BSP_BIT32(1)
158#define TMS570_MDIO_USERINTMASKCLEAR_USERACCESS0 BSP_BIT32(0)
163#define TMS570_MDIO_USERACCESS0_GO BSP_BIT32(31)
166#define TMS570_MDIO_USERACCESS0_WRITE BSP_BIT32(30)
169#define TMS570_MDIO_USERACCESS0_ACK BSP_BIT32(29)
172#define TMS570_MDIO_USERACCESS0_REGADR(val) BSP_FLD32(val,21, 25)
173#define TMS570_MDIO_USERACCESS0_REGADR_GET(reg) BSP_FLD32GET(reg,21, 25)
174#define TMS570_MDIO_USERACCESS0_REGADR_SET(reg,val) BSP_FLD32SET(reg, val,21, 25)
177#define TMS570_MDIO_USERACCESS0_PHYADR(val) BSP_FLD32(val,16, 20)
178#define TMS570_MDIO_USERACCESS0_PHYADR_GET(reg) BSP_FLD32GET(reg,16, 20)
179#define TMS570_MDIO_USERACCESS0_PHYADR_SET(reg,val) BSP_FLD32SET(reg, val,16, 20)
182#define TMS570_MDIO_USERACCESS0_DATA(val) BSP_FLD32(val,0, 15)
183#define TMS570_MDIO_USERACCESS0_DATA_GET(reg) BSP_FLD32GET(reg,0, 15)
184#define TMS570_MDIO_USERACCESS0_DATA_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
189#define TMS570_MDIO_USERPHYSEL0_LINKSEL BSP_BIT32(7)
192#define TMS570_MDIO_USERPHYSEL0_LINKINTENB BSP_BIT32(6)
195#define TMS570_MDIO_USERPHYSEL0_PHYADRMON(val) BSP_FLD32(val,0, 4)
196#define TMS570_MDIO_USERPHYSEL0_PHYADRMON_GET(reg) BSP_FLD32GET(reg,0, 4)
197#define TMS570_MDIO_USERPHYSEL0_PHYADRMON_SET(reg,val) BSP_FLD32SET(reg, val,0, 4)
202#define TMS570_MDIO_USERACCESS1_GO BSP_BIT32(31)
205#define TMS570_MDIO_USERACCESS1_WRITE BSP_BIT32(30)
208#define TMS570_MDIO_USERACCESS1_ACK BSP_BIT32(29)
211#define TMS570_MDIO_USERACCESS1_REGADR(val) BSP_FLD32(val,21, 25)
212#define TMS570_MDIO_USERACCESS1_REGADR_GET(reg) BSP_FLD32GET(reg,21, 25)
213#define TMS570_MDIO_USERACCESS1_REGADR_SET(reg,val) BSP_FLD32SET(reg, val,21, 25)
216#define TMS570_MDIO_USERACCESS1_PHYADR(val) BSP_FLD32(val,16, 20)
217#define TMS570_MDIO_USERACCESS1_PHYADR_GET(reg) BSP_FLD32GET(reg,16, 20)
218#define TMS570_MDIO_USERACCESS1_PHYADR_SET(reg,val) BSP_FLD32SET(reg, val,16, 20)
221#define TMS570_MDIO_USERACCESS1_DATA(val) BSP_FLD32(val,0, 15)
222#define TMS570_MDIO_USERACCESS1_DATA_GET(reg) BSP_FLD32GET(reg,0, 15)
223#define TMS570_MDIO_USERACCESS1_DATA_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
228#define TMS570_MDIO_USERPHYSEL1_LINKSEL BSP_BIT32(7)
231#define TMS570_MDIO_USERPHYSEL1_LINKINTENB BSP_BIT32(6)
234#define TMS570_MDIO_USERPHYSEL1_PHYADRMON(val) BSP_FLD32(val,0, 4)
235#define TMS570_MDIO_USERPHYSEL1_PHYADRMON_GET(reg) BSP_FLD32GET(reg,0, 4)
236#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:54