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 extern void udc_disconnect(void);
16 #if defined(CONFIG_SETUP_MEMORY_TAGS) || \
17 defined(CONFIG_CMDLINE_TAG) || \
18 defined(CONFIG_INITRD_TAG) || \
19 defined(CONFIG_SERIAL_TAG) || \
20 defined(CONFIG_REVISION_TAG)
21 # define BOOTM_ENABLE_TAGS 1
23 # define BOOTM_ENABLE_TAGS 0
26 #ifdef CONFIG_SETUP_MEMORY_TAGS
27 # define BOOTM_ENABLE_MEMORY_TAGS 1
29 # define BOOTM_ENABLE_MEMORY_TAGS 0
32 #ifdef CONFIG_CMDLINE_TAG
33 #define BOOTM_ENABLE_CMDLINE_TAG 1
35 #define BOOTM_ENABLE_CMDLINE_TAG 0
38 #ifdef CONFIG_INITRD_TAG
39 #define BOOTM_ENABLE_INITRD_TAG 1
41 #define BOOTM_ENABLE_INITRD_TAG 0
44 #ifdef CONFIG_SERIAL_TAG
45 #define BOOTM_ENABLE_SERIAL_TAG 1
46 void get_board_serial(struct tag_serialnr *serialnr);
48 #define BOOTM_ENABLE_SERIAL_TAG 0
49 static inline void get_board_serial(struct tag_serialnr *serialnr)
54 #ifdef CONFIG_REVISION_TAG
55 #define BOOTM_ENABLE_REVISION_TAG 1
56 u32 get_board_rev(void);
58 #define BOOTM_ENABLE_REVISION_TAG 0
59 static inline u32 get_board_rev(void)