diff options
author | Angel Pons <th3fanbus@gmail.com> | 2020-05-03 00:25:02 +0200 |
---|---|---|
committer | Angel Pons <th3fanbus@gmail.com> | 2020-05-21 18:28:54 +0000 |
commit | 3abd206d4f67fe8e25403b74fdd69a5a4392597f (patch) | |
tree | d9384177affe8d83f5d47fcb9ffcf971a87198a8 /src/northbridge/intel/sandybridge/raminit_common.h | |
parent | 38d901e88dcb6e8f20af3c66c69978732c2b71f1 (diff) |
nb/intel/sandybridge: Use the new IOSAV struct API
Now that we have created the IOSAV API, we can put it to good use.
Drop all the helper macros and replace them with struct constructs.
Tested with BUILD_TIMELESS=1, ASUS P8Z77-V LX2 remains unchanged.
Change-Id: Ib366e364df11c9bb240cdfbce418540ec715c634
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41003
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/northbridge/intel/sandybridge/raminit_common.h')
-rw-r--r-- | src/northbridge/intel/sandybridge/raminit_common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/northbridge/intel/sandybridge/raminit_common.h b/src/northbridge/intel/sandybridge/raminit_common.h index 6e76cbc0bb..3f31950408 100644 --- a/src/northbridge/intel/sandybridge/raminit_common.h +++ b/src/northbridge/intel/sandybridge/raminit_common.h @@ -25,6 +25,7 @@ #define NUM_SLOTS 2 #define NUM_LANES 9 +/* IOSAV_n_SP_CMD_CTRL DRAM commands */ #define IOSAV_MRS (0xf000) #define IOSAV_PRE (0xf002) #define IOSAV_ZQCS (0xf003) @@ -34,6 +35,12 @@ #define IOSAV_WR (0xf201) #define IOSAV_NOP (0xf207) +/* IOSAV_n_SUBSEQ_CTRL data direction */ +#define SSQ_NA 0 /* Non-data */ +#define SSQ_RD 1 /* Read */ +#define SSQ_WR 2 /* Write */ +#define SSQ_RW 3 /* Read and write */ + struct iosav_ssq { /* IOSAV_n_SP_CMD_CTRL */ union { |