Simon Glass | 50ad221 | 2013-05-08 08:06:02 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2013, Google Inc. |
| 3 | * |
| 4 | * Copyright (C) 2011 |
Simon Schwarz | 6a597b9 | 2012-03-15 04:01:45 +0000 | [diff] [blame] | 5 | * Corscience GmbH & Co. KG - Simon Schwarz <schwarz@corscience.de> |
| 6 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
Simon Schwarz | 6a597b9 | 2012-03-15 04:01:45 +0000 | [diff] [blame] | 8 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | * SPDX-License-Identifier: GPL-2.0+ |
Simon Schwarz | 6a597b9 | 2012-03-15 04:01:45 +0000 | [diff] [blame] | 10 | */ |
| 11 | #ifndef ARM_BOOTM_H |
| 12 | #define ARM_BOOTM_H |
| 13 | |
Simon Schwarz | 6a597b9 | 2012-03-15 04:01:45 +0000 | [diff] [blame] | 14 | extern void udc_disconnect(void); |
Simon Glass | 50ad221 | 2013-05-08 08:06:02 +0000 | [diff] [blame] | 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 | |
| 44 | #ifdef CONFIG_SERIAL_TAG |
| 45 | #define BOOTM_ENABLE_SERIAL_TAG 1 |
| 46 | void get_board_serial(struct tag_serialnr *serialnr); |
| 47 | #else |
| 48 | #define BOOTM_ENABLE_SERIAL_TAG 0 |
| 49 | static inline void get_board_serial(struct tag_serialnr *serialnr) |
| 50 | { |
| 51 | } |
| 52 | #endif |
| 53 | |
| 54 | #ifdef CONFIG_REVISION_TAG |
| 55 | #define BOOTM_ENABLE_REVISION_TAG 1 |
| 56 | u32 get_board_rev(void); |
| 57 | #else |
| 58 | #define BOOTM_ENABLE_REVISION_TAG 0 |
| 59 | static inline u32 get_board_rev(void) |
| 60 | { |
| 61 | return 0; |
| 62 | } |
Simon Schwarz | 6a597b9 | 2012-03-15 04:01:45 +0000 | [diff] [blame] | 63 | #endif |
| 64 | |
| 65 | #endif |