prom.h 552 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * arch/arm/include/asm/prom.h
  4. *
  5. * Copyright (C) 2009 Canonical Ltd. <[email protected]>
  6. */
  7. #ifndef __ASMARM_PROM_H
  8. #define __ASMARM_PROM_H
  9. #ifdef CONFIG_OF
  10. extern const struct machine_desc *setup_machine_fdt(void *dt_virt);
  11. extern void __init arm_dt_init_cpu_maps(void);
  12. #else /* CONFIG_OF */
  13. static inline const struct machine_desc *setup_machine_fdt(void *dt_virt)
  14. {
  15. return NULL;
  16. }
  17. static inline void arm_dt_init_cpu_maps(void) { }
  18. #endif /* CONFIG_OF */
  19. #endif /* ASMARM_PROM_H */