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