blob: a92db5bebaf444795ae00aba726959a8c4854b09 [file] [log] [blame]
Konstantin Porotchkin62a76462018-02-26 15:51:11 +02001/*
2 * Copyright (C) 2018 Marvell International Ltd.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 * https://spdx.org/licenses
6 */
7
8/* AXI to M-Bridge decoding unit driver for Marvell Armada 8K and 8K+ SoCs */
9
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000010#ifndef AMB_ADEC_H
11#define AMB_ADEC_H
Konstantin Porotchkin62a76462018-02-26 15:51:11 +020012
13#include <stdint.h>
14
15enum amb_attribute_ids {
16 AMB_SPI0_CS0_ID = 0x1E,
17 AMB_SPI0_CS1_ID = 0x5E,
18 AMB_SPI0_CS2_ID = 0x9E,
19 AMB_SPI0_CS3_ID = 0xDE,
20 AMB_SPI1_CS0_ID = 0x1A,
21 AMB_SPI1_CS1_ID = 0x5A,
22 AMB_SPI1_CS2_ID = 0x9A,
23 AMB_SPI1_CS3_ID = 0xDA,
24 AMB_DEV_CS0_ID = 0x3E,
25 AMB_DEV_CS1_ID = 0x3D,
26 AMB_DEV_CS2_ID = 0x3B,
27 AMB_DEV_CS3_ID = 0x37,
28 AMB_BOOT_CS_ID = 0x2f,
29 AMB_BOOT_ROM_ID = 0x1D,
30};
31
32#define AMB_MAX_WIN_ID 7
33
34int init_amb_adec(uintptr_t base);
35
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000036#endif /* AMB_ADEC_H */