lib/coreboot_table: add function to allow arch code to add records
Add lb_arch_add_records() to allow the architecture code to generically hook into the coreboot table generation. BUG=chrome-os-partner:50214 BRANCH=glados TEST=With all subsequent patches confirmed lb_arch_add_records() is called when a strong symbol is provided. Change-Id: I7c69c0ff0801392bbcf5aef586a48388b624afd4 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/13669 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Andrey Petrov <andrey.petrov@intel.com>
This commit is contained in:
parent
38cd3756b8
commit
f6ada1c307
|
@ -54,3 +54,7 @@ void write_tables(void)
|
||||||
/* Print CBMEM sections */
|
/* Print CBMEM sections */
|
||||||
cbmem_list();
|
cbmem_list();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void lb_arch_add_records(struct lb_header *header)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
|
@ -54,3 +54,7 @@ void write_tables(void)
|
||||||
/* Print CBMEM sections */
|
/* Print CBMEM sections */
|
||||||
cbmem_list();
|
cbmem_list();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void lb_arch_add_records(struct lb_header *header)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
|
@ -55,3 +55,7 @@ void write_tables(void)
|
||||||
/* Print CBMEM sections */
|
/* Print CBMEM sections */
|
||||||
cbmem_list();
|
cbmem_list();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void lb_arch_add_records(struct lb_header *header)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
|
@ -62,3 +62,7 @@ void write_tables(void)
|
||||||
{
|
{
|
||||||
wtf_write_tables();
|
wtf_write_tables();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void lb_arch_add_records(struct lb_header *header)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <boot/coreboot_tables.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <cpu/cpu.h>
|
#include <cpu/cpu.h>
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
|
@ -287,3 +288,7 @@ void cpu_initialize(unsigned int index)
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void lb_arch_add_records(struct lb_header *header)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
|
@ -22,6 +22,9 @@ void lb_board(struct lb_header *header);
|
||||||
/* Define this in soc or fsp driver to add specific table entries. */
|
/* Define this in soc or fsp driver to add specific table entries. */
|
||||||
void lb_framebuffer(struct lb_header *header);
|
void lb_framebuffer(struct lb_header *header);
|
||||||
|
|
||||||
|
/* Allow arch to add records. */
|
||||||
|
void lb_arch_add_records(struct lb_header *header);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Function to retrieve MAC address(es) from the VPD and store them in the
|
* Function to retrieve MAC address(es) from the VPD and store them in the
|
||||||
* coreboot table.
|
* coreboot table.
|
||||||
|
|
|
@ -540,6 +540,9 @@ unsigned long write_coreboot_table(
|
||||||
|
|
||||||
lb_boot_media_params(head);
|
lb_boot_media_params(head);
|
||||||
|
|
||||||
|
/* Add architecture records. */
|
||||||
|
lb_arch_add_records(head);
|
||||||
|
|
||||||
/* Add all cbmem entries into the coreboot tables. */
|
/* Add all cbmem entries into the coreboot tables. */
|
||||||
cbmem_add_records_to_cbtable(head);
|
cbmem_add_records_to_cbtable(head);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue