Matt DeVillier | 9be3f5d | 2017-01-16 17:32:38 -0600 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License as published by |
| 6 | * the Free Software Foundation; version 2 of the License. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | #ifndef VARIANT_H |
| 15 | #define VARIANT_H |
| 16 | |
| 17 | /* |
| 18 | * RAM_ID[2:0] are on GPIO_SSUS[39:37] |
| 19 | * 0b0000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz |
| 20 | * 0b0001 - 4GiB total - 2 x 2GiB Hynix H5TC4G63AFR-PBA 1600MHz |
| 21 | * 0b0010 - 2GiB total - 2 x 1GiB Micron MT41K128M16JT-125:K 1600MHz |
| 22 | * 0b0011 - 2GiB total - 2 x 1GiB Hynix H5TC2G63FFR-PBA 1600MHz |
| 23 | * 0b0100 - 2GiB total - 2 x 1GiB Samsung K4B2G1646Q-BYK0 1600MHz |
| 24 | * 0b0101 - 2GiB total - 1 x 2GiB Hynix H5TC4G63AFR-PBA 1600MHz |
| 25 | * 0b0110 - 4GiB total - 2 x 2GiB Samsung K4B4G1646Q-HYK0 1600MHz |
| 26 | * 0b0111 - 4GiB total - 2 x 2GiB Elpida EDJ4216EFBG-GNL-F 1600MHz |
| 27 | * 0b1000 - 2GiB total - 1 x 2GiB Micron MT41K256M16HA-125:E 1600MHz |
| 28 | * 0b1001 - 2GiB total - 1 x 2GiB Elpida EDJ4216EFBG-GNL-F 1600MHz |
| 29 | * 0b1010 - 2GiB total - 1 x 2GiB Samsung K4B4G1646Q-HYK0 1600MHz |
| 30 | */ |
| 31 | |
| 32 | static const uint32_t dual_channel_config = |
| 33 | (1 << 0) | (1 << 1) | (1 << 2) | (1 << 3) | |
| 34 | (1 << 4) | (1 << 6) | (1 << 7); |
| 35 | |
| 36 | #define SPD_SIZE 256 |
| 37 | #define GPIO_SSUS_37_PAD 57 |
| 38 | #define GPIO_SSUS_38_PAD 50 |
| 39 | #define GPIO_SSUS_39_PAD 58 |
| 40 | #define GPIO_SSUS_40_PAD 52 |
Matt DeVillier | 474a7c5 | 2017-02-07 22:07:56 -0600 | [diff] [blame^] | 41 | #define GPIO_SSUS_40_PAD_USE_PULLDOWN |
Matt DeVillier | 9be3f5d | 2017-01-16 17:32:38 -0600 | [diff] [blame] | 42 | |
| 43 | #endif |