ronnie
2022-10-23 1972b0e7ed50e5b37c5633d662ea03d23b15499c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * Generic base addresses for Allwinner SunXi SoCs
 * These are used by SMP and Idle.
 *
 * Copyright (C) 2016 East yang
 *
 * East yang <yangdong@allwinnertech.com>
 *
 * This file is licensed under the terms of the GNU General Public
 * License version 2. This program is licensed "as is" without any
 * warranty of any kind, whether express or implied.
 */
 
#ifndef __MACH_SUNXI_H
#define __MACH_SUNXI_H
 
#if defined(CONFIG_ARCH_SUN8IW11)
#define CPU_SOFT_ENTRY_REG(cpu) (0xbc)
#elif defined(CONFIG_ARCH_SUN8IW7)
#define CPU_SOFT_ENTRY_REG(cpu) (0x1a4)
#elif defined(CONFIG_ARCH_SUN8IW15)
#define CPU_SOFT_ENTRY_REG(cpu)        (0x01c4 + cpu * 0x4)
#else
#define CPU_SOFT_ENTRY_REG(cpu) (0x1bc)
#endif
 
extern void __iomem *sunxi_cpucfg_base;
extern void __iomem *sunxi_cpuscfg_base;
extern void __iomem *sunxi_sysctl_base;
extern void __iomem *sunxi_rtc_base;
extern void __iomem *sunxi_soft_entry_base;
 
#endif /* __MACH_SUNXI_H */