Merge tag 'u-boot-stm32-20211012' of https://source.denx.de/u-boot/custodians/u-boot-stm
[platform/kernel/u-boot.git] / arch / nds32 / include / asm / bootm.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (c) 2013, Google Inc.
4  *
5  * Copyright (C) 2011
6  * Corscience GmbH & Co. KG - Simon Schwarz <schwarz@corscience.de>
7  */
8 #ifndef NDS32_BOOTM_H
9 #define NDS32_BOOTM_H
10
11 #include <asm/setup.h>
12
13 extern void udc_disconnect(void);
14
15 #ifdef CONFIG_SUPPORT_PASSING_ATAGS
16 # define BOOTM_ENABLE_TAGS              1
17 #else
18 # define BOOTM_ENABLE_TAGS              0
19 #endif
20
21 #ifdef CONFIG_SETUP_MEMORY_TAGS
22 # define BOOTM_ENABLE_MEMORY_TAGS       1
23 #else
24 # define BOOTM_ENABLE_MEMORY_TAGS       0
25 #endif
26
27 #ifdef CONFIG_CMDLINE_TAG
28  #define BOOTM_ENABLE_CMDLINE_TAG       1
29 #else
30  #define BOOTM_ENABLE_CMDLINE_TAG       0
31 #endif
32
33 #ifdef CONFIG_INITRD_TAG
34  #define BOOTM_ENABLE_INITRD_TAG        1
35 #else
36  #define BOOTM_ENABLE_INITRD_TAG        0
37 #endif
38
39 #ifdef CONFIG_SERIAL_TAG
40  #define BOOTM_ENABLE_SERIAL_TAG        1
41 void get_board_serial(struct tag_serialnr *serialnr);
42 #else
43  #define BOOTM_ENABLE_SERIAL_TAG        0
44 static inline void get_board_serial(struct tag_serialnr *serialnr)
45 {
46 }
47 #endif
48
49 #ifdef CONFIG_REVISION_TAG
50  #define BOOTM_ENABLE_REVISION_TAG      1
51 u32 get_board_rev(void);
52 #else
53  #define BOOTM_ENABLE_REVISION_TAG      0
54 static inline u32 get_board_rev(void)
55 {
56         return 0;
57 }
58 #endif
59
60 #endif