Skip to content

Commit f0f2a5d

Browse files
Qinghao ShiQinghao Shi
authored andcommitted
FastModel: remove SMSC9220 related definitions from SDK
1 parent 51b8d6e commit f0f2a5d

File tree

5 files changed

+0
-396
lines changed

5 files changed

+0
-396
lines changed

targets/TARGET_ARM_FM/TARGET_FVP_MPS2/TARGET_FVP_MPS2_M0/device/SMM_MPS2.h

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -482,79 +482,6 @@ typedef struct
482482
#define I2S_ERROR_RXERR_Pos 1
483483
#define I2S_ERROR_RXERR_Msk (1UL<<I2S_ERROR_RXERR_Pos)
484484

485-
/******************************************************************************/
486-
/* SMSC9220 Register Definitions */
487-
/******************************************************************************/
488-
489-
typedef struct // SMSC LAN9220
490-
{
491-
__I uint32_t RX_DATA_PORT; // Receive FIFO Ports (offset 0x0)
492-
uint32_t RESERVED1[0x7];
493-
__O uint32_t TX_DATA_PORT; // Transmit FIFO Ports (offset 0x20)
494-
uint32_t RESERVED2[0x7];
495-
496-
__I uint32_t RX_STAT_PORT; // Receive FIFO status port (offset 0x40)
497-
__I uint32_t RX_STAT_PEEK; // Receive FIFO status peek (offset 0x44)
498-
__I uint32_t TX_STAT_PORT; // Transmit FIFO status port (offset 0x48)
499-
__I uint32_t TX_STAT_PEEK; // Transmit FIFO status peek (offset 0x4C)
500-
501-
__I uint32_t ID_REV; // Chip ID and Revision (offset 0x50)
502-
__IO uint32_t IRQ_CFG; // Main Interrupt Configuration (offset 0x54)
503-
__IO uint32_t INT_STS; // Interrupt Status (offset 0x58)
504-
__IO uint32_t INT_EN; // Interrupt Enable Register (offset 0x5C)
505-
uint32_t RESERVED3; // Reserved for future use (offset 0x60)
506-
__I uint32_t BYTE_TEST; // Read-only byte order testing register 87654321h (offset 0x64)
507-
__IO uint32_t FIFO_INT; // FIFO Level Interrupts (offset 0x68)
508-
__IO uint32_t RX_CFG; // Receive Configuration (offset 0x6C)
509-
__IO uint32_t TX_CFG; // Transmit Configuration (offset 0x70)
510-
__IO uint32_t HW_CFG; // Hardware Configuration (offset 0x74)
511-
__IO uint32_t RX_DP_CTL; // RX Datapath Control (offset 0x78)
512-
__I uint32_t RX_FIFO_INF; // Receive FIFO Information (offset 0x7C)
513-
__I uint32_t TX_FIFO_INF; // Transmit FIFO Information (offset 0x80)
514-
__IO uint32_t PMT_CTRL; // Power Management Control (offset 0x84)
515-
__IO uint32_t GPIO_CFG; // General Purpose IO Configuration (offset 0x88)
516-
__IO uint32_t GPT_CFG; // General Purpose Timer Configuration (offset 0x8C)
517-
__I uint32_t GPT_CNT; // General Purpose Timer Count (offset 0x90)
518-
uint32_t RESERVED4; // Reserved for future use (offset 0x94)
519-
__IO uint32_t ENDIAN; // WORD SWAP Register (offset 0x98)
520-
__I uint32_t FREE_RUN; // Free Run Counter (offset 0x9C)
521-
__I uint32_t RX_DROP; // RX Dropped Frames Counter (offset 0xA0)
522-
__IO uint32_t MAC_CSR_CMD; // MAC CSR Synchronizer Command (offset 0xA4)
523-
__IO uint32_t MAC_CSR_DATA; // MAC CSR Synchronizer Data (offset 0xA8)
524-
__IO uint32_t AFC_CFG; // Automatic Flow Control Configuration (offset 0xAC)
525-
__IO uint32_t E2P_CMD; // EEPROM Command (offset 0xB0)
526-
__IO uint32_t E2P_DATA; // EEPROM Data (offset 0xB4)
527-
528-
} SMSC9220_TypeDef;
529-
530-
// SMSC9220 MAC Registers Indices
531-
#define SMSC9220_MAC_CR 0x1
532-
#define SMSC9220_MAC_ADDRH 0x2
533-
#define SMSC9220_MAC_ADDRL 0x3
534-
#define SMSC9220_MAC_HASHH 0x4
535-
#define SMSC9220_MAC_HASHL 0x5
536-
#define SMSC9220_MAC_MII_ACC 0x6
537-
#define SMSC9220_MAC_MII_DATA 0x7
538-
#define SMSC9220_MAC_FLOW 0x8
539-
#define SMSC9220_MAC_VLAN1 0x9
540-
#define SMSC9220_MAC_VLAN2 0xA
541-
#define SMSC9220_MAC_WUFF 0xB
542-
#define SMSC9220_MAC_WUCSR 0xC
543-
544-
// SMSC9220 PHY Registers Indices
545-
#define SMSC9220_PHY_BCONTROL 0x0
546-
#define SMSC9220_PHY_BSTATUS 0x1
547-
#define SMSC9220_PHY_ID1 0x2
548-
#define SMSC9220_PHY_ID2 0x3
549-
#define SMSC9220_PHY_ANEG_ADV 0x4
550-
#define SMSC9220_PHY_ANEG_LPA 0x5
551-
#define SMSC9220_PHY_ANEG_EXP 0x6
552-
#define SMSC9220_PHY_MCONTROL 0x17
553-
#define SMSC9220_PHY_MSTATUS 0x18
554-
#define SMSC9220_PHY_CSINDICATE 0x27
555-
#define SMSC9220_PHY_INTSRC 0x29
556-
#define SMSC9220_PHY_INTMASK 0x30
557-
#define SMSC9220_PHY_CS 0x31
558485

