From cc51256c749f1fb7eef80d1116f5ee402849fc21 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Thu, 4 Sep 2014 15:22:53 -0700 Subject: 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: I5f6fd19a957c7626a2bbe6b826c8987e64ed248f Signed-off-by: Patrick Georgi Original-Commit-Id: 4f3552b8d3439a8b12d1e0b15ef67dcb14b8c96a Original-Change-Id: I44d9f394fa349abd7182c4ba10f1eaefd6e4fdaa Original-Signed-off-by: Furquan Shaikh Original-Reviewed-on: https://chromium-review.googlesource.com/216822 Original-Reviewed-by: Aaron Durbin Original-Tested-by: Furquan Shaikh Original-Commit-Queue: Furquan Shaikh Reviewed-on: http://review.coreboot.org/8789 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- payloads/libpayload/arch/arm64/coreboot.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'payloads/libpayload') diff --git a/payloads/libpayload/arch/arm64/coreboot.c b/payloads/libpayload/arch/arm64/coreboot.c index 03aec5733c..a25c51adff 100644 --- a/payloads/libpayload/arch/arm64/coreboot.c +++ b/payloads/libpayload/arch/arm64/coreboot.c @@ -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 lb_range *dma = (struct lb_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); -- cgit v1.2.3