blob: c956fdd49c94272468d4a90aaaebfc63cfdcd792 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
rickb841b6e2017-05-18 14:37:53 +08002/*
3 * Copyright (c) 2013, Google Inc.
4 *
5 * Copyright (C) 2011
6 * Corscience GmbH & Co. KG - Simon Schwarz <schwarz@corscience.de>
rickb841b6e2017-05-18 14:37:53 +08007 */
8#ifndef NDS32_BOOTM_H
9#define NDS32_BOOTM_H
10
rick19fc21f2017-08-28 13:31:48 +080011#include <asm/setup.h>
12
rickb841b6e2017-05-18 14:37:53 +080013extern void udc_disconnect(void);
14
Patrick Delaunay6493fa42021-09-03 10:24:39 +020015#ifdef CONFIG_SUPPORT_PASSING_ATAGS
rickb841b6e2017-05-18 14:37:53 +080016# 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
41void get_board_serial(struct tag_serialnr *serialnr);
42#else
43 #define BOOTM_ENABLE_SERIAL_TAG 0
44static 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
51u32 get_board_rev(void);
52#else
53 #define BOOTM_ENABLE_REVISION_TAG 0
54static inline u32 get_board_rev(void)
55{
56 return 0;
57}
58#endif
59
60#endif