559486
/******************************************************************************/
560487
/* Peripheral memory map */
@@ -573,20 +500,13 @@ __IO uint32_t E2P_DATA; // EEPROM Data (offset 0xB4)
573500
#define MPS2_SHIELD1_I2C_BASE (0x4002A000ul) /* Shield 1 I2C Base Address */
574501
#define MPS2_SCC_BASE (0x4002F000ul) /* SCC Base Address */
575502

576-
#ifdef CORTEX_M7
577-
#define SMSC9220_BASE (0xA0000000ul) /* Ethernet SMSC9220 Base Address */
578-
#else
579-
#define SMSC9220_BASE (0x40200000ul) /* Ethernet SMSC9220 Base Address */
580-
#endif
581-
582503
#define MPS2_VGA_TEXT_BUFFER (0x41000000ul) /* VGA Text Buffer Address */
583504
#define MPS2_VGA_BUFFER (0x41100000ul) /* VGA Buffer Base Address */
584505

585506
/******************************************************************************/
586507
/* Peripheral declaration */
587508
/******************************************************************************/
588509

589-
#define SMSC9220 ((SMSC9220_TypeDef *) SMSC9220_BASE )
590510
#define MPS2_TS_I2C ((MPS2_I2C_TypeDef *) MPS2_TSC_I2C_BASE )
591511
#define MPS2_AAIC_I2C ((MPS2_I2C_TypeDef *) MPS2_AAIC_I2C_BASE )
592512
#define MPS2_SHIELD0_I2C ((MPS2_I2C_TypeDef *) MPS2_SHIELD0_I2C_BASE )

targets/TARGET_ARM_FM/TARGET_FVP_MPS2/TARGET_FVP_MPS2_M0P/device/SMM_MPS2.h

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -482,79 +482,6 @@ typedef struct
482482
#define I2S_ERROR_RXERR_Pos 1
483483
#define I2S_ERROR_RXERR_Msk (1UL<<I2S_ERROR_RXERR_Pos)
484484

