spd.h: Move `DIMMx` macros to i440bx/raminit.h

These macros aren't needed anywhere else, so reduce their visibility.

Change-Id: Ie8d14849b4fb86d34a841d4a13ee3bbb46f9f71c
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52061
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Angel Pons 2021-04-02 19:27:30 +02:00 committed by Patrick Georgi
parent 527b68219f
commit 69e3fde5e4
2 changed files with 6 additions and 10 deletions

View File

@ -197,16 +197,6 @@ enum spd_memory_type {
#define MODULE_BUFFERED 1 #define MODULE_BUFFERED 1
#define MODULE_REGISTERED 2 #define MODULE_REGISTERED 2
/* DIMM SPD addresses */
#define DIMM0 0x50
#define DIMM1 0x51
#define DIMM2 0x52
#define DIMM3 0x53
#define DIMM4 0x54
#define DIMM5 0x55
#define DIMM6 0x56
#define DIMM7 0x57
/* Byte 3: Module type information */ /* Byte 3: Module type information */
#define SPD_UNDEFINED 0x00 #define SPD_UNDEFINED 0x00
#define SPD_RDIMM 0x01 #define SPD_RDIMM 0x01

View File

@ -6,6 +6,12 @@
/* The 440BX supports up to four (single- or double-sided) DIMMs. */ /* The 440BX supports up to four (single- or double-sided) DIMMs. */
#define DIMM_SOCKETS 4 #define DIMM_SOCKETS 4
/* DIMM SPD addresses */
#define DIMM0 0x50
#define DIMM1 0x51
#define DIMM2 0x52
#define DIMM3 0x53
void enable_spd(void); void enable_spd(void);
void disable_spd(void); void disable_spd(void);
void sdram_initialize(int s3resume); void sdram_initialize(int s3resume);