From: Jean THOMAS Date: Tue, 23 Jun 2020 14:10:12 +0000 (+0200) Subject: Fix DFII bitfield constants X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=75d74445ad141e94c01c9505559443567db03a66;p=gram.git Fix DFII bitfield constants --- diff --git a/libgram/src/dfii.h b/libgram/src/dfii.h index ff0d912..9831281 100644 --- a/libgram/src/dfii.h +++ b/libgram/src/dfii.h @@ -3,16 +3,16 @@ #include -#define DFII_CONTROL_SEL (1 << 1) -#define DFII_CONTROL_CKE (1 << 2) -#define DFII_CONTROL_ODT (1 << 3) -#define DFII_CONTROL_RESET_N (1 << 4) +#define DFII_CONTROL_SEL (1 << 0) +#define DFII_CONTROL_CKE (1 << 1) +#define DFII_CONTROL_ODT (1 << 2) +#define DFII_CONTROL_RESET_N (1 << 3) -#define DFII_COMMAND_CS (1 << 1) -#define DFII_COMMAND_WE (1 << 2) -#define DFII_COMMAND_CAS (1 << 3) -#define DFII_COMMAND_RAS (1 << 4) -#define DFII_COMMAND_WRDATA (1 << 5) +#define DFII_COMMAND_CS (1 << 0) +#define DFII_COMMAND_WE (1 << 1) +#define DFII_COMMAND_CAS (1 << 2) +#define DFII_COMMAND_RAS (1 << 3) +#define DFII_COMMAND_WRDATA (1 << 4) void dfii_setsw(struct gramCtx *ctx, bool software_control); void dfii_initseq(struct gramCtx *ctx);