UCB RISCV: Switch to DYNAMIC_CBMEM
Change-Id: Iaaf68fd19f7b9a5b6849fffde3a9c68cb7862367 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/7619 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
parent
c36e278c50
commit
aca2150a4f
|
@ -29,15 +29,6 @@
|
||||||
|
|
||||||
#define MAX_COREBOOT_TABLE_SIZE (8 * 1024)
|
#define MAX_COREBOOT_TABLE_SIZE (8 * 1024)
|
||||||
|
|
||||||
#if ! IS_ENABLED(CONFIG_DYNAMIC_CBMEM)
|
|
||||||
/*
|
|
||||||
* TODO: "High" tables are a convention used on x86. Maybe we can
|
|
||||||
* clean up that naming at some point.
|
|
||||||
*/
|
|
||||||
uint64_t high_tables_base = 0;
|
|
||||||
uint64_t high_tables_size;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void cbmem_arch_init(void)
|
void cbmem_arch_init(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -47,14 +38,6 @@ static struct lb_memory *wtf_write_tables(void)
|
||||||
{
|
{
|
||||||
unsigned long table_pointer, new_table_pointer;
|
unsigned long table_pointer, new_table_pointer;
|
||||||
|
|
||||||
#if ! IS_ENABLED(CONFIG_DYNAMIC_CBMEM)
|
|
||||||
if (!high_tables_base) {
|
|
||||||
printk(BIOS_ERR, "ERROR: high_tables_base is not set.\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
printk(BIOS_DEBUG, "high_tables_base: %llx.\n", high_tables_base);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
post_code(0x9d);
|
post_code(0x9d);
|
||||||
|
|
||||||
table_pointer = (unsigned long)cbmem_add(CBMEM_ID_CBTABLE,
|
table_pointer = (unsigned long)cbmem_add(CBMEM_ID_CBTABLE,
|
||||||
|
@ -91,6 +74,3 @@ void write_tables(void)
|
||||||
void cbmem_fail_resume(void)
|
void cbmem_fail_resume(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
void get_cbmem_table(uint64_t *base, uint64_t *size)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ config SOC_UCB_RISCV
|
||||||
select ARCH_BOOTBLOCK_RISCV
|
select ARCH_BOOTBLOCK_RISCV
|
||||||
select ARCH_ROMSTAGE_RISCV
|
select ARCH_ROMSTAGE_RISCV
|
||||||
select ARCH_RAMSTAGE_RISCV
|
select ARCH_RAMSTAGE_RISCV
|
||||||
|
select DYNAMIC_CBMEM
|
||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue