14e2277962
while others dislike them being extra commits, let's clean them up once and for all for the existing code. If it's ugly, let it only be ugly once :-) Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5507 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
22 lines
629 B
C
22 lines
629 B
C
#ifndef RAMINIT_H
|
|
#define RAMINIT_H
|
|
|
|
#define MAX_DIMM_SOCKETS_PER_CHANNEL 4
|
|
#define MAX_NUM_CHANNELS 2
|
|
#define MAX_DIMM_SOCKETS (MAX_NUM_CHANNELS * MAX_DIMM_SOCKETS_PER_CHANNEL)
|
|
|
|
struct mem_controller {
|
|
device_t d0, d0f1; // PCI bus/device/fcns of E7501 memory controller
|
|
|
|
// SMBus addresses of DIMM slots for each channel,
|
|
// in order from closest to MCH to furthest away
|
|
// 0 == not present
|
|
uint16_t channel0[MAX_DIMM_SOCKETS_PER_CHANNEL];
|
|
uint16_t channel1[MAX_DIMM_SOCKETS_PER_CHANNEL];
|
|
};
|
|
|
|
#ifndef __ROMCC__
|
|
void sdram_initialize(int controllers, const struct mem_controller *ctrl);
|
|
#endif
|
|
|
|
#endif /* RAMINIT_H */
|