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