coreboot-kgpe-d16/src/mainboard/google/auron
Tim Chen f3214d0248 auron: fix can not recognize 4G memory
Part of the following patch was lost in the merge from chromium.
This patch fixes up the spd_index for the copy from the SPD file.

In spd.c "spd_index *= SPD_LEN" will change the original spd_index
from gpio and let the following if(spd_index>3) to misjudge and
disable channel 1 incorrectly. So we calculate the index for spd file
memcpy when calling memcpy().

BUG=chrome-os-partner:32879
TEST=Can get total memory 4G on yuna 4G SKU
BRANCH=Auron

Original-Change-Id: Iebc49e20e4ca15ef6db8c4defe43cc22382a28bf
Original-Signed-off-by: Tim Chen <Tim-Chen@quantatw.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/234420
Original-Reviewed-by: Shawn N <shawnn@chromium.org>
Original-Commit-Queue: Shawn N <shawnn@chromium.org>
Original-Tested-by: Shawn N <shawnn@chromium.org>

(cherry picked from commit 3b1fce58b7b4b15e947b40fd011174d4e8e294bc)
Signed-off-by: Marc Jones <marc.jones@se-eng.com>

Change-Id: I03f9d63623e083c99d349d938fd802d828858f70
Reviewed-on: http://review.coreboot.org/11911
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Georg Wicherski <gw@oxff.net>
Tested-by: build bot (Jenkins)
2015-10-16 22:41:17 +00:00
..
acpi Remove address from GPLv2 headers 2015-06-24 07:09:24 +02:00
spd auron: fix can not recognize 4G memory 2015-10-16 22:41:17 +00:00
acpi_tables.c google/auron: Add mainboard 2015-06-13 18:09:20 +02:00
board_info.txt google/auron: Add mainboard 2015-06-13 18:09:20 +02:00
chromeos.c Expose get_lid_switch() in romstage 2015-06-30 08:10:11 +02:00
cmos.layout
devicetree.cb google/auron: Add mainboard 2015-06-13 18:09:20 +02:00
dsdt.asl google/auron: Add mainboard 2015-06-13 18:09:20 +02:00
ec.c google/auron: Add mainboard 2015-06-13 18:09:20 +02:00
ec.h google/auron: Add mainboard 2015-06-13 18:09:20 +02:00
fadt.c google/auron: Add mainboard 2015-06-13 18:09:20 +02:00
gpio.h google/auron: Add mainboard 2015-06-13 18:09:20 +02:00
hda_verb.c azalia: fix up and clean up shrinkage of boilerplate code 2015-07-14 13:40:07 +02:00
Kconfig ChromeOS mainboards: Move more Kconfig symbols under CHROMEOS 2015-08-26 15:45:36 +00:00
Kconfig.name google/auron: Add mainboard 2015-06-13 18:09:20 +02:00
mainboard.c azalia: fix up and clean up shrinkage of boilerplate code 2015-07-14 13:40:07 +02:00
Makefile.inc google/auron: Add mainboard 2015-06-13 18:09:20 +02:00
onboard.h google/auron: Add mainboard 2015-06-13 18:09:20 +02:00
pei_data.c Remove address from GPLv2 headers 2015-06-24 07:09:24 +02:00
romstage.c google/auron: Add mainboard 2015-06-13 18:09:20 +02:00
smihandler.c google/auron: Add mainboard 2015-06-13 18:09:20 +02:00
thermal.h google/auron: Add mainboard 2015-06-13 18:09:20 +02:00