diff options
Diffstat (limited to 'include/asm-generic')
-rw-r--r-- | include/asm-generic/global_data.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index 5b356dd231e..1a77c982fa3 100644 --- a/include/asm-generic/global_data.h +++ b/include/asm-generic/global_data.h @@ -110,6 +110,12 @@ typedef struct global_data { } gd_t; #endif +#ifdef CONFIG_BOARD_TYPES +#define gd_board_type() gd->board_type +#else +#define gd_board_type() 0 +#endif + /* * Global Data Flags - the top 16 bits are reserved for arch-specific flags */ |