Igor Prusov | 7da68fb | 2023-05-05 15:56:37 +0300 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * (C) Copyright 2023 SberDevices, Inc. |
| 4 | * Author: Igor Prusov <ivprusov@sberdevices.ru> |
| 5 | */ |
| 6 | |
| 7 | #ifndef __MESON_A1_H__ |
| 8 | #define __MESON_A1_H__ |
| 9 | |
| 10 | #define A1_SYSCTRL_BASE 0xfe005800 |
| 11 | |
| 12 | /* SYSCTRL registers */ |
| 13 | #define A1_SYSCTRL_ADDR(off) (A1_SYSCTRL_BASE + ((off) << 2)) |
| 14 | |
| 15 | #define A1_SYSCTRL_SEC_STATUS_REG4 A1_SYSCTRL_ADDR(0xc4) |
| 16 | |
| 17 | #define A1_SYSCTRL_MEM_SIZE_MASK 0xFFFF0000 |
| 18 | #define A1_SYSCTRL_MEM_SIZE_SHIFT 16 |
| 19 | |
| 20 | #endif /* __MESON_A1_H__ */ |