485-
/******************************************************************************/
486-
/* SMSC9220 Register Definitions */
487-
/******************************************************************************/
488-
489-
typedef struct // SMSC LAN9220
490-
{
491-
__I uint32_t RX_DATA_PORT; // Receive FIFO Ports (offset 0x0)
492-
uint32_t RESERVED1[0x7];
493-
__O uint32_t TX_DATA_PORT; // Transmit FIFO Ports (offset 0x20)
494-
uint32_t RESERVED2[0x7];
495-
496-
__I uint32_t RX_STAT_PORT; // Receive FIFO status port (offset 0x40)
497-
__I uint32_t RX_STAT_PEEK; // Receive FIFO status peek (offset 0x44)
498-
__I uint32_t TX_STAT_PORT; // Transmit FIFO status port (offset 0x48)
499-
__I uint32_t TX_STAT_PEEK; // Transmit FIFO status peek (offset 0x4C)
500-
501-
__I uint32_t ID_REV; // Chip ID and Revision (offset 0x50)
502-
__IO uint32_t IRQ_CFG; // Main Interrupt Configuration (offset 0x54)
503-
__IO uint32_t INT_STS; // Interrupt Status (offset 0x58)
504-
__IO uint32_t INT_EN; // Interrupt Enable Register (offset 0x5C)
505-
uint32_t RESERVED3; // Reserved for future use (offset 0x60)
506-
__I uint32_t BYTE_TEST; // Read-only byte order testing register 87654321h (offset 0x64)
507-
__IO uint32_t FIFO_INT; // FIFO Level Interrupts (offset 0x68)
508-
__IO uint32_t RX_CFG; // Receive Configuration (offset 0x6C)
509-
__IO uint32_t TX_CFG; // Transmit Configuration (offset 0x70)
510-
__IO uint32_t HW_CFG; // Hardware Configuration (offset 0x74)
511-
__IO uint32_t RX_DP_CTL; // RX Datapath Control (offset 0x78)
512-
__I uint32_t RX_FIFO_INF; // Receive FIFO Information (offset 0x7C)
513-
__I uint32_t TX_FIFO_INF; // Transmit FIFO Information (offset 0x80)
514-
__IO uint32_t PMT_CTRL; // Power Management Control (offset 0x84)
515-
__IO uint32_t GPIO_CFG; // General Purpose IO Configuration (offset 0x88)
516-
__IO uint32_t GPT_CFG; // General Purpose Timer Configuration (offset 0x8C)
517-
__I uint32_t GPT_CNT; // General Purpose Timer Count (offset 0x90)
518-
uint32_t RESERVED4; // Reserved for future use (offset 0x94)
519-
__IO uint32_t ENDIAN; // WORD SWAP Register (offset 0x98)
520-
__I uint32_t FREE_RUN; // Free Run Counter (offset 0x9C)
521-
__I uint32_t RX_DROP; // RX Dropped Frames Counter (offset 0xA0)
522-
__IO uint32_t MAC_CSR_CMD; // MAC CSR Synchronizer Command (offset 0xA4)
523-
__IO uint32_t MAC_CSR_DATA; // MAC CSR Synchronizer Data (offset 0xA8)
524-
__IO uint32_t AFC_CFG; // Automatic Flow Control Configuration (offset 0xAC)
525-
__IO uint32_t E2P_CMD; // EEPROM Command (offset 0xB0)
526-
__IO uint32_t E2P_DATA; // EEPROM Data (offset 0xB4)
527-
528-
} SMSC9220_TypeDef;
529-
530-
// SMSC9220 MAC Registers Indices
531-
#define SMSC9220_MAC_CR 0x1
532-
#define SMSC9220_MAC_ADDRH 0x2
533-
#define SMSC9220_MAC_ADDRL 0x3
534-
#define SMSC9220_MAC_HASHH 0x4
535-
#define SMSC9220_MAC_HASHL 0x5
536-
#define SMSC9220_MAC_MII_ACC 0x6
537-
#define SMSC9220_MAC_MII_DATA 0x7
538-
#define SMSC9220_MAC_FLOW 0x8
539-
#define SMSC9220_MAC_VLAN1 0x9
540-
#define SMSC9220_MAC_VLAN2 0xA
541-
#define SMSC9220_MAC_WUFF 0xB
542-
#define SMSC9220_MAC_WUCSR 0xC
543-
544-
// SMSC9220 PHY Registers Indices
545-
#define SMSC9220_PHY_BCONTROL 0x0
546-
#define SMSC9220_PHY_BSTATUS 0x1
547-
#define SMSC9220_PHY_ID1 0x2
548-
#define SMSC9220_PHY_ID2 0x3
549-
#define SMSC9220_PHY_ANEG_ADV 0x4
550-
#define SMSC9220_PHY_ANEG_LPA 0x5
551-
#define SMSC9220_PHY_ANEG_EXP 0x6
552-
#define SMSC9220_PHY_MCONTROL 0x17
553-
#define SMSC9220_PHY_MSTATUS 0x18
554-
#define SMSC9220_PHY_CSINDICATE 0x27
555-
#define SMSC9220_PHY_INTSRC 0x29
556-
#define SMSC9220_PHY_INTMASK 0x30
557-
#define SMSC9220_PHY_CS 0x31
558485

