devtree.c 479 B

1234567891011121314151617181920
  1. // SPDX-License-Identifier: GPL-2.0
  2. // Copyright (C) 2005-2017 Andes Technology Corporation
  3. #include <linux/bug.h>
  4. #include <linux/printk.h>
  5. #include <linux/of_fdt.h>
  6. void __init early_init_devtree(void *params)
  7. {
  8. if (!params || !early_init_dt_scan(params)) {
  9. pr_crit("\n"
  10. "Error: invalid device tree blob at (virtual address 0x%p)\n"
  11. "\nPlease check your bootloader.", params);
  12. BUG_ON(1);
  13. }
  14. dump_stack_set_arch_desc("%s (DT)", of_flat_dt_get_machine_name());
  15. }