From a495335de44eead583fc98455191d3da74ccd984 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Mon, 7 May 2012 16:45:29 -0600 Subject: CIMx: Allow #define LEGACY_FREE overrides For legacy free AMD systems, the #define LEGACY_FREE cannot currently be overridden. This patch allows the platform_cfg.h to override that. (I know we want to get away from that, but for now...) Also allow BIOS_SIZE to be overridden on SB700 cimx based platforms. Change-Id: I570115248bcbc686062bfb66acb56208240b847a Signed-off-by: Martin L Roth Reviewed-on: http://review.coreboot.org/1018 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones --- src/vendorcode/amd/cimx/sb700/OEM.h | 8 ++++++-- src/vendorcode/amd/cimx/sb800/OEM.h | 4 +++- src/vendorcode/amd/cimx/sb900/Oem.h | 4 +++- 3 files changed, 12 insertions(+), 4 deletions(-) mode change 100644 => 100755 src/vendorcode/amd/cimx/sb900/Oem.h (limited to 'src') diff --git a/src/vendorcode/amd/cimx/sb700/OEM.h b/src/vendorcode/amd/cimx/sb700/OEM.h index 74604c0280..51a829694d 100644 --- a/src/vendorcode/amd/cimx/sb700/OEM.h +++ b/src/vendorcode/amd/cimx/sb700/OEM.h @@ -29,8 +29,12 @@ #ifndef _AMD_SB_CIMx_OEM_H_ #define _AMD_SB_CIMx_OEM_H_ -#define BIOS_SIZE 0x04 //04 - 1MB -#define LEGACY_FREE 0x00 +#ifndef BIOS_SIZE + #define BIOS_SIZE 0x04 //04 - 1MB +#endif +#ifndef LEGACY_FREE + #define LEGACY_FREE 0x00 +#endif /** * PCIEX_BASE_ADDRESS - Define PCIE base address diff --git a/src/vendorcode/amd/cimx/sb800/OEM.h b/src/vendorcode/amd/cimx/sb800/OEM.h index b38acba524..c2d8670e0c 100644 --- a/src/vendorcode/amd/cimx/sb800/OEM.h +++ b/src/vendorcode/amd/cimx/sb800/OEM.h @@ -33,7 +33,9 @@ #ifndef BIOS_SIZE #define BIOS_SIZE 0x04 //04 - 1MB #endif -#define LEGACY_FREE 0x00 +#ifndef LEGACY_FREE + #define LEGACY_FREE 0x00 +#endif //#define ACPI_SLEEP_TRAP 0x01 //#define SPREAD_SPECTRUM_EPROM_LOAD 0x01 diff --git a/src/vendorcode/amd/cimx/sb900/Oem.h b/src/vendorcode/amd/cimx/sb900/Oem.h old mode 100644 new mode 100755 index 14bc530ed7..f374b30a02 --- a/src/vendorcode/amd/cimx/sb900/Oem.h +++ b/src/vendorcode/amd/cimx/sb900/Oem.h @@ -30,7 +30,9 @@ #ifndef BIOS_SIZE #define BIOS_SIZE 0x04 //04 - 1MB #endif -#define LEGACY_FREE 0x00 +#ifndef LEGACY_FREE + #define LEGACY_FREE 0x00 +#endif #define ACPI_SLEEP_TRAP 0x01 //#define SPREAD_SPECTRUM_EPROM_LOAD 0x01 -- cgit v1.2.3