iob.h 587 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (C) 2018 Marvell International Ltd.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. * https://spdx.org/licenses
  6. */
  7. /* IOW unit device driver for Marvell CP110 and CP115 SoCs */
  8. #ifndef IOB_H
  9. #define IOB_H
  10. #include <drivers/marvell/addr_map.h>
  11. enum target_ids_iob {
  12. INTERNAL_TID = 0x0,
  13. MCI0_TID = 0x1,
  14. PEX1_TID = 0x2,
  15. PEX2_TID = 0x3,
  16. PEX0_TID = 0x4,
  17. NAND_TID = 0x5,
  18. RUNIT_TID = 0x6,
  19. MCI1_TID = 0x7,
  20. IOB_MAX_TID
  21. };
  22. int init_iob(uintptr_t base);
  23. void iob_cfg_space_update(int ap_idx, int cp_idx,
  24. uintptr_t base, uintptr_t new_base);
  25. #endif /* IOB_H */