Shawn Nematbakhsh | e9d060d | 2013-05-23 15:13:46 -0700 | [diff] [blame] | 1 | ## |
| 2 | ## This file is part of the coreboot project. |
| 3 | ## |
| 4 | ## Copyright (C) 2012 Google 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 | ## You should have received a copy of the GNU General Public License |
| 16 | ## along with this program; if not, write to the Free Software |
| 17 | ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | ## |
| 19 | |
| 20 | ramstage-$(CONFIG_EC_GOOGLE_CHROMEEC) += ec.c |
| 21 | |
Kyösti Mälkki | 5c4b848 | 2014-05-03 13:29:06 +0300 | [diff] [blame] | 22 | romstage-y += chromeos.c |
| 23 | ramstage-y += chromeos.c |
Ronald G. Minnich | 9518b56 | 2013-09-19 16:45:22 -0700 | [diff] [blame^] | 24 | ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += gma.c i915io.c |
Shawn Nematbakhsh | e9d060d | 2013-05-23 15:13:46 -0700 | [diff] [blame] | 25 | |
| 26 | smm-$(CONFIG_HAVE_SMI_HANDLER) += smihandler.c |
| 27 | |
| 28 | ## DIMM SPD for on-board memory |
| 29 | SPD_BIN = $(obj)/spd.bin |
| 30 | |
| 31 | # Order of names in SPD_SOURCES is important! |
Shawn Nematbakhsh | ebb8a1a | 2013-07-14 16:32:42 -0700 | [diff] [blame] | 32 | SPD_SOURCES = Micron_4KTF25664HZ # 0: 4GB / CH0 + CH1 |
| 33 | SPD_SOURCES += Hynix_HMT425S6AFR6A # 1: 4GB / CH0 + CH1 |
| 34 | SPD_SOURCES += Elpida_EDJ4216EFBG # 2: 4GB / CH0 + CH1 |
| 35 | SPD_SOURCES += Micron_4KTF25664HZ # 3: Reserved / place holder |
| 36 | SPD_SOURCES += Micron_4KTF25664HZ # 4: 2GB / CH0 + CH1 |
| 37 | SPD_SOURCES += Hynix_HMT425S6AFR6A # 5: 2GB / CH0 + CH1 |
| 38 | SPD_SOURCES += Elpida_EDJ4216EFBG # 6: 2GB / CH0 + CH1 |
Shawn Nematbakhsh | e9d060d | 2013-05-23 15:13:46 -0700 | [diff] [blame] | 39 | |
| 40 | SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/$(f).spd.hex) |
| 41 | |
| 42 | # Include spd rom data |
| 43 | $(SPD_BIN): $(SPD_DEPS) |
Duncan Laurie | 414cd43 | 2013-06-20 14:53:35 -0700 | [diff] [blame] | 44 | for f in $+; \ |
Shawn Nematbakhsh | e9d060d | 2013-05-23 15:13:46 -0700 | [diff] [blame] | 45 | do for c in $$(cat $$f | grep -v ^#); \ |
| 46 | do echo -e -n "\\x$$c"; \ |
| 47 | done; \ |
| 48 | done > $@ |
| 49 | |
| 50 | cbfs-files-y += spd.bin |
| 51 | spd.bin-file := $(SPD_BIN) |
| 52 | spd.bin-type := 0xab |