libpayload arm64: Remove dependency on coreboot tables for dma areas
Libpayload should be able to setup its own dma areas and not depend on coreboot tables for passing this information. This patch and next allow libpayload to setup dma areas while performing mmu_init BUG=chrome-os-partner:31634 BRANCH=None TEST=Compiles successfully and dma areas are setup properly with the mmu init patch Change-Id: I44d9f394fa349abd7182c4ba10f1eaefd6e4fdaa Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://chromium-review.googlesource.com/216822 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Commit-Queue: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
parent
02bcdc7069
commit
4f3552b8d3
1 changed files with 1 additions and 11 deletions
|
|
@ -35,27 +35,17 @@
|
|||
/* This pointer gets set in head.S and is passed in from coreboot. */
|
||||
void *cb_header_ptr;
|
||||
|
||||
static void cb_parse_dma(void *ptr)
|
||||
{
|
||||
struct cb_range *dma = (struct cb_range *)ptr;
|
||||
init_dma_memory(phys_to_virt(dma->range_start), dma->range_size);
|
||||
}
|
||||
/* == Architecture specific == */
|
||||
|
||||
int cb_parse_arch_specific(struct cb_record *rec, struct sysinfo_t *info)
|
||||
{
|
||||
switch(rec->tag) {
|
||||
case CB_TAG_DMA:
|
||||
cb_parse_dma(rec);
|
||||
break;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* == Architecture specific == */
|
||||
/* FIXME put in actual address range */
|
||||
|
||||
int get_coreboot_info(struct sysinfo_t *info)
|
||||
{
|
||||
return cb_parse_header(cb_header_ptr, 1, info);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue