blob: 3bf3d96bdbe9f7506e1f85ec9d7beb8cbf1bbd54 [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
Antonio Nino Diaze0f90632018-12-14 00:18:21 +00008#include <common/bl_common.h>
9
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +030010#include <io_addr_dec.h>
11#include <mvebu_def.h>
12
13struct 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
27int 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