blob: 12042de93590f6f7a1e87a7f9b8009babfc845e7 [file] [log] [blame]
Neil Armstrong0fca9232018-09-05 15:56:12 +02001/* 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 Glass4dcacfc2020-05-10 11:40:13 -060010#ifndef __ASSEMBLY__
11#include <linux/bitops.h>
12#endif
13
Neil Armstrong0fca9232018-09-05 15:56:12 +020014#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 Armstrong2fbfcbb2018-07-27 14:10:00 +020027#define AXG_AO_BOOT_DEVICE 0xF
Neil Armstrong0fca9232018-09-05 15:56:12 +020028#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 Armstrong0fca9232018-09-05 15:56:12 +020034#endif /* __AXG_H__ */