blob: 2b55feeb1cacf2eecbc5dca37038f770e945bae5 [file] [log] [blame]
Frank Vibrans63e62b02011-02-14 18:38:14 +00001#
2# This file is part of the coreboot project.
3#
4# Copyright (C) 2011 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# 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
Frank Vibrans63e62b02011-02-14 18:38:14 +000020
21# SB800 Platform Files
22
23romstage-y += cfg.c
24romstage-y += early.c
25romstage-y += smbus.c
26
27ramstage-y += cfg.c
28ramstage-y += late.c
29
zbao01bd79f2012-03-23 11:36:08 +080030ramstage-$(CONFIG_HAVE_ACPI_RESUME) += spi.c
31
Frank Vibrans63e62b02011-02-14 18:38:14 +000032driver-y += smbus.c
33driver-y += lpc.c
34
Kerry Shehd4a0e7d2011-10-10 17:17:39 +080035ifeq ($(CONFIG_SB800_SATA_AHCI), y)
36ifdef CONFIG_SB800_AHCI_ROM
37 stripped_ahci_rom_id = $(call strip_quotes,$(CONFIG_AHCI_ROM_ID))
38 cbfs-files-y += pci$(stripped_ahci_rom_id).rom
39 pci$(stripped_ahci_rom_id).rom-file := $(call strip_quotes,$(CONFIG_AHCI_ROM_FILE))
40 pci$(stripped_ahci_rom_id).rom-type := optionrom
41endif
42endif
Frank Vibrans63e62b02011-02-14 18:38:14 +000043
Kerry Shehd4a0e7d2011-10-10 17:17:39 +080044ifeq ($(CONFIG_SB800_SATA_RAID), y)
45 stripped_raid_rom_id = $(call strip_quotes,$(CONFIG_RAID_ROM_ID))
46 cbfs-files-y += pci$(stripped_raid_rom_id).rom
47 pci$(stripped_raid_rom_id).rom-file := $(call strip_quotes,$(CONFIG_RAID_ROM_FILE))
48 pci$(stripped_raid_rom_id).rom-type := optionrom
49
50 cbfs-files-y += raid/misc.bin
51 raid/misc.bin-file := $(call strip_quotes,$(CONFIG_RAID_MISC_ROM_FILE))
Kerry Sheh55437c52011-10-12 11:42:59 +080052 raid/misc.bin-position := $(CONFIG_RAID_MISC_ROM_POSITION)
Kerry Shehd4a0e7d2011-10-10 17:17:39 +080053 raid/misc.bin-type := raw
54endif