#include <linux/io.h>
#include <linux/bitops.h>
#include "cryp.h"
#include "cryp_irqp.h"
Go to the source code of this file.
#define CRYP_CR_ALGODIR_MASK BIT(2) |
#define CRYP_CR_ALGODIR_POS 2 |
#define CRYP_CR_ALGOMODE_MASK (BIT(5) | BIT(4) | BIT(3)) |
#define CRYP_CR_ALGOMODE_POS 3 |
#define CRYP_CR_CONTEXT_SAVE_MASK |
Value:
CRYP_CR_PRLG_MASK |\
CRYP_CR_ALGODIR_MASK |\
CRYP_CR_ALGOMODE_MASK |\
CRYP_CR_DATATYPE_MASK |\
CRYP_CR_KEYSIZE_MASK |\
CRYP_CR_KEYRDEN_MASK |\
CRYP_CR_DATATYPE_MASK)
Definition at line 80 of file cryp_p.h.
#define CRYP_CR_CRYPEN_MASK BIT(15) |
#define CRYP_CR_CRYPEN_POS 15 |
#define CRYP_CR_DATATYPE_MASK (BIT(7) | BIT(6)) |
#define CRYP_CR_DATATYPE_POS 6 |
#define CRYP_CR_DEFAULT 0x0482 |
#define CRYP_CR_FFLUSH_MASK BIT(14) |
#define CRYP_CR_INIT_MASK BIT(13) |
#define CRYP_CR_INIT_POS 13 |
#define CRYP_CR_KEYRDEN_MASK BIT(10) |
#define CRYP_CR_KEYRDEN_POS 10 |
#define CRYP_CR_KEYSIZE_MASK (BIT(9) | BIT(8)) |
#define CRYP_CR_KEYSIZE_POS 8 |
#define CRYP_CR_KSE_MASK BIT(11) |
#define CRYP_CR_KSE_POS 11 |
#define CRYP_CR_PRLG_MASK BIT(1) |
#define CRYP_CR_PRLG_POS 1 |
Bit position used while setting bits in register
Definition at line 97 of file cryp_p.h.
#define CRYP_CR_SECURE_MASK BIT(0) |
CRYP Control register specific mask
Definition at line 68 of file cryp_p.h.
#define CRYP_CR_START_MASK BIT(12) |
#define CRYP_CR_START_POS 12 |
#define CRYP_DIN_DEFAULT 0x0 |
#define CRYP_DMA_REQ_MASK (BIT(1) | BIT(0)) |
CRYP PCRs---—PC_NAND control register BIT_MASK
Definition at line 114 of file cryp_p.h.
#define CRYP_DMA_REQ_MASK_POS 0 |
#define CRYP_DMACR_DEFAULT 0x0 |
#define CRYP_DOUT_DEFAULT 0x0 |
#define CRYP_IMSC_DEFAULT 0x0 |
#define CRYP_INIT_VECT_DEFAULT 0x0 |
#define CRYP_KEY_DEFAULT 0x0 |
#define CRYP_PCELL_ID0 0x0D |
#define CRYP_PCELL_ID1 0xF0 |
#define CRYP_PCELL_ID2 0x05 |
#define CRYP_PCELL_ID3 0xB1 |
#define CRYP_PERIPHERAL_ID0 0xE3 |
CRYP specific Macros
Definition at line 40 of file cryp_p.h.
#define CRYP_PERIPHERAL_ID1 0x05 |
#define CRYP_PERIPHERAL_ID2_DB8500 0x28 |
#define CRYP_PERIPHERAL_ID3 0x00 |
#define CRYP_SR_BUSY_MASK BIT(4) |
#define CRYP_SR_BUSY_POS 4 |
#define CRYP_SR_IFEM_MASK BIT(0) |
#define CRYP_SR_INFIFO_READY_MASK (BIT(0) | BIT(1)) |
#define MAX_DEVICE_SUPPORT 2 |
CRYP register default values
Definition at line 54 of file cryp_p.h.