Neil Armstrong | 0fca923 | 2018-09-05 15:56:12 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright (C) 2018 BayLibre, SAS |
| 4 | * Author: Neil Armstrong <narmstrong@baylibre.com> |
| 5 | */ |
| 6 | |
| 7 | #ifndef __AXG_H__ |
| 8 | #define __AXG_H__ |
| 9 | |
Simon Glass | 4dcacfc | 2020-05-10 11:40:13 -0600 | [diff] [blame] | 10 | #ifndef __ASSEMBLY__ |
| 11 | #include <linux/bitops.h> |
| 12 | #endif |
| 13 | |
Neil Armstrong | 0fca923 | 2018-09-05 15:56:12 +0200 | [diff] [blame] | 14 | #define AXG_AOBUS_BASE 0xff800000 |
| 15 | #define AXG_PERIPHS_BASE 0xff634400 |
| 16 | #define AXG_HIU_BASE 0xff63c000 |
| 17 | #define AXG_ETH_BASE 0xff3f0000 |
| 18 | |
| 19 | /* Always-On Peripherals registers */ |
| 20 | #define AXG_AO_ADDR(off) (AXG_AOBUS_BASE + ((off) << 2)) |
| 21 | |
| 22 | #define AXG_AO_SEC_GP_CFG0 AXG_AO_ADDR(0x90) |
| 23 | #define AXG_AO_SEC_GP_CFG3 AXG_AO_ADDR(0x93) |
| 24 | #define AXG_AO_SEC_GP_CFG4 AXG_AO_ADDR(0x94) |
| 25 | #define AXG_AO_SEC_GP_CFG5 AXG_AO_ADDR(0x95) |
| 26 | |
Neil Armstrong | 2fbfcbb | 2018-07-27 14:10:00 +0200 | [diff] [blame] | 27 | #define AXG_AO_BOOT_DEVICE 0xF |
Neil Armstrong | 0fca923 | 2018-09-05 15:56:12 +0200 | [diff] [blame] | 28 | #define AXG_AO_MEM_SIZE_MASK 0xFFFF0000 |
| 29 | #define AXG_AO_MEM_SIZE_SHIFT 16 |
| 30 | #define AXG_AO_BL31_RSVMEM_SIZE_MASK 0xFFFF0000 |
| 31 | #define AXG_AO_BL31_RSVMEM_SIZE_SHIFT 16 |
| 32 | #define AXG_AO_BL32_RSVMEM_SIZE_MASK 0xFFFF |
| 33 | |
Neil Armstrong | 0fca923 | 2018-09-05 15:56:12 +0200 | [diff] [blame] | 34 | #endif /* __AXG_H__ */ |