AMD/Bettong: Memory configuration for DDR3 and DDR4
1. Bettong Rev A-E are DDR3, Bettong Rev F is DDR4. 2. DDR4 uses different memory configuration in AGESA. Pass memory configuration parameters in agesawrapper_amdinitpost. 3. Tested on Rev C and Rev F. Both of them can boot to Windows 8 and have the correct memory size. Change-Id: Ia0d35ebf1b65c399abc3777ee6bdb107437a4345 Signed-off-by: WANG Siyuan <wangsiyuanbuaa@gmail.com> Signed-off-by: WANG Siyuan <SiYuan.Wang@amd.com> Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: http://review.coreboot.org/11733 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
parent
f3aea52a70
commit
fbdfed01eb
|
@ -27,6 +27,9 @@
|
|||
#include "hudson.h"
|
||||
#include <stdlib.h>
|
||||
#include "BiosCallOuts.h"
|
||||
#include "northbridge/amd/pi/agesawrapper.h"
|
||||
#include <PlatformMemoryConfiguration.h>
|
||||
#include <boardid.h>
|
||||
|
||||
static AGESA_STATUS Fch_Oem_config(UINT32 Func, UINT32 FchData, VOID *ConfigPtr);
|
||||
|
||||
|
@ -91,3 +94,26 @@ AGESA_STATUS Fch_Oem_config(UINT32 Func, UINT32 FchData, VOID *ConfigPtr)
|
|||
|
||||
return AGESA_SUCCESS;
|
||||
}
|
||||
|
||||
/* NOTE: Only for Bettong. */
|
||||
#ifdef __PRE_RAM__
|
||||
|
||||
const PSO_ENTRY DDR4PlatformMemoryConfiguration[] = {
|
||||
DRAM_TECHNOLOGY(ANY_SOCKET, DDR4_TECHNOLOGY),
|
||||
NUMBER_OF_DIMMS_SUPPORTED (ANY_SOCKET, ANY_CHANNEL, 2),
|
||||
NUMBER_OF_CHANNELS_SUPPORTED (ANY_SOCKET, 2),
|
||||
MOTHER_BOARD_LAYERS (LAYERS_6),
|
||||
MEMCLK_DIS_MAP (ANY_SOCKET, ANY_CHANNEL, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00),
|
||||
CKE_TRI_MAP (ANY_SOCKET, ANY_CHANNEL, 0xff, 0xff, 0xff, 0xff),
|
||||
ODT_TRI_MAP (ANY_SOCKET, ANY_CHANNEL, 0xff, 0xff, 0xff, 0xff),
|
||||
CS_TRI_MAP (ANY_SOCKET, ANY_CHANNEL, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00),
|
||||
PSO_END
|
||||
};
|
||||
|
||||
void OemPostParams(AMD_POST_PARAMS *PostParams)
|
||||
{
|
||||
if (board_id() == 'F') {
|
||||
PostParams->MemConfig.PlatformMemoryConfiguration = (PSO_ENTRY *)DDR4PlatformMemoryConfiguration;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue