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