559486
/******************************************************************************/
560487
/* Peripheral memory map */
@@ -573,20 +500,13 @@ __IO uint32_t E2P_DATA; // EEPROM Data (offset 0xB4)
573500
#define MPS2_SHIELD1_I2C_BASE (0x4002A000ul) /* Shield 1 I2C Base Address */
574501
#define MPS2_SCC_BASE (0x4002F000ul) /* SCC Base Address */
575502

576-
#ifdef CORTEX_M7
577-
#define SMSC9220_BASE (0xA0000000ul) /* Ethernet SMSC9220 Base Address */
578-
#else
579-
#define SMSC9220_BASE (0x40200000ul) /* Ethernet SMSC9220 Base Address */
580-
#endif
581-
582503
#define MPS2_VGA_TEXT_BUFFER (0x41000000ul) /* VGA Text Buffer Address */
583504
#define MPS2_VGA_BUFFER (0x41100000ul) /* VGA Buffer Base Address */
584505

585506
/******************************************************************************/
586507
/* Peripheral declaration */
587508
/******************************************************************************/
588509

589-
#define SMSC9220 ((SMSC9220_TypeDef *) SMSC9220_BASE )
590510
#define MPS2_TS_I2C ((MPS2_I2C_TypeDef *) MPS2_TSC_I2C_BASE )
591511
#define MPS2_AAIC_I2C ((MPS2_I2C_TypeDef *) MPS2_AAIC_I2C_BASE )
592512
#define MPS2_SHIELD0_I2C ((MPS2_I2C_TypeDef *) MPS2_SHIELD0_I2C_BASE )

targets/TARGET_ARM_FM/TARGET_FVP_MPS2/TARGET_FVP_MPS2_M3/device/SMM_MPS2.h

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -482,79 +482,6 @@ typedef struct
482482
#define I2S_ERROR_RXERR_Pos 1
483483
#define I2S_ERROR_RXERR_Msk (1UL<<I2S_ERROR_RXERR_Pos)
484484

