]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
x86: baytrail: pci region 3 is not always mapped to end of ram
authorAndrew Bradford <andrew.bradford@kodakalaris.com>
Wed, 3 Jun 2015 16:37:39 +0000 (12:37 -0400)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:48:16 +0000 (22:48 +0200)
commit58d3e6364e8a28145822fd4eb0aacbe9662555ca
tree470754d0fd397597258f21702742d6df1e1ddc63
parent9bae8f59022299180c22f214062dc21335ecc268
x86: baytrail: pci region 3 is not always mapped to end of ram

Baytrail physically maps the first 2 GB of SDRAM from 0x0 to 0x7FFFFFFF
and additional SDRAM is mapped from 0x100000000 and up.  There is a
physical memory hole from 0x80000000 to 0xFFFFFFFF for other uses.
Because of this, PCI region 3 should only try to use up to the amount of
SDRAM or 0x80000000, which ever is less.

Signed-off-by: Andrew Bradford <andrew.bradford@kodakalaris.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/baytrail/pci.c