Konstantin Porotchkin | 62a7646 | 2018-02-26 15:51:11 +0200 | [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 | |
| 8 | /* IOW unit device driver for Marvell CP110 and CP115 SoCs */ |
| 9 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 10 | #ifndef IOB_H |
| 11 | #define IOB_H |
Konstantin Porotchkin | 62a7646 | 2018-02-26 15:51:11 +0200 | [diff] [blame] | 12 | |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 13 | #include <drivers/marvell/addr_map.h> |
Konstantin Porotchkin | 62a7646 | 2018-02-26 15:51:11 +0200 | [diff] [blame] | 14 | |
| 15 | enum 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 | |
| 27 | int init_iob(uintptr_t base); |
| 28 | void iob_cfg_space_update(int ap_idx, int cp_idx, |
| 29 | uintptr_t base, uintptr_t new_base); |
| 30 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 31 | #endif /* IOB_H */ |