Commit 6e735248 authored by Igor Opaniuk's avatar Igor Opaniuk Committed by Stefano Babic
Browse files

imx: gpmi: add defines for hw randominizer



Extend GPMI Integrated ECC Control Register Description, include
additional defines for enabling randomizer function and providing
proper randomizer type.

For additional details check i.MX7 APR, section
9.6.6.3 GPMI Integrated ECC Control Register Description
(GPMI_ECCCTRLn)
Signed-off-by: default avatarIgor Opaniuk <igor.opaniuk@toradex.com>
Tested-by: default avatarMax Krummenacher <max.krummenacher@toradex.com>
Reviewed-by: default avatarOleksandr Suvorov <oleksandr.suvorov@toradex.com>
parent b947dd8f
...@@ -70,6 +70,11 @@ struct mxs_gpmi_regs { ...@@ -70,6 +70,11 @@ struct mxs_gpmi_regs {
#define GPMI_ECCCTRL_ECC_CMD_OFFSET 13 #define GPMI_ECCCTRL_ECC_CMD_OFFSET 13
#define GPMI_ECCCTRL_ECC_CMD_DECODE (0x0 << 13) #define GPMI_ECCCTRL_ECC_CMD_DECODE (0x0 << 13)
#define GPMI_ECCCTRL_ECC_CMD_ENCODE (0x1 << 13) #define GPMI_ECCCTRL_ECC_CMD_ENCODE (0x1 << 13)
#define GPMI_ECCCTRL_RANDOMIZER_ENABLE (1 << 11)
#define GPMI_ECCCTRL_RANDOMIZER_TYPE0 0
#define GPMI_ECCCTRL_RANDOMIZER_TYPE1 (1 << 9)
#define GPMI_ECCCTRL_RANDOMIZER_TYPE2 (2 << 9)
#define GPMI_ECCCTRL_ENABLE_ECC (1 << 12) #define GPMI_ECCCTRL_ENABLE_ECC (1 << 12)
#define GPMI_ECCCTRL_BUFFER_MASK_MASK 0x1ff #define GPMI_ECCCTRL_BUFFER_MASK_MASK 0x1ff
#define GPMI_ECCCTRL_BUFFER_MASK_OFFSET 0 #define GPMI_ECCCTRL_BUFFER_MASK_OFFSET 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment