]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
x86: quark: Configure MTRR to enable cache
authorBin Meng <bmeng.cn@gmail.com>
Mon, 14 Sep 2015 07:07:41 +0000 (00:07 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 17 Sep 2015 01:53:53 +0000 (19:53 -0600)
commitc6d4705f41d4e45e8cecc6e08b0b89df1ffe57ef
tree85ef8dec9348cc1e33f4cf0daa4082c0cae2520e
parent0993fc026b5003cfc7da9abe8a3fddbd26c7ee44
x86: quark: Configure MTRR to enable cache

Quark SoC does not support MSR MTRRs. Fixed and variable range MTRRs
are accessed indirectly via the message port and not the traditional
MSR mechanism. Only UC, WT and WB cache types are supported.

We configure all the fixed range MTRRs with common values (VGA RAM
as UC, others as WB) and 3 variable range MTRRs for ROM/eSRAM/RAM as
WB, which significantly improves the boot time performance.

With this commit, it takes only 2 seconds for U-Boot to boot to shell
on Intel Galileo board. Previously it took about 6 seconds.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/quark/dram.c
arch/x86/cpu/quark/quark.c
arch/x86/include/asm/arch-quark/quark.h