blob: 9b5e515a4fbfecbd145f18cd10f20353995f468d [file] [log] [blame]
Konstantin Porotchkin62a76462018-02-26 15:51:11 +02001/*
2 * Copyright (C) 2018 Marvell International Ltd.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 * https://spdx.org/licenses
6 */
7
8/* IOW unit device driver for Marvell CP110 and CP115 SoCs */
9
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000010#ifndef IOB_H
11#define IOB_H
Konstantin Porotchkin62a76462018-02-26 15:51:11 +020012
Antonio Nino Diaze0f90632018-12-14 00:18:21 +000013#include <drivers/marvell/addr_map.h>
Konstantin Porotchkin62a76462018-02-26 15:51:11 +020014
15enum target_ids_iob {
16 INTERNAL_TID = 0x0,
17 MCI0_TID = 0x1,
18 PEX1_TID = 0x2,
19 PEX2_TID = 0x3,
20 PEX0_TID = 0x4,
21 NAND_TID = 0x5,
22 RUNIT_TID = 0x6,
23 MCI1_TID = 0x7,
24 IOB_MAX_TID
25};
26
27int init_iob(uintptr_t base);
28void iob_cfg_space_update(int ap_idx, int cp_idx,
29 uintptr_t base, uintptr_t new_base);
30
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000031#endif /* IOB_H */