2 * Copyright (c) 2013, Google Inc.
5 * Corscience GmbH & Co. KG - Simon Schwarz <schwarz@corscience.de>
7 * SPDX-License-Identifier: GPL-2.0+
9 * SPDX-License-Identifier: GPL-2.0+
14 #include <asm/setup.h>
16 extern void udc_disconnect(void);
18 #if defined(CONFIG_SETUP_MEMORY_TAGS) || \
19 defined(CONFIG_CMDLINE_TAG) || \
20 defined(CONFIG_INITRD_TAG) || \
21 defined(CONFIG_SERIAL_TAG) || \
22 defined(CONFIG_REVISION_TAG)
23 # define BOOTM_ENABLE_TAGS 1
25 # define BOOTM_ENABLE_TAGS 0
28 #ifdef CONFIG_SETUP_MEMORY_TAGS
29 # define BOOTM_ENABLE_MEMORY_TAGS 1
31 # define BOOTM_ENABLE_MEMORY_TAGS 0
34 #ifdef CONFIG_CMDLINE_TAG
35 #define BOOTM_ENABLE_CMDLINE_TAG 1
37 #define BOOTM_ENABLE_CMDLINE_TAG 0
40 #ifdef CONFIG_INITRD_TAG
41 #define BOOTM_ENABLE_INITRD_TAG 1
43 #define BOOTM_ENABLE_INITRD_TAG 0
46 #ifdef CONFIG_SERIAL_TAG
47 #define BOOTM_ENABLE_SERIAL_TAG 1
48 void get_board_serial(struct tag_serialnr *serialnr);
50 #define BOOTM_ENABLE_SERIAL_TAG 0
51 static inline void get_board_serial(struct tag_serialnr *serialnr)
56 #ifdef CONFIG_REVISION_TAG
57 #define BOOTM_ENABLE_REVISION_TAG 1
58 u32 get_board_rev(void);
60 #define BOOTM_ENABLE_REVISION_TAG 0
61 static inline u32 get_board_rev(void)