diff options
Diffstat (limited to 'src/mainboard/google/urara')
-rw-r--r-- | src/mainboard/google/urara/mainboard.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/mainboard/google/urara/mainboard.c b/src/mainboard/google/urara/mainboard.c index 1909fc861f..0a0cb020cc 100644 --- a/src/mainboard/google/urara/mainboard.c +++ b/src/mainboard/google/urara/mainboard.c @@ -18,9 +18,11 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, * MA 02110-1301 USA */ - +#include <arch/io.h> +#include <symbols.h> #include <console/console.h> #include <device/device.h> +#include <boot/coreboot_tables.h> static void mainboard_enable(device_t dev) { @@ -31,3 +33,13 @@ struct chip_operations mainboard_ops = { .enable_dev = mainboard_enable, }; +void lb_board(struct lb_header *header) +{ + struct lb_range *dma; + + dma = (struct lb_range *)lb_new_record(header); + dma->tag = LB_TAB_DMA; + dma->size = sizeof(*dma); + dma->range_start = (uintptr_t)_dma_coherent; + dma->range_size = _dma_coherent_size; +} |