summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asm-generic/global_data.h6
-rw-r--r--include/common.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h
index 5b356dd231..1a77c982fa 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
*/
diff --git a/include/common.h b/include/common.h
index 35e2b154ae..bbdb943cf0 100644
--- a/include/common.h
+++ b/include/common.h
@@ -209,7 +209,7 @@ int timer_init(void);
int cpu_init(void);
/* */
-phys_size_t initdram (int);
+phys_size_t initdram(void);
#include <display_options.h>