485-
/******************************************************************************/
486-
/* SMSC9220 Register Definitions */
487-
/******************************************************************************/
488-
489-
typedef struct // SMSC LAN9220
490-
{
491-
__I uint32_t RX_DATA_PORT; // Receive FIFO Ports (offset 0x0)
492-
uint32_t RESERVED1[0x7];
493-
__O uint32_t TX_DATA_PORT; // Transmit FIFO Ports (offset 0x20)
494-
uint32_t RESERVED2[0x7];
495-
496-
__I uint32_t RX_STAT_PORT; // Receive FIFO status port (offset 0x40)
497-
__I uint32_t RX_STAT_PEEK; // Receive FIFO status peek (offset 0x44)
498-
__I uint32_t TX_STAT_PORT; // Transmit FIFO status port (offset 0x48)
499-
__I uint32_t TX_STAT_PEEK; // Transmit FIFO status peek (offset 0x4C)
500-
501-
__I uint32_t ID_REV; // Chip ID and Revision (offset 0x50)
502-
__IO uint32_t IRQ_CFG; // Main Interrupt Configuration (offset 0x54)
503-
__IO uint32_t INT_STS; // Interrupt Status (offset 0x58)
504-
__IO uint32_t INT_EN; // Interrupt Enable Register (offset 0x5C)
505-
uint32_t RESERVED3; // Reserved for future use (offset 0x60)
506-
__I uint32_t BYTE_TEST; // Read-only byte order testing register 87654321h (offset 0x64)
507-
__IO uint32_t FIFO_INT; // FIFO Level Interrupts (offset 0x68)
508-
__IO uint32_t RX_CFG; // Receive Configuration (offset 0x6C)
509-
__IO uint32_t TX_CFG; // Transmit Configuration (offset 0x70)
510-
__IO uint32_t HW_CFG; // Hardware Configuration (offset 0x74)
511-
__IO uint32_t RX_DP_CTL; // RX Datapath Control (offset 0x78)
512-
__I uint32_t RX_FIFO_INF; // Receive FIFO Information (offset 0x7C)
513-
__I uint32_t TX_FIFO_INF; // Transmit FIFO Information (offset 0x80)
514-
__IO uint32_t PMT_CTRL; // Power Management Control (offset 0x84)
515-
__IO uint32_t GPIO_CFG; // General Purpose IO Configuration (offset 0x88)
516-
__IO uint32_t GPT_CFG; // General Purpose Timer Configuration (offset 0x8C)
517-
__I uint32_t GPT_CNT; // General Purpose Timer Count (offset 0x90)
518-
uint32_t RESERVED4; // Reserved for future use (offset 0x94)
519-
__IO uint32_t ENDIAN; // WORD SWAP Register (offset 0x98)
520-
__I uint32_t FREE_RUN; // Free Run Counter (offset 0x9C)
521-
__I uint32_t RX_DROP; // RX Dropped Frames Counter (offset 0xA0)
522-
__IO uint32_t MAC_CSR_CMD; // MAC CSR Synchronizer Command (offset 0xA4)
523-
__IO uint32_t MAC_CSR_DATA; // MAC CSR Synchronizer Data (offset 0xA8)
524-
__IO uint32_t AFC_CFG; // Automatic Flow Control Configuration (offset 0xAC)
525-
__IO uint32_t E2P_CMD; // EEPROM Command (offset 0xB0)
526-
__IO uint32_t E2P_DATA; // EEPROM Data (offset 0xB4)
527-
528-
} SMSC9220_TypeDef;
529-
530-
// SMSC9220 MAC Registers Indices
531-
#define SMSC9220_MAC_CR 0x1
532-
#define SMSC9220_MAC_ADDRH 0x2
533-
#define SMSC9220_MAC_ADDRL 0x3
534-
#define SMSC9220_MAC_HASHH 0x4
535-
#define SMSC9220_MAC_HASHL 0x5
536-
#define SMSC9220_MAC_MII_ACC 0x6
537-
#define SMSC9220_MAC_MII_DATA 0x7
538-
#define SMSC9220_MAC_FLOW 0x8
539-
#define SMSC9220_MAC_VLAN1 0x9
540-
#define SMSC9220_MAC_VLAN2 0xA
541-
#define SMSC9220_MAC_WUFF 0xB
542-
#define SMSC9220_MAC_WUCSR 0xC
543-
544-
// SMSC9220 PHY Registers Indices
545-
#define SMSC9220_PHY_BCONTROL 0x0
546-
#define SMSC9220_PHY_BSTATUS 0x1
547-
#define SMSC9220_PHY_ID1 0x2
548-
#define SMSC9220_PHY_ID2 0x3
549-
#define SMSC9220_PHY_ANEG_ADV 0x4
550-
#define SMSC9220_PHY_ANEG_LPA 0x5
551-
#define SMSC9220_PHY_ANEG_EXP 0x6
552-
#define SMSC9220_PHY_MCONTROL 0x17
553-
#define SMSC9220_PHY_MSTATUS 0x18
554-
#define SMSC9220_PHY_CSINDICATE 0x27
555-
#define SMSC9220_PHY_INTSRC 0x29
556-
#define SMSC9220_PHY_INTMASK 0x30
557-
#define SMSC9220_PHY_CS 0x31
558485

559486
/******************************************************************************/
560487
/* Peripheral memory map */
@@ -573,20 +500,13 @@ __IO uint32_t E2P_DATA; // EEPROM Data (offset 0xB4)
573500
#define MPS2_SHIELD1_I2C_BASE (0x4002A000ul) /* Shield 1 I2C Base Address */
574501
#define MPS2_SCC_BASE (0x4002F000ul) /* SCC Base Address */
575502

576-
#ifdef CORTEX_M7
577-
#define SMSC9220_BASE (0xA0000000ul) /* Ethernet SMSC9220 Base Address */
578-
#else
579-
#define SMSC9220_BASE (0x40200000ul) /* Ethernet SMSC9220 Base Address */
580-
#endif
581-
582503
#define MPS2_VGA_TEXT_BUFFER (0x41000000ul) /* VGA Text Buffer Address */
583504
#define MPS2_VGA_BUFFER (0x41100000ul) /* VGA Buffer Base Address */
584505

585506
/******************************************************************************/
586507
/* Peripheral declaration */
587508
/******************************************************************************/
588509

589-
#define SMSC9220 ((SMSC9220_TypeDef *) SMSC9220_BASE )
590510
#define MPS2_TS_I2C ((MPS2_I2C_TypeDef *) MPS2_TSC_I2C_BASE )
591511
#define MPS2_AAIC_I2C ((MPS2_I2C_TypeDef *) MPS2_AAIC_I2C_BASE )
592512
#define MPS2_SHIELD0_I2C ((MPS2_I2C_TypeDef *) MPS2_SHIELD0_I2C_BASE )

0 commit comments

Comments
 (0)