amb_adec.h 734 B

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