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