Commit | Line | Data |
---|---|---|
382063d9 MD |
1 | #ifndef __BOARD_H__ |
2 | #define __BOARD_H__ | |
72ee8626 | 3 | |
382063d9 MD |
4 | #include <linux/init.h> |
5 | #include <linux/of.h> | |
6 | ||
72ee8626 GU |
7 | struct resource; |
8 | ||
382063d9 MD |
9 | bool board_staging_dt_node_available(const struct resource *resource, |
10 | unsigned int num_resources); | |
72ee8626 GU |
11 | int board_staging_gic_setup_xlate(const char *gic_match, unsigned int base); |
12 | void board_staging_gic_fixup_resources(struct resource *res, unsigned int nres); | |
382063d9 MD |
13 | |
14 | #define board_staging(str, fn) \ | |
15 | static int __init runtime_board_check(void) \ | |
16 | { \ | |
17 | if (of_machine_is_compatible(str)) \ | |
18 | fn(); \ | |
19 | \ | |
20 | return 0; \ | |
21 | } \ | |
22 | \ | |
b0c750f7 | 23 | device_initcall(runtime_board_check) |
382063d9 MD |
24 | |
25 | #endif /* __BOARD_H__ */ |