AGESA f12 f15: Add OEM customisation
[coreboot.git] / src / mainboard / amd / dinar / OemCustomize.c
blob84866dea5a82e34f08eb8d571ff8a3abcd230e72
1 /*
2 * This file is part of the coreboot project.
4 * Copyright (C) 2012 Advanced Micro Devices, Inc.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #include <northbridge/amd/agesa/agesawrapper.h>
17 #include <PlatformMemoryConfiguration.h>
19 /*----------------------------------------------------------------------------------------
20 * CUSTOMER OVERIDES MEMORY TABLE
21 *----------------------------------------------------------------------------------------
25 * Platform Specific Overriding Table allows IBV/OEM to pass in platform information to AGESA
26 * (e.g. MemClk routing, the number of DIMM slots per channel,...). If PlatformSpecificTable
27 * is populated, AGESA will base its settings on the data from the table. Otherwise, it will
28 * use its default conservative settings.
30 CONST PSO_ENTRY ROMDATA DefaultPlatformMemoryConfiguration[] = {
31 // Dinar has the following routing:
32 // CS0 M[B,A]_CLK_H/L[0]
33 // CS1 M[B,A]_CLK_H/L[2]
34 // CS2 M[B,A]_CLK_H/L[1]
35 // CS3 M[B,A]_CLK_H/L[3]
36 MEMCLK_DIS_MAP(ANY_SOCKET, ANY_CHANNEL, 0x00, 0x00, 0x01, 0x04, 0x02, 0x08, 0x00, 0x00),
37 NUMBER_OF_DIMMS_SUPPORTED (ANY_SOCKET, ANY_CHANNEL, 2),
38 PSO_END
42 static AGESA_STATUS OemInitPost(AMD_POST_PARAMS *InitPost)
44 InitPost->MemConfig.UmaMode = UMA_AUTO;
45 InitPost->MemConfig.BottomIo = 0xE0;
46 InitPost->MemConfig.UmaSize = 0xE0-0xC0;
47 return AGESA_SUCCESS;
50 const struct OEM_HOOK OemCustomize = {
51 .InitPost = OemInitPost,