Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Simon Glass | 50ad221 | 2013-05-08 08:06:02 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2013, Google Inc. |
| 4 | * |
| 5 | * Copyright (C) 2011 |
Simon Schwarz | 6a597b9 | 2012-03-15 04:01:45 +0000 | [diff] [blame] | 6 | * Corscience GmbH & Co. KG - Simon Schwarz <schwarz@corscience.de> |
Simon Schwarz | 6a597b9 | 2012-03-15 04:01:45 +0000 | [diff] [blame] | 7 | */ |
| 8 | #ifndef ARM_BOOTM_H |
| 9 | #define ARM_BOOTM_H |
| 10 | |
Simon Schwarz | 6a597b9 | 2012-03-15 04:01:45 +0000 | [diff] [blame] | 11 | extern void udc_disconnect(void); |
Simon Glass | 50ad221 | 2013-05-08 08:06:02 +0000 | [diff] [blame] | 12 | |
Patrick Delaunay | 65d4b17 | 2021-09-03 10:24:39 +0200 | [diff] [blame] | 13 | #ifdef CONFIG_SUPPORT_PASSING_ATAGS |
Simon Glass | 50ad221 | 2013-05-08 08:06:02 +0000 | [diff] [blame] | 14 | # define BOOTM_ENABLE_TAGS 1 |
| 15 | #else |
| 16 | # define BOOTM_ENABLE_TAGS 0 |
| 17 | #endif |
| 18 | |
| 19 | #ifdef CONFIG_SETUP_MEMORY_TAGS |
| 20 | # define BOOTM_ENABLE_MEMORY_TAGS 1 |
| 21 | #else |
| 22 | # define BOOTM_ENABLE_MEMORY_TAGS 0 |
| 23 | #endif |
| 24 | |
| 25 | #ifdef CONFIG_CMDLINE_TAG |
| 26 | #define BOOTM_ENABLE_CMDLINE_TAG 1 |
| 27 | #else |
| 28 | #define BOOTM_ENABLE_CMDLINE_TAG 0 |
| 29 | #endif |
| 30 | |
| 31 | #ifdef CONFIG_INITRD_TAG |
| 32 | #define BOOTM_ENABLE_INITRD_TAG 1 |
| 33 | #else |
| 34 | #define BOOTM_ENABLE_INITRD_TAG 0 |
| 35 | #endif |
| 36 | |
Simon Glass | 30db774 | 2017-05-17 08:22:59 -0600 | [diff] [blame] | 37 | struct tag_serialnr; |
Simon Glass | 50ad221 | 2013-05-08 08:06:02 +0000 | [diff] [blame] | 38 | #ifdef CONFIG_SERIAL_TAG |
| 39 | #define BOOTM_ENABLE_SERIAL_TAG 1 |
Simon Glass | 50ad221 | 2013-05-08 08:06:02 +0000 | [diff] [blame] | 40 | #else |
| 41 | #define BOOTM_ENABLE_SERIAL_TAG 0 |
Tom Rini | ae21e7f | 2021-08-30 09:16:29 -0400 | [diff] [blame] | 42 | #endif |
| 43 | #if defined(CONFIG_SERIAL_TAG) || defined(CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG) |
| 44 | void get_board_serial(struct tag_serialnr *serialnr); |
| 45 | #else |
Simon Glass | 50ad221 | 2013-05-08 08:06:02 +0000 | [diff] [blame] | 46 | static inline void get_board_serial(struct tag_serialnr *serialnr) |
| 47 | { |
| 48 | } |
| 49 | #endif |
| 50 | |
| 51 | #ifdef CONFIG_REVISION_TAG |
| 52 | #define BOOTM_ENABLE_REVISION_TAG 1 |
| 53 | u32 get_board_rev(void); |
| 54 | #else |
| 55 | #define BOOTM_ENABLE_REVISION_TAG 0 |
| 56 | static inline u32 get_board_rev(void) |
| 57 | { |
| 58 | return 0; |
| 59 | } |
Simon Schwarz | 6a597b9 | 2012-03-15 04:01:45 +0000 | [diff] [blame] | 60 | #endif |
| 61 | |
| 62 | #endif |