Rename cache_lbmem() to cache_ramstage()
... and don't require it to specify a cache type. This function is only used on romcc boards, and should go away (because all boards should be switched to CAR) Change-Id: Ic32ca3be1afffc773c72c140e88b338d48a0c8ca Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/1288 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
parent
9764d4c690
commit
b91a0f2b83
5 changed files with 7 additions and 7 deletions
|
|
@ -21,11 +21,11 @@ static void set_var_mtrr(
|
|||
}
|
||||
|
||||
#if !defined(CONFIG_CACHE_AS_RAM) || !CONFIG_CACHE_AS_RAM
|
||||
static void cache_lbmem(int type)
|
||||
static void cache_ramstage(void)
|
||||
{
|
||||
/* Enable caching for 0 - 1MB using variable mtrr */
|
||||
/* Enable caching for lower 1MB and ram stage using variable mtrr */
|
||||
disable_cache();
|
||||
set_var_mtrr(0, 0x00000000, CONFIG_RAMTOP, type);
|
||||
set_var_mtrr(0, 0x00000000, CONFIG_RAMTOP, MTRR_TYPE_WRBACK);
|
||||
enable_cache();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue