blob: 04cbb29da0fb0eab1d69a86f30368e597b9b8765 [file] [log] [blame]
#ifndef H_TE200_SHA_H
#define H_TE200_SHA_H
#define TE_BASE (0xD4220000)
#define TE_HASH_BASE (TE_BASE + 0x3280)
#define TE_CLK_CTRL (TE_BASE + 0)
#define TE_RST_CTRL (TE_BASE + 4)
#define TE_TOP_CFG (TE_BASE + 8)
#define TE_HASH_QUEUE (TE_HASH_BASE + 0x0)
#define TE_HASH_CTRL (TE_HASH_BASE + 0x4)
#define TE_HASH_STAT (TE_HASH_BASE + 0x8)
#define TE_HASH_INTR_STAT (TE_HASH_BASE + 0xC)
#define TE_REG_READ(x) (*(volatile unsigned int *)(x))
#define TE_REG_WRITE(x,y) ((*(volatile unsigned int *)(x)) = (y) )
#endif