]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/include/asm/bootm.h
Merge branch 'u-boot-imx/master' into 'u-boot-arm/master'
[karo-tx-uboot.git] / arch / arm / include / asm / bootm.h
1 /*
2  * Copyright (c) 2013, Google Inc.
3  *
4  * Copyright (C) 2011
5  * Corscience GmbH & Co. KG - Simon Schwarz <schwarz@corscience.de>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  *
21  */
22 #ifndef ARM_BOOTM_H
23 #define ARM_BOOTM_H
24
25 extern void udc_disconnect(void);
26
27 #if defined(CONFIG_SETUP_MEMORY_TAGS) || \
28                 defined(CONFIG_CMDLINE_TAG) || \
29                 defined(CONFIG_INITRD_TAG) || \
30                 defined(CONFIG_SERIAL_TAG) || \
31                 defined(CONFIG_REVISION_TAG)
32 # define BOOTM_ENABLE_TAGS              1
33 #else
34 # define BOOTM_ENABLE_TAGS              0
35 #endif
36
37 #ifdef CONFIG_SETUP_MEMORY_TAGS
38 # define BOOTM_ENABLE_MEMORY_TAGS       1
39 #else
40 # define BOOTM_ENABLE_MEMORY_TAGS       0
41 #endif
42
43 #ifdef CONFIG_CMDLINE_TAG
44  #define BOOTM_ENABLE_CMDLINE_TAG       1
45 #else
46  #define BOOTM_ENABLE_CMDLINE_TAG       0
47 #endif
48
49 #ifdef CONFIG_INITRD_TAG
50  #define BOOTM_ENABLE_INITRD_TAG        1
51 #else
52  #define BOOTM_ENABLE_INITRD_TAG        0
53 #endif
54
55 #ifdef CONFIG_SERIAL_TAG
56  #define BOOTM_ENABLE_SERIAL_TAG        1
57 void get_board_serial(struct tag_serialnr *serialnr);
58 #else
59  #define BOOTM_ENABLE_SERIAL_TAG        0
60 static inline void get_board_serial(struct tag_serialnr *serialnr)
61 {
62 }
63 #endif
64
65 #ifdef CONFIG_REVISION_TAG
66  #define BOOTM_ENABLE_REVISION_TAG      1
67 u32 get_board_rev(void);
68 #else
69  #define BOOTM_ENABLE_REVISION_TAG      0
70 static inline u32 get_board_rev(void)
71 {
72         return 0;
73 }
74 #endif
75
76 #endif