Marc Jones | 2d79f16 | 2017-05-22 21:35:16 -0600 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2015-2016 Advanced Micro Devices, Inc. |
| 5 | * |
| 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. |
| 9 | * |
| 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. |
| 14 | */ |
| 15 | |
Marshall Dawson | 3f6c400 | 2017-09-25 10:11:50 -0600 | [diff] [blame] | 16 | #include <chip.h> |
Richard Spiegel | 0ad74ac | 2017-12-08 16:53:29 -0700 | [diff] [blame^] | 17 | #include <amdblocks/agesawrapper.h> |
Marc Jones | 2d79f16 | 2017-05-22 21:35:16 -0600 | [diff] [blame] | 18 | |
Marshall Dawson | 3f6c400 | 2017-09-25 10:11:50 -0600 | [diff] [blame] | 19 | #define DIMMS_PER_CHANNEL 1 |
| 20 | #if DIMMS_PER_CHANNEL > MAX_DIMMS_PER_CH |
| 21 | #error "Too many DIMM sockets defined for the mainboard" |
| 22 | #endif |
| 23 | |
Marc Jones | 2d79f16 | 2017-05-22 21:35:16 -0600 | [diff] [blame] | 24 | static const PSO_ENTRY DDR4PlatformMemoryConfiguration[] = { |
| 25 | DRAM_TECHNOLOGY(ANY_SOCKET, DDR4_TECHNOLOGY), |
Marshall Dawson | 3f6c400 | 2017-09-25 10:11:50 -0600 | [diff] [blame] | 26 | NUMBER_OF_DIMMS_SUPPORTED(ANY_SOCKET, ANY_CHANNEL, DIMMS_PER_CHANNEL), |
| 27 | NUMBER_OF_CHANNELS_SUPPORTED(ANY_SOCKET, MAX_DRAM_CH), |
Marc Jones | 2d79f16 | 2017-05-22 21:35:16 -0600 | [diff] [blame] | 28 | MOTHER_BOARD_LAYERS(LAYERS_6), |
| 29 | MEMCLK_DIS_MAP(ANY_SOCKET, ANY_CHANNEL, |
| 30 | 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00), |
| 31 | CKE_TRI_MAP(ANY_SOCKET, ANY_CHANNEL, 0xff, 0xff, 0xff, 0xff), |
| 32 | ODT_TRI_MAP(ANY_SOCKET, ANY_CHANNEL, 0xff, 0xff, 0xff, 0xff), |
| 33 | CS_TRI_MAP(ANY_SOCKET, ANY_CHANNEL, |
| 34 | 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00), |
| 35 | PSO_END |
| 36 | }; |
| 37 | |
| 38 | void OemPostParams(AMD_POST_PARAMS *PostParams) |
| 39 | { |
| 40 | PostParams->MemConfig.PlatformMemoryConfiguration = |
| 41 | (PSO_ENTRY *)DDR4PlatformMemoryConfiguration; |
Marc Jones | 2d79f16 | 2017-05-22 21:35:16 -0600 | [diff] [blame] | 42 | } |