prom.h 833 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * arch/arm/include/asm/prom.h
  3. *
  4. * Copyright (C) 2009 Canonical Ltd. <jeremy.kerr@canonical.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. *
  10. */
  11. #ifndef __ASMARM_PROM_H
  12. #define __ASMARM_PROM_H
  13. #define HAVE_ARCH_DEVTREE_FIXUPS
  14. #ifdef CONFIG_OF
  15. extern struct machine_desc *setup_machine_fdt(unsigned int dt_phys);
  16. extern void arm_dt_memblock_reserve(void);
  17. extern void __init arm_dt_init_cpu_maps(void);
  18. #else /* CONFIG_OF */
  19. static inline struct machine_desc *setup_machine_fdt(unsigned int dt_phys)
  20. {
  21. return NULL;
  22. }
  23. static inline void arm_dt_memblock_reserve(void) { }
  24. static inline void arm_dt_init_cpu_maps(void) { }
  25. #endif /* CONFIG_OF */
  26. #endif /* ASMARM_PROM_H */