1 #ifndef _CPSW_LOC_H
2 #define _CPSW_LOC_H
3 /**********************************************************************************************
4 * FILE PURPOSE: Local definitions for the Common Platform Ethernet Switch
5 **********************************************************************************************
6 * FILE NAME: cpsw_loc.h
7 *
8 * DESCRIPTION: Defines the peripheral registers used to configure the switch
9 *
10 **********************************************************************************************/
12 /* Register offsets */
13 #define CPSW_REG_CTL 0x004
14 #define CPSW_REG_STAT_PORT_EN 0x00c
15 #define CPSW_REG_MAXLEN 0x040
16 #define CPSW_REG_ALE_CONTROL 0x608
17 #define CPSW_REG_ALE_PORTCTL(x) (0x640 + (x)*4)
20 /* Register values */
21 #define CPSW_REG_VAL_STAT_ENABLE_ALL 0xf
22 #define CPSW_REG_VAL_ALE_CTL_RESET_AND_ENABLE ((UINT32)0xc0000000)
23 #define CPSW_REG_VAL_PORTCTL_FORWARD_MODE 0x3
26 #endif /* _CPSW_LOC_H */