mvebu-amb.rst 1.5 KB

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