1 /* SPDX-License-Identifier: GPL-2.0-only */
8 #define MAX_DIMM_SOCKETS_PER_CHANNEL 4
9 #define MAX_NUM_CHANNELS 2
10 #define MAX_DIMM_SOCKETS (MAX_NUM_CHANNELS * MAX_DIMM_SOCKETS_PER_CHANNEL)
12 struct mem_controller
{
13 pci_devfn_t d0
, d0f1
; // PCI bus/device/fcns of E7501 memory controller
15 // SMBus addresses of DIMM slots for each channel,
16 // in order from closest to MCH to furthest away
18 uint16_t channel0
[MAX_DIMM_SOCKETS_PER_CHANNEL
];
19 uint16_t channel1
[MAX_DIMM_SOCKETS_PER_CHANNEL
];
22 void sdram_initialize(void);
24 #endif /* RAMINIT_H */