diff options
author | Aaron Williams <awilliams@marvell.com> | 2020-12-11 17:05:29 +0100 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2021-04-23 21:02:12 +0200 |
commit | 4f83af4855e8aad29690917a0df7ae9c3f60d552 (patch) | |
tree | d1798119207e9b693118efa1ece079d0dfb2a47a | |
parent | 321101e90ce79e6fc7b0c740e0998c19dcc5ca2b (diff) | |
download | u-boot-4f83af4855e8aad29690917a0df7ae9c3f60d552.zip u-boot-4f83af4855e8aad29690917a0df7ae9c3f60d552.tar.gz u-boot-4f83af4855e8aad29690917a0df7ae9c3f60d552.tar.bz2 |
mips: octeon: Add cvmx-dbg-defs.h header file
Import cvmx-dbg-defs.h header file from 2013 U-Boot. It will be used
by the later added drivers to support PCIe and networking on the MIPS
Octeon II / III platforms.
Signed-off-by: Aaron Williams <awilliams@marvell.com>
Signed-off-by: Stefan Roese <sr@denx.de>
-rw-r--r-- | arch/mips/mach-octeon/include/mach/cvmx-dbg-defs.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/mips/mach-octeon/include/mach/cvmx-dbg-defs.h b/arch/mips/mach-octeon/include/mach/cvmx-dbg-defs.h new file mode 100644 index 0000000..9f91fee --- /dev/null +++ b/arch/mips/mach-octeon/include/mach/cvmx-dbg-defs.h @@ -0,0 +1,33 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (C) 2020 Marvell International Ltd. + * + * Configuration and status register (CSR) type definitions for + * Octeon dbg. + */ + +#ifndef __CVMX_DBG_DEFS_H__ +#define __CVMX_DBG_DEFS_H__ + +#define CVMX_DBG_DATA (0x00011F00000001E8ull) + +/** + * cvmx_dbg_data + * + * DBG_DATA = Debug Data Register + * + * Value returned on the debug-data lines from the RSLs + */ +union cvmx_dbg_data { + u64 u64; + struct cvmx_dbg_data_s { + u64 reserved_23_63 : 41; + u64 c_mul : 5; + u64 dsel_ext : 1; + u64 data : 17; + } s; +}; + +typedef union cvmx_dbg_data cvmx_dbg_data_t; + +#endif |