blob: 04dd640010877b089fe75629f1ad3020d7f4cd5a [file] [log] [blame]
Sheetal Tigadoli58a9eca2019-12-18 20:05:09 +05301/*
2 * Copyright (c) 2019-2020, Broadcom
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef NCSI_H
8#define NCSI_H
9
10/*
11 * There are 10 registers for NCSI IO drivers.
12 */
13#define NITRO_NCSI_IOPAD_CONTROL_NUM 10
14#define NITRO_NCSI_IOPAD_CONTROL_BASE 0x60e05080
15
16/*
17 * NCSI IO Drive strength
18 * 000 - Drives 2mA
19 * 001 - Drives 4mA
20 * 010 - Drives 6mA
21 * 011 - Drives 8mA
22 * 100 - Drives 10mA
23 * 101 - Drives 12mA
24 * 110 - Drives 14mA
25 * 111 - Drives 16mA
26 */
27#define PAD_SELX_VALUE(selx) ((selx) << 1)
28#define PAD_SELX_MASK (0x7 << 1)
29
30void brcm_stingray_ncsi_init(void);
31
32#endif