19
19
20
20
DECLARE_GLOBAL_DATA_PTR ;
21
21
22
- #if defined(CONFIG_SETUP_MEMORY_TAGS ) || \
23
- defined(CONFIG_CMDLINE_TAG ) || \
24
- defined(CONFIG_INITRD_TAG ) || \
25
- defined(CONFIG_SERIAL_TAG ) || \
26
- defined(CONFIG_REVISION_TAG )
22
+ #ifdef CONFIG_SUPPORT_PASSING_ATAGS
27
23
static void setup_start_tag (struct bd_info * bd );
28
24
29
25
# ifdef CONFIG_SETUP_MEMORY_TAGS
@@ -38,7 +34,7 @@ static void setup_initrd_tag(struct bd_info *bd, ulong initrd_start,
38
34
static void setup_end_tag (struct bd_info * bd );
39
35
40
36
static struct tag * params ;
41
- #endif /* CONFIG_SETUP_MEMORY_TAGS || CONFIG_CMDLINE_TAG || CONFIG_INITRD_TAG */
37
+ #endif /* CONFIG_SUPPORT_PASSING_ATAGS */
42
38
43
39
int do_bootm_linux (int flag , int argc , char * argv [], bootm_headers_t * images )
44
40
{
@@ -82,11 +78,7 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
82
78
}
83
79
#endif
84
80
} else if (BOOTM_ENABLE_TAGS ) {
85
- #if defined(CONFIG_SETUP_MEMORY_TAGS ) || \
86
- defined(CONFIG_CMDLINE_TAG ) || \
87
- defined(CONFIG_INITRD_TAG ) || \
88
- defined(CONFIG_SERIAL_TAG ) || \
89
- defined(CONFIG_REVISION_TAG )
81
+ #ifdef CONFIG_SUPPORT_PASSING_ATAGS
90
82
setup_start_tag (bd );
91
83
#ifdef CONFIG_SERIAL_TAG
92
84
setup_serial_tag (& params );
@@ -127,11 +119,7 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
127
119
return 1 ;
128
120
}
129
121
130
- #if defined(CONFIG_SETUP_MEMORY_TAGS ) || \
131
- defined(CONFIG_CMDLINE_TAG ) || \
132
- defined(CONFIG_INITRD_TAG ) || \
133
- defined(CONFIG_SERIAL_TAG ) || \
134
- defined(CONFIG_REVISION_TAG )
122
+ #ifdef CONFIG_SUPPORT_PASSING_ATAGS
135
123
static void setup_start_tag (struct bd_info * bd )
136
124
{
137
125
params = (struct tag * )bd -> bi_boot_params ;
@@ -244,7 +232,7 @@ static void setup_end_tag(struct bd_info *bd)
244
232
params -> hdr .size = 0 ;
245
233
}
246
234
247
- #endif /* CONFIG_SETUP_MEMORY_TAGS || CONFIG_CMDLINE_TAG || CONFIG_INITRD_TAG */
235
+ #endif /* CONFIG_SUPPORT_PASSING_ATAGS */
248
236
249
237
static ulong get_sp (void )
250
238
{
0 commit comments