2015-11-10 18:48:53 -05:00
|
|
|
#ifndef ELINK_REGS_H
|
|
|
|
#define ELINK_REGS_H
|
|
|
|
|
|
|
|
// New Epiphany system registers
|
|
|
|
typedef enum {
|
|
|
|
ELINK_BASE = 0x81000000,
|
|
|
|
ELINK_RESET = ELINK_BASE + 0xF0200,
|
|
|
|
ELINK_CLK = ELINK_BASE + 0xF0204,
|
|
|
|
ELINK_CHIPID = ELINK_BASE + 0xF0208,
|
|
|
|
ELINK_VERSION = ELINK_BASE + 0xF020C,
|
|
|
|
//TX
|
|
|
|
ELINK_TXCFG = ELINK_BASE + 0xF0210,
|
|
|
|
ELINK_TXSTATUS = ELINK_BASE + 0xF0214,
|
|
|
|
ELINK_TXGPIO = ELINK_BASE + 0xF0218,
|
|
|
|
ELINK_TXMMU = ELINK_BASE + 0xE0000,
|
|
|
|
//RX
|
|
|
|
ELINK_RXCFG = ELINK_BASE + 0xF0300,
|
|
|
|
ELINK_RXSTATUS = ELINK_BASE + 0xF0304,
|
|
|
|
ELINK_RXGPIO = ELINK_BASE + 0xF0308,
|
2015-11-11 14:26:35 -05:00
|
|
|
ELINK_RXOFFSET = ELINK_BASE + 0xF030c,
|
2015-11-10 18:48:53 -05:00
|
|
|
ELINK_MAILBOXLO = ELINK_BASE + 0xF0310,
|
|
|
|
ELINK_MAILBOXHI = ELINK_BASE + 0xF0314,
|
|
|
|
ELINK_RXDELAY0 = ELINK_BASE + 0xF0318,
|
|
|
|
ELINK_RXDELAY1 = ELINK_BASE + 0xF031C,
|
|
|
|
ELINK_RXDATA = ELINK_BASE + 0xF0320,
|
|
|
|
ELINK_RXMMU = ELINK_BASE + 0xE8000,
|
|
|
|
} elink_regs_id_t;
|
|
|
|
|
2015-11-11 03:39:17 +00:00
|
|
|
typedef enum {
|
|
|
|
E_REG_LINKMODE = 0xF0300,
|
|
|
|
E_REG_TXCFG = 0xF0304,
|
|
|
|
E_REG_RXCFG = 0xF0308,
|
|
|
|
E_REG_GPIOCFG = 0xF030C,
|
|
|
|
} epiphany_regs_id_t;
|
|
|
|
|
|
|
|
//FOR LEGACY ONLY!
|
|
|
|
typedef enum {
|
|
|
|
E_SYS_BASE = 0x70000000,
|
|
|
|
E_SYS_RESET = E_SYS_BASE + 0x0040,
|
|
|
|
E_SYS_CFGTX = E_SYS_BASE + 0x0044,
|
|
|
|
E_SYS_CFGRX = E_SYS_BASE + 0x0048,
|
|
|
|
E_SYS_CFGCLK = E_SYS_BASE + 0x004c,
|
|
|
|
E_SYS_COREID = E_SYS_BASE + 0x0050,
|
|
|
|
E_SYS_VERSION = E_SYS_BASE + 0x0054,
|
|
|
|
E_SYS_GPIOIN = E_SYS_BASE + 0x0058,
|
|
|
|
E_SYS_GPIOOUT = E_SYS_BASE + 0x005c
|
|
|
|
} e_sys_reg_id_t;
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-11-10 18:48:53 -05:00
|
|
|
#endif
|