blob: 89012591e89392a473a6663fe1401b219c006347 [file] [log] [blame]
Sheetal Tigadoliad0943e2019-12-18 19:44:43 +05301/*
2 * Copyright (c) 2017 - 2020, Broadcom
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef BOARD_INFO_H
8#define BOARD_INFO_H
9
10#define IHOST_REG_INTEGRATED 0
11#define IHOST_REG_EXT_PROGRAMMABLE 1
12#define IHOST_REG_EXT_FIXED 2
13
14#if defined(IHOST_REG_TYPE)
15 #if ((IHOST_REG_TYPE != IHOST_REG_INTEGRATED) && \
16 (IHOST_REG_TYPE != IHOST_REG_EXT_PROGRAMMABLE) && \
17 (IHOST_REG_TYPE != IHOST_REG_EXT_FIXED))
18 #error "IHOST_REG_TYPE not valid"
19 #endif
20#else
21 #define IHOST_REG_TYPE IHOST_REG_INTEGRATED
22#endif
23
24#define VDDC_REG_INTEGRATED 0
25#define VDDC_REG_EXT_PROGRAMMABLE 1
26#define VDDC_REG_EXT_FIXED 2
27
28#if defined(VDDC_REG_TYPE)
29 #if ((VDDC_REG_TYPE != VDDC_REG_INTEGRATED) && \
30 (VDDC_REG_TYPE != VDDC_REG_EXT_PROGRAMMABLE) && \
31 (VDDC_REG_TYPE != VDDC_REG_EXT_FIXED))
32 #error "VDDC_REG_TYPE not valid"
33 #endif
34#else
35 #define VDDC_REG_TYPE VDDC_REG_INTEGRATED
36#endif
37
38#endif