xref: /rk3399_ARM-atf/plat/allwinner/sun50i_r329/include/sunxi_spc.h (revision abd63ed0c575a2517c43fe8dc4321d6e9fc512c3)
1*13bacd3bSIcenowy Zheng /*
2*13bacd3bSIcenowy Zheng  * Copyright (c) 2021 Sipeed
3*13bacd3bSIcenowy Zheng  *
4*13bacd3bSIcenowy Zheng  * SPDX-License-Identifier: BSD-3-Clause
5*13bacd3bSIcenowy Zheng  */
6*13bacd3bSIcenowy Zheng 
7*13bacd3bSIcenowy Zheng #ifndef SUNXI_SPC_H
8*13bacd3bSIcenowy Zheng #define SUNXI_SPC_H
9*13bacd3bSIcenowy Zheng 
10*13bacd3bSIcenowy Zheng /* Get by REing stock ATF and checking initialization loop boundary */
11*13bacd3bSIcenowy Zheng #define SUNXI_SPC_NUM_PORTS		11
12*13bacd3bSIcenowy Zheng 
13*13bacd3bSIcenowy Zheng #define SUNXI_SPC_DECPORT_STA_REG(p)	(SUNXI_SPC_BASE + 0x0000 + 0x10 * (p))
14*13bacd3bSIcenowy Zheng #define SUNXI_SPC_DECPORT_SET_REG(p)	(SUNXI_SPC_BASE + 0x0004 + 0x10 * (p))
15*13bacd3bSIcenowy Zheng #define SUNXI_SPC_DECPORT_CLR_REG(p)	(SUNXI_SPC_BASE + 0x0008 + 0x10 * (p))
16*13bacd3bSIcenowy Zheng 
17*13bacd3bSIcenowy Zheng #endif /* SUNXI_SPC_H */
18