2 * Copyright (c) 2013, Google Inc.
5 * Corscience GmbH & Co. KG - Simon Schwarz <schwarz@corscience.de>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 extern void udc_disconnect(void);
27 #if defined(CONFIG_SETUP_MEMORY_TAGS) || \
28 defined(CONFIG_CMDLINE_TAG) || \
29 defined(CONFIG_INITRD_TAG) || \
30 defined(CONFIG_SERIAL_TAG) || \
31 defined(CONFIG_REVISION_TAG)
32 # define BOOTM_ENABLE_TAGS 1
34 # define BOOTM_ENABLE_TAGS 0
37 #ifdef CONFIG_SETUP_MEMORY_TAGS
38 # define BOOTM_ENABLE_MEMORY_TAGS 1
40 # define BOOTM_ENABLE_MEMORY_TAGS 0
43 #ifdef CONFIG_CMDLINE_TAG
44 #define BOOTM_ENABLE_CMDLINE_TAG 1
46 #define BOOTM_ENABLE_CMDLINE_TAG 0
49 #ifdef CONFIG_INITRD_TAG
50 #define BOOTM_ENABLE_INITRD_TAG 1
52 #define BOOTM_ENABLE_INITRD_TAG 0
55 #ifdef CONFIG_SERIAL_TAG
56 #define BOOTM_ENABLE_SERIAL_TAG 1
57 void get_board_serial(struct tag_serialnr *serialnr);
59 #define BOOTM_ENABLE_SERIAL_TAG 0
60 static inline void get_board_serial(struct tag_serialnr *serialnr)
65 #ifdef CONFIG_REVISION_TAG
66 #define BOOTM_ENABLE_REVISION_TAG 1
67 u32 get_board_rev(void);
69 #define BOOTM_ENABLE_REVISION_TAG 0
70 static inline u32 get_board_rev(void)