xref: /rk3399_rockchip-uboot/arch/nds32/include/asm/bootm.h (revision c2774e6149a6bedb0941deefec84665119e685a4)
1*b841b6e9Srick /*
2*b841b6e9Srick  * Copyright (c) 2013, Google Inc.
3*b841b6e9Srick  *
4*b841b6e9Srick  * Copyright (C) 2011
5*b841b6e9Srick  * Corscience GmbH & Co. KG - Simon Schwarz <schwarz@corscience.de>
6*b841b6e9Srick  *
7*b841b6e9Srick  * SPDX-License-Identifier:	GPL-2.0+
8*b841b6e9Srick  *
9*b841b6e9Srick  * SPDX-License-Identifier:	GPL-2.0+
10*b841b6e9Srick  */
11*b841b6e9Srick #ifndef NDS32_BOOTM_H
12*b841b6e9Srick #define NDS32_BOOTM_H
13*b841b6e9Srick 
14*b841b6e9Srick extern void udc_disconnect(void);
15*b841b6e9Srick 
16*b841b6e9Srick #if defined(CONFIG_SETUP_MEMORY_TAGS) || \
17*b841b6e9Srick 		defined(CONFIG_CMDLINE_TAG) || \
18*b841b6e9Srick 		defined(CONFIG_INITRD_TAG) || \
19*b841b6e9Srick 		defined(CONFIG_SERIAL_TAG) || \
20*b841b6e9Srick 		defined(CONFIG_REVISION_TAG)
21*b841b6e9Srick # define BOOTM_ENABLE_TAGS		1
22*b841b6e9Srick #else
23*b841b6e9Srick # define BOOTM_ENABLE_TAGS		0
24*b841b6e9Srick #endif
25*b841b6e9Srick 
26*b841b6e9Srick #ifdef CONFIG_SETUP_MEMORY_TAGS
27*b841b6e9Srick # define BOOTM_ENABLE_MEMORY_TAGS	1
28*b841b6e9Srick #else
29*b841b6e9Srick # define BOOTM_ENABLE_MEMORY_TAGS	0
30*b841b6e9Srick #endif
31*b841b6e9Srick 
32*b841b6e9Srick #ifdef CONFIG_CMDLINE_TAG
33*b841b6e9Srick  #define BOOTM_ENABLE_CMDLINE_TAG	1
34*b841b6e9Srick #else
35*b841b6e9Srick  #define BOOTM_ENABLE_CMDLINE_TAG	0
36*b841b6e9Srick #endif
37*b841b6e9Srick 
38*b841b6e9Srick #ifdef CONFIG_INITRD_TAG
39*b841b6e9Srick  #define BOOTM_ENABLE_INITRD_TAG	1
40*b841b6e9Srick #else
41*b841b6e9Srick  #define BOOTM_ENABLE_INITRD_TAG	0
42*b841b6e9Srick #endif
43*b841b6e9Srick 
44*b841b6e9Srick #ifdef CONFIG_SERIAL_TAG
45*b841b6e9Srick  #define BOOTM_ENABLE_SERIAL_TAG	1
46*b841b6e9Srick void get_board_serial(struct tag_serialnr *serialnr);
47*b841b6e9Srick #else
48*b841b6e9Srick  #define BOOTM_ENABLE_SERIAL_TAG	0
get_board_serial(struct tag_serialnr * serialnr)49*b841b6e9Srick static inline void get_board_serial(struct tag_serialnr *serialnr)
50*b841b6e9Srick {
51*b841b6e9Srick }
52*b841b6e9Srick #endif
53*b841b6e9Srick 
54*b841b6e9Srick #ifdef CONFIG_REVISION_TAG
55*b841b6e9Srick  #define BOOTM_ENABLE_REVISION_TAG	1
56*b841b6e9Srick u32 get_board_rev(void);
57*b841b6e9Srick #else
58*b841b6e9Srick  #define BOOTM_ENABLE_REVISION_TAG	0
get_board_rev(void)59*b841b6e9Srick static inline u32 get_board_rev(void)
60*b841b6e9Srick {
61*b841b6e9Srick 	return 0;
62*b841b6e9Srick }
63*b841b6e9Srick #endif
64*b841b6e9Srick 
65*b841b6e9Srick #endif
66