marvell_plat_config.c 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (C) 2018 Marvell International Ltd.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. * https://spdx.org/licenses
  6. */
  7. #include <common/bl_common.h>
  8. #include <io_addr_dec.h>
  9. #include <mvebu_def.h>
  10. struct dec_win_config io_dec_win_conf[] = {
  11. /* dec_reg_base win_attr max_dram_win max_remap win_offset */
  12. {0xc000, 0x3d, 2, 0, 0x08}, /* USB */
  13. {0xc100, 0x3d, 3, 0, 0x10}, /* USB3 */
  14. {0xc200, 0x3d, 2, 0, 0x10}, /* DMA */
  15. {0xc300, 0x3d, 2, 0, 0x10}, /* NETA0 */
  16. {0xc400, 0x3d, 2, 0, 0x10}, /* NETA1 */
  17. {0xc500, 0x3d, 2, 0, 0x10}, /* PCIe */
  18. {0xc800, 0x3d, 3, 0, 0x10}, /* SATA */
  19. {0xca00, 0x3d, 3, 0, 0x08}, /* SD */
  20. {0xcb00, 0x3d, 3, 0, 0x10}, /* eMMC */
  21. {0xce00, 0x3d, 2, 0, 0x08}, /* EIP97 */
  22. };
  23. int marvell_get_io_dec_win_conf(struct dec_win_config **win, uint32_t *size)
  24. {
  25. *win = io_dec_win_conf;
  26. *size = sizeof(io_dec_win_conf)/sizeof(struct dec_win_config);
  27. return 0;
  28. }