board.h 439 B

1234567891011121314151617181920
  1. #ifndef __BOARD_H__
  2. #define __BOARD_H__
  3. #include <linux/init.h>
  4. #include <linux/of.h>
  5. bool board_staging_dt_node_available(const struct resource *resource,
  6. unsigned int num_resources);
  7. #define board_staging(str, fn) \
  8. static int __init runtime_board_check(void) \
  9. { \
  10. if (of_machine_is_compatible(str)) \
  11. fn(); \
  12. \
  13. return 0; \
  14. } \
  15. \
  16. late_initcall(runtime_board_check)
  17. #endif /* __BOARD_H__ */