xref: /rk3399_rockchip-uboot/include/fsl-mc/fsl_mc_sys.h (revision b9cb64825b5e6efeb715abd8b48d9b12f98973e9)
1*7b3bd9a7SJ. German Rivera /*
2*7b3bd9a7SJ. German Rivera  * Freescale Layerscape Management Complex (MC) Environment-specific code
3*7b3bd9a7SJ. German Rivera  *
4*7b3bd9a7SJ. German Rivera  * Copyright (C) 2014 Freescale Semiconductor, Inc.
5*7b3bd9a7SJ. German Rivera  *
6*7b3bd9a7SJ. German Rivera  * SPDX-License-Identifier:	GPL-2.0+
7*7b3bd9a7SJ. German Rivera  */
8*7b3bd9a7SJ. German Rivera 
9*7b3bd9a7SJ. German Rivera #ifndef _FSL_MC_SYS_H
10*7b3bd9a7SJ. German Rivera #define _FSL_MC_SYS_H
11*7b3bd9a7SJ. German Rivera 
12*7b3bd9a7SJ. German Rivera #include <asm/io.h>
13*7b3bd9a7SJ. German Rivera 
14*7b3bd9a7SJ. German Rivera struct mc_command;
15*7b3bd9a7SJ. German Rivera 
16*7b3bd9a7SJ. German Rivera /*
17*7b3bd9a7SJ. German Rivera  * struct mc_portal_wrapper - MC command portal wrapper object
18*7b3bd9a7SJ. German Rivera  */
19*7b3bd9a7SJ. German Rivera struct fsl_mc_io {
20*7b3bd9a7SJ. German Rivera 	struct mc_command __iomem *mmio_regs;
21*7b3bd9a7SJ. German Rivera };
22*7b3bd9a7SJ. German Rivera 
23*7b3bd9a7SJ. German Rivera int mc_send_command(struct fsl_mc_io *mc_io,
24*7b3bd9a7SJ. German Rivera 		    struct mc_command *cmd);
25*7b3bd9a7SJ. German Rivera 
26*7b3bd9a7SJ. German Rivera #endif /* _FSL_MC_SYS_H */
27