]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/arm/include/asm/bootm.h
Merge branch 'master' of git://git.denx.de/u-boot-samsung
[people/ms/u-boot.git] / arch / arm / include / asm / bootm.h
CommitLineData
c19d13b0
SG
1/*
2 * Copyright (c) 2013, Google Inc.
3 *
4 * Copyright (C) 2011
0a672d49
SS
5 * Corscience GmbH & Co. KG - Simon Schwarz <schwarz@corscience.de>
6 *
1a459660 7 * SPDX-License-Identifier: GPL-2.0+
0a672d49 8 *
1a459660 9 * SPDX-License-Identifier: GPL-2.0+
0a672d49
SS
10 */
11#ifndef ARM_BOOTM_H
12#define ARM_BOOTM_H
13
0a672d49 14extern void udc_disconnect(void);
c19d13b0
SG
15
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
22#else
23# define BOOTM_ENABLE_TAGS 0
24#endif
25
26#ifdef CONFIG_SETUP_MEMORY_TAGS
27# define BOOTM_ENABLE_MEMORY_TAGS 1
28#else
29# define BOOTM_ENABLE_MEMORY_TAGS 0
30#endif
31
32#ifdef CONFIG_CMDLINE_TAG
33 #define BOOTM_ENABLE_CMDLINE_TAG 1
34#else
35 #define BOOTM_ENABLE_CMDLINE_TAG 0
36#endif
37
38#ifdef CONFIG_INITRD_TAG
39 #define BOOTM_ENABLE_INITRD_TAG 1
40#else
41 #define BOOTM_ENABLE_INITRD_TAG 0
42#endif
43
c45300b0 44struct tag_serialnr;
c19d13b0
SG
45#ifdef CONFIG_SERIAL_TAG
46 #define BOOTM_ENABLE_SERIAL_TAG 1
47void get_board_serial(struct tag_serialnr *serialnr);
48#else
49 #define BOOTM_ENABLE_SERIAL_TAG 0
50static inline void get_board_serial(struct tag_serialnr *serialnr)
51{
52}
53#endif
54
55#ifdef CONFIG_REVISION_TAG
56 #define BOOTM_ENABLE_REVISION_TAG 1
57u32 get_board_rev(void);
58#else
59 #define BOOTM_ENABLE_REVISION_TAG 0
60static inline u32 get_board_rev(void)
61{
62 return 0;
63}
0a672d49
SS
64#endif
65
66#endif