1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (c) 2013, Google Inc.
6 * Corscience GmbH & Co. KG - Simon Schwarz <schwarz@corscience.de>
11 extern void udc_disconnect(void);
13 #if defined(CONFIG_SETUP_MEMORY_TAGS) || \
14 defined(CONFIG_CMDLINE_TAG) || \
15 defined(CONFIG_INITRD_TAG) || \
16 defined(CONFIG_SERIAL_TAG) || \
17 defined(CONFIG_REVISION_TAG)
18 # define BOOTM_ENABLE_TAGS 1
20 # define BOOTM_ENABLE_TAGS 0
23 #ifdef CONFIG_SETUP_MEMORY_TAGS
24 # define BOOTM_ENABLE_MEMORY_TAGS 1
26 # define BOOTM_ENABLE_MEMORY_TAGS 0
29 #ifdef CONFIG_CMDLINE_TAG
30 #define BOOTM_ENABLE_CMDLINE_TAG 1
32 #define BOOTM_ENABLE_CMDLINE_TAG 0
35 #ifdef CONFIG_INITRD_TAG
36 #define BOOTM_ENABLE_INITRD_TAG 1
38 #define BOOTM_ENABLE_INITRD_TAG 0
42 #ifdef CONFIG_SERIAL_TAG
43 #define BOOTM_ENABLE_SERIAL_TAG 1
44 void get_board_serial(struct tag_serialnr *serialnr);
46 #define BOOTM_ENABLE_SERIAL_TAG 0
47 static inline void get_board_serial(struct tag_serialnr *serialnr)
52 #ifdef CONFIG_REVISION_TAG
53 #define BOOTM_ENABLE_REVISION_TAG 1
54 u32 get_board_rev(void);
56 #define BOOTM_ENABLE_REVISION_TAG 0
57 static inline u32 get_board_rev(void)