Frank Vibrans | 63e62b0 | 2011-02-14 18:38:14 +0000 | [diff] [blame] | 1 | # |
| 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 | # |
Frank Vibrans | 63e62b0 | 2011-02-14 18:38:14 +0000 | [diff] [blame] | 15 | |
Frank Vibrans | 63e62b0 | 2011-02-14 18:38:14 +0000 | [diff] [blame] | 16 | |
| 17 | # SB800 Platform Files |
| 18 | |
| 19 | romstage-y += cfg.c |
| 20 | romstage-y += early.c |
Kyösti Mälkki | a1ebbc4 | 2014-10-17 22:33:22 +0300 | [diff] [blame] | 21 | romstage-y += smbus.c smbus_spd.c |
Kyösti Mälkki | 56892fc | 2013-06-16 17:12:37 +0300 | [diff] [blame] | 22 | romstage-y += reset.c |
Frank Vibrans | 63e62b0 | 2011-02-14 18:38:14 +0000 | [diff] [blame] | 23 | |
| 24 | ramstage-y += cfg.c |
| 25 | ramstage-y += late.c |
Kyösti Mälkki | 56892fc | 2013-06-16 17:12:37 +0300 | [diff] [blame] | 26 | ramstage-y += reset.c |
Frank Vibrans | 63e62b0 | 2011-02-14 18:38:14 +0000 | [diff] [blame] | 27 | |
Martin Roth | e899e51 | 2012-12-05 16:07:11 -0700 | [diff] [blame] | 28 | ramstage-$(CONFIG_SB800_MANUAL_FAN_CONTROL) += fan.c |
| 29 | ramstage-$(CONFIG_SB800_IMC_FAN_CONTROL) += fan.c |
Kyösti Mälkki | adf3d6f | 2014-06-19 16:51:54 +0300 | [diff] [blame] | 30 | ramstage-$(CONFIG_SPI_FLASH) += spi.c |
Vladimir Serbinenko | 822bc65 | 2014-01-03 15:55:40 +0100 | [diff] [blame] | 31 | ramstage-$(CONFIG_HAVE_ACPI_TABLES) += fadt.c |
zbao | 01bd79f | 2012-03-23 11:36:08 +0800 | [diff] [blame] | 32 | |
Kyösti Mälkki | 63fac81 | 2017-09-02 16:41:43 +0300 | [diff] [blame] | 33 | postcar-y += ramtop.c |
Kyösti Mälkki | 61be360 | 2017-04-15 20:07:53 +0300 | [diff] [blame] | 34 | romstage-y += ramtop.c |
| 35 | ramstage-y += ramtop.c |
Kyösti Mälkki | 78c5d58 | 2015-01-09 23:48:47 +0200 | [diff] [blame] | 36 | |
Arthur Heymans | adc4753 | 2018-12-28 15:48:58 +0100 | [diff] [blame^] | 37 | bootblock-$(CONFIG_USBDEBUG) += ../../sb800/enable_usbdebug.c |
| 38 | romstage-$(CONFIG_USBDEBUG) += ../../sb800/enable_usbdebug.c |
Kyösti Mälkki | 0010bf6 | 2013-06-11 16:32:01 +0300 | [diff] [blame] | 39 | ramstage-$(CONFIG_USBDEBUG) += ../../sb800/enable_usbdebug.c |
Zheng Bao | b01097e | 2012-12-14 15:58:15 +0800 | [diff] [blame] | 40 | |
Patrick Georgi | 23f38cd | 2012-11-16 14:50:32 +0100 | [diff] [blame] | 41 | ramstage-y += smbus.c |
| 42 | ramstage-y += lpc.c |
Frank Vibrans | 63e62b0 | 2011-02-14 18:38:14 +0000 | [diff] [blame] | 43 | |
Kerry Sheh | d4a0e7d | 2011-10-10 17:17:39 +0800 | [diff] [blame] | 44 | ifeq ($(CONFIG_SB800_SATA_AHCI), y) |
| 45 | ifdef CONFIG_SB800_AHCI_ROM |
| 46 | stripped_ahci_rom_id = $(call strip_quotes,$(CONFIG_AHCI_ROM_ID)) |
| 47 | cbfs-files-y += pci$(stripped_ahci_rom_id).rom |
| 48 | pci$(stripped_ahci_rom_id).rom-file := $(call strip_quotes,$(CONFIG_AHCI_ROM_FILE)) |
| 49 | pci$(stripped_ahci_rom_id).rom-type := optionrom |
| 50 | endif |
| 51 | endif |
Frank Vibrans | 63e62b0 | 2011-02-14 18:38:14 +0000 | [diff] [blame] | 52 | |
Kerry Sheh | d4a0e7d | 2011-10-10 17:17:39 +0800 | [diff] [blame] | 53 | ifeq ($(CONFIG_SB800_SATA_RAID), y) |
| 54 | stripped_raid_rom_id = $(call strip_quotes,$(CONFIG_RAID_ROM_ID)) |
| 55 | cbfs-files-y += pci$(stripped_raid_rom_id).rom |
| 56 | pci$(stripped_raid_rom_id).rom-file := $(call strip_quotes,$(CONFIG_RAID_ROM_FILE)) |
| 57 | pci$(stripped_raid_rom_id).rom-type := optionrom |
| 58 | |
| 59 | cbfs-files-y += raid/misc.bin |
| 60 | raid/misc.bin-file := $(call strip_quotes,$(CONFIG_RAID_MISC_ROM_FILE)) |
Kerry Sheh | 55437c5 | 2011-10-12 11:42:59 +0800 | [diff] [blame] | 61 | raid/misc.bin-position := $(CONFIG_RAID_MISC_ROM_POSITION) |
Kerry Sheh | d4a0e7d | 2011-10-10 17:17:39 +0800 | [diff] [blame] | 62 | raid/misc.bin-type := raw |
| 63 | endif |
Martin Roth | e899e51 | 2012-12-05 16:07:11 -0700 | [diff] [blame] | 64 | |
| 65 | ifeq ($(CONFIG_SB800_IMC_FWM), y) |
| 66 | |
| 67 | # ROMSIG At ROMBASE + 0x20000: |
| 68 | # +-----------+---------------+----------------+------------+ |
| 69 | # |0x55AA55AA |EC ROM Address |GEC ROM Address | | |
| 70 | # +-----------+---------------+----------------+------------+ |
| 71 | # EC ROM should be 64K aligned. |
| 72 | SB800_FWM_POSITION=$(shell printf %u $(CONFIG_SB800_FWM_POSITION)) |
| 73 | #assume the cbfs header is less than 128 bytes. |
| 74 | ROMSIG_SIZE=16 |
| 75 | |
Patrick Georgi | 3eefeea | 2014-11-12 19:11:50 +0100 | [diff] [blame] | 76 | SB800_IMC_POSITION=$(call int-align,$(call add-int,$(SB800_FWM_POSITION) $(ROMSIG_SIZE) 128),65536) |
Martin Roth | e899e51 | 2012-12-05 16:07:11 -0700 | [diff] [blame] | 77 | |
| 78 | $(obj)/coreboot_SB800_romsig.bin: \ |
| 79 | $(call strip_quotes, $(CONFIG_SB800_IMC_FWM_FILE)) \ |
| 80 | $(obj)/config.h \ |
| 81 | $(obj)/mainboard/$(MAINBOARDDIR)/static.c |
| 82 | echo " SB800 FW $@" |
| 83 | for fwm in 1437226410 \ |
| 84 | $(SB800_IMC_POSITION) \ |
| 85 | 0 \ |
| 86 | 0 ; do \ |
| 87 | echo $$fwm | LC_ALL=C awk '{printf ("%c%c%c%c", $$1 % 256, int($$1/256) % 256, int($$1/65536) % 256, int($$1/16777216));}'; \ |
| 88 | done > $@ |
| 89 | |
| 90 | cbfs-files-y += SB800/fwm |
| 91 | SB800/fwm-file := $(obj)/coreboot_SB800_romsig.bin |
| 92 | SB800/fwm-position := $(SB800_FWM_POSITION) |
| 93 | SB800/fwm-type := raw |
| 94 | |
| 95 | cbfs-files-y += SB800/imc |
| 96 | SB800/imc-file := $(call strip_quotes, $(CONFIG_SB800_IMC_FWM_FILE)) |
| 97 | SB800/imc-position := $(SB800_IMC_POSITION) |
| 98 | SB800/imc-type := raw |
| 99 | |
| 100 | endif |