arm-trusted-firmware/plat/brcm/board/stingray/include/ncsi.h
Sheetal Tigadoli 3942d3a8ea Add BL31 support for Broadcom stingray platform
Change-Id: Icfef5b6923dc292e637001045a334c499d346fe9
Signed-off-by: Sheetal Tigadoli <sheetal.tigadoli@broadcom.com>
2020-04-03 17:12:42 +05:30

32 lines
599 B
C

/*
* Copyright (c) 2019-2020, Broadcom
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef NCSI_H
#define NCSI_H
/*
* There are 10 registers for NCSI IO drivers.
*/
#define NITRO_NCSI_IOPAD_CONTROL_NUM 10
#define NITRO_NCSI_IOPAD_CONTROL_BASE 0x60e05080
/*
* NCSI IO Drive strength
* 000 - Drives 2mA
* 001 - Drives 4mA
* 010 - Drives 6mA
* 011 - Drives 8mA
* 100 - Drives 10mA
* 101 - Drives 12mA
* 110 - Drives 14mA
* 111 - Drives 16mA
*/
#define PAD_SELX_VALUE(selx) ((selx) << 1)
#define PAD_SELX_MASK (0x7 << 1)
void brcm_stingray_ncsi_init(void);
#endif