Konstantin Porotchkin | 62a7646 | 2018-02-26 15:51:11 +0200 | [diff] [blame] | 1 | AMB - AXI MBUS address decoding |
| 2 | ------------------------------- |
| 3 | |
| 4 | AXI to M-bridge decoding unit driver for Marvell Armada 8K and 8K+ SoCs. |
| 5 | |
| 6 | - The Runit offers a second level of address windows lookup. It is used to map transaction towards |
| 7 | the CD BootROM, SPI0, SPI1 and Device bus (NOR). |
| 8 | - The Runit contains eight configurable windows. Each window defines a contiguous, |
| 9 | address space and the properties associated with that address space. |
| 10 | |
| 11 | Unit Bank ATTR |
| 12 | Device-Bus DEV_BOOT_CS 0x2F |
| 13 | DEV_CS0 0x3E |
| 14 | DEV_CS1 0x3D |
| 15 | DEV_CS2 0x3B |
| 16 | DEV_CS3 0x37 |
| 17 | SPI-0 SPI_A_CS0 0x1E |
| 18 | SPI_A_CS1 0x5E |
| 19 | SPI_A_CS2 0x9E |
| 20 | SPI_A_CS3 0xDE |
| 21 | SPI_A_CS4 0x1F |
| 22 | SPI_A_CS5 0x5F |
| 23 | SPI_A_CS6 0x9F |
| 24 | SPI_A_CS7 0xDF |
| 25 | SPI1 SPI_B_CS0 0x1A |
| 26 | SPI_B_CS1 0x5A |
| 27 | SPI_B_CS2 0x9A |
| 28 | SPI_B_CS3 0xDA |
| 29 | BOOT_ROM BOOT_ROM 0x1D |
| 30 | UART UART 0x01 |
| 31 | |
| 32 | Mandatory functions: |
| 33 | - marvell_get_amb_memory_map |
| 34 | returns the AMB windows configuration and the number of windows |
| 35 | |
| 36 | Mandatory structures: |
| 37 | amb_memory_map - Array that include the configuration of the windows |
| 38 | every window/entry is a struct which has 2 parameters: |
| 39 | - base address of the window |
| 40 | - Attribute of the window |
| 41 | |
| 42 | Examples: |
| 43 | struct addr_map_win amb_memory_map[] = { |
| 44 | {0xf900, AMB_DEV_CS0_ID}, |
| 45 | }; |