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