Konstantin Porotchkin | 62a7646 | 2018-02-26 15:51:11 +0200 | [diff] [blame] | 1 | /* |
| 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 | |
| 10 | #ifndef _AMB_ADEC_H_ |
| 11 | #define _AMB_ADEC_H_ |
| 12 | |
| 13 | #include <stdint.h> |
| 14 | |
| 15 | enum 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 | |
| 34 | int init_amb_adec(uintptr_t base); |
| 35 | |
| 36 | #endif /* _AMB_ADEC_H_ */ |