mainboard/intel/minnowmax: use Baytrail Gold3 FSP

Baytrail Gold3 FSP support memory down configuration.  Update Minnow Max
to use Gold3 FSP.  Set memory down data in devicetree.cb, instead of use
different FSP image.

Change-Id: Ic03da2d2a1cee5144b9a013d3dd9f982ff043123
Signed-off-by: York Yang <york.yang@intel.com>
Reviewed-on: http://review.coreboot.org/7581
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-by: Martin Roth <gaumless@gmail.com>
This commit is contained in:
York Yang
2014-11-25 15:54:08 -07:00
committed by Martin Roth
parent 5f19eb6f40
commit 4a91f64431
3 changed files with 34 additions and 19 deletions

22
src/mainboard/intel/minnowmax/Kconfig Normal file → Executable file
View File

@@ -2,6 +2,7 @@
## This file is part of the coreboot project. ## This file is part of the coreboot project.
## ##
## Copyright (C) 2013-2014 Sage Electronic Engineering, LLC. ## Copyright (C) 2013-2014 Sage Electronic Engineering, LLC.
## Copyright (C) 2014 Intel Corporation
## ##
## This program is free software; you can redistribute it and/or modify ## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by ## it under the terms of the GNU General Public License as published by
@@ -57,10 +58,6 @@ config MINNOWMAX_2GB_SKU
bool "2GB" bool "2GB"
endchoice endchoice
config MMCONF_BASE_ADDRESS
hex
default 0xe0000000
config IRQ_SLOT_COUNT config IRQ_SLOT_COUNT
int int
default 18 default 18
@@ -73,23 +70,18 @@ config CACHE_ROM_SIZE_OVERRIDE
hex hex
default 0x800000 default 0x800000
config FSP_LOC
hex
default 0xfffc0000
config FSP_FILE config FSP_FILE
string string
default "../intel/mainboard/intel/minnowmax/fsp/FvFsp_E3825_2gb.bin" if MINNOWMAX_2GB_SKU default "../intel/fsp/baytrail/BAYTRAIL_FSP.fd"
default "../intel/mainboard/intel/minnowmax/fsp/FvFsp_E3825_1gb.bin"
config MRC_CACHE_LOC_OVERRIDE config MRC_CACHE_LOC_OVERRIDE
hex hex
default 0xfff90000 default 0xfff80000
depends on ENABLE_FSP_FAST_BOOT depends on ENABLE_FSP_FAST_BOOT
config CBFS_SIZE config CBFS_SIZE
hex hex
default 0x00300000 default 0x00200000
config DRIVERS_PS2_KEYBOARD config DRIVERS_PS2_KEYBOARD
bool bool
@@ -119,10 +111,6 @@ config POST_DEVICE
config VGA_BIOS config VGA_BIOS
bool bool
default n default y if FSP_PACKAGE_DEFAULT
config VGA_BIOS_FILE
string
default "../intel/mainboard/intel/minnowmax/Vga.dat" if VGA_BIOS
endif # BOARD_INTEL_MINNOWMAX endif # BOARD_INTEL_MINNOWMAX

18
src/mainboard/intel/minnowmax/devicetree.cb Normal file → Executable file
View File

@@ -2,6 +2,7 @@
## This file is part of the coreboot project. ## This file is part of the coreboot project.
## ##
## Copyright (C) 2013-2014 Sage Electronic Engineering, LLC. ## Copyright (C) 2013-2014 Sage Electronic Engineering, LLC.
## Copyright (C) 2014 Intel Corporation
## ##
## This program is free software; you can redistribute it and/or modify ## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by ## it under the terms of the GNU General Public License as published by
@@ -36,6 +37,23 @@ chip soc/intel/fsp_baytrail
register "PcdLpssSioEnablePciMode" = "LPSS_PCI_MODE_DEFAULT" register "PcdLpssSioEnablePciMode" = "LPSS_PCI_MODE_DEFAULT"
register "AzaliaAutoEnable" = "AZALIA_FOLLOWS_DEVICETREE" register "AzaliaAutoEnable" = "AZALIA_FOLLOWS_DEVICETREE"
register "LpeAcpiModeEnable" = "LPE_ACPI_MODE_DISABLED" register "LpeAcpiModeEnable" = "LPE_ACPI_MODE_DISABLED"
register "IgdRenderStandby" = "IGD_RENDER_STANDBY_ENABLE"
register "EnableMemoryDown" = "MEMORY_DOWN_ENABLE"
register "DRAMSpeed" = "DRAM_SPEED_1066MHZ"
register "DRAMType" = "DRAM_TYPE_DDR3L"
register "DIMM0Enable" = "DIMM0_ENABLE"
register "DIMM1Enable" = "DIMM1_DISABLE"
register "DIMMDWidth" = "DIMM_DWIDTH_X16"
register "DIMMDensity" = "DIMM_DENSITY_2G_BIT"
register "DIMMBusWidth" = "DIMM_BUS_WIDTH_64BIT"
register "DIMMSides" = "DIMM_SIDES_1RANK"
register "DIMMtCL" = "11"
register "DIMMtRPtRCD" = "11"
register "DIMMtWR" = "12"
register "DIMMtWTR" = "6"
register "DIMMtRRD" = "6"
register "DIMMtRTP" = "6"
register "DIMMtFAW" = "20"
device cpu_cluster 0 on device cpu_cluster 0 on
device lapic 0 on end device lapic 0 on end

13
src/mainboard/intel/minnowmax/romstage.c Normal file → Executable file
View File

@@ -3,6 +3,7 @@
* *
* Copyright (C) 2013 Google Inc. * Copyright (C) 2013 Google Inc.
* Copyright (C) 2013 Sage Electronic Engineering, LLC. * Copyright (C) 2013 Sage Electronic Engineering, LLC.
* Copyright (C) 2014 Intel Corporation
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@@ -20,6 +21,7 @@
#include <baytrail/romstage.h> #include <baytrail/romstage.h>
#include <drivers/intel/fsp/fsp_util.h> #include <drivers/intel/fsp/fsp_util.h>
#include "chip.h"
/** /**
* /brief mainboard call for setup that needs to be done before fsp init * /brief mainboard call for setup that needs to be done before fsp init
@@ -53,8 +55,15 @@ void romstage_fsp_rt_buffer_callback(FSP_INIT_RT_BUFFER *FspRtBuffer)
{ {
UPD_DATA_REGION *UpdData = FspRtBuffer->Common.UpdDataRgnPtr; UPD_DATA_REGION *UpdData = FspRtBuffer->Common.UpdDataRgnPtr;
/* Disable 2nd DIMM */ /*
UpdData->PcdMrcInitSPDAddr2 = 0x00; * Minnow Max Board : 1GB SKU uses 2Gb density memory
* 2GB SKU uses 4Gb densiry memory
*
* devicetree.cb assume 1GB SKU board
*/
if (CONFIG_MINNOWMAX_2GB_SKU)
UpdData->PcdMemoryParameters.DIMMDensity
+= (DIMM_DENSITY_4G_BIT - DIMM_DENSITY_2G_BIT);
return; return;
} }