Drop non-dynamic CBMEM support from ARM mainboards
All ARM systems we support have dynamic CBMEM support. Hence drop non-dynamic CBMEM support from the mainboard specific code. BUG=none BRANCH=none TEST=boot tested on pit Change-Id: Icdff8dd8306ca40f86f08dee2a65f03a526b99db Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: https://chromium-review.googlesource.com/168573 Reviewed-by: Gabe Black <gabeblack@chromium.org>
This commit is contained in:
parent
cc866c20c6
commit
1f1a76c8ff
3 changed files with 0 additions and 30 deletions
|
|
@ -430,16 +430,6 @@ static void mainboard_enable(device_t dev)
|
|||
{
|
||||
dev->ops->init = &mainboard_init;
|
||||
|
||||
#if !CONFIG_DYNAMIC_CBMEM
|
||||
/* set up coreboot tables */
|
||||
/* FIXME: this should happen somewhere else */
|
||||
high_tables_size = CONFIG_COREBOOT_TABLES_SIZE;
|
||||
high_tables_base = CONFIG_SYS_SDRAM_BASE +
|
||||
((unsigned)CONFIG_DRAM_SIZE_MB << 20ULL) -
|
||||
CONFIG_COREBOOT_TABLES_SIZE;
|
||||
cbmem_init(high_tables_base, high_tables_size);
|
||||
#endif
|
||||
|
||||
/* set up caching for the DRAM */
|
||||
mmu_config_range(DRAM_START, DRAM_SIZE, DCACHE_WRITEBACK);
|
||||
mmu_config_range(DMA_START >> 20, DMA_SIZE >> 20, DCACHE_OFF);
|
||||
|
|
|
|||
|
|
@ -453,16 +453,6 @@ static void mainboard_enable(device_t dev)
|
|||
{
|
||||
dev->ops->init = &mainboard_init;
|
||||
|
||||
#if !CONFIG_DYNAMIC_CBMEM
|
||||
/* set up coreboot tables */
|
||||
/* FIXME: this should happen somewhere else */
|
||||
high_tables_size = CONFIG_COREBOOT_TABLES_SIZE;
|
||||
high_tables_base = CONFIG_SYS_SDRAM_BASE +
|
||||
((unsigned)CONFIG_DRAM_SIZE_MB << 20ULL) -
|
||||
CONFIG_COREBOOT_TABLES_SIZE;
|
||||
cbmem_init(high_tables_base, high_tables_size);
|
||||
#endif
|
||||
|
||||
/* set up caching for the DRAM */
|
||||
mmu_config_range(DRAM_START, DRAM_SIZE, DCACHE_WRITEBACK);
|
||||
mmu_config_range(DMA_START >> 20, DMA_SIZE >> 20, DCACHE_OFF);
|
||||
|
|
|
|||
|
|
@ -317,16 +317,6 @@ static void mainboard_enable(device_t dev)
|
|||
{
|
||||
dev->ops->init = &mainboard_init;
|
||||
|
||||
#if !CONFIG_DYNAMIC_CBMEM
|
||||
/* set up coreboot tables */
|
||||
/* FIXME: this should happen somewhere else */
|
||||
high_tables_size = CONFIG_COREBOOT_TABLES_SIZE;
|
||||
high_tables_base = CONFIG_SYS_SDRAM_BASE +
|
||||
((unsigned)CONFIG_DRAM_SIZE_MB << 20ULL) -
|
||||
CONFIG_COREBOOT_TABLES_SIZE;
|
||||
cbmem_init(high_tables_base, high_tables_size);
|
||||
#endif
|
||||
|
||||
/* set up dcache and MMU */
|
||||
/* FIXME: this should happen via resource allocator */
|
||||
exynos5250_config_l2_cache();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue