Magnus Damm | 382063d | 2014-06-06 19:44:43 +0900 | [diff] [blame] | 1 | #ifndef __BOARD_H__ |
2 | #define __BOARD_H__ | ||||
3 | #include <linux/init.h> | ||||
4 | #include <linux/of.h> | ||||
5 | |||||
6 | bool board_staging_dt_node_available(const struct resource *resource, | ||||
7 | unsigned int num_resources); | ||||
8 | |||||
9 | #define board_staging(str, fn) \ | ||||
10 | static int __init runtime_board_check(void) \ | ||||
11 | { \ | ||||
12 | if (of_machine_is_compatible(str)) \ | ||||
13 | fn(); \ | ||||
14 | \ | ||||
15 | return 0; \ | ||||
16 | } \ | ||||
17 | \ | ||||
18 | late_initcall(runtime_board_check) | ||||
19 | |||||
20 | #endif /* __BOARD_H__ */ |