Konstantin Porotchkin | f69ec58 | 2018-06-07 18:31:14 +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 <lib/mmio.h> |
| 9 | |
Konstantin Porotchkin | f69ec58 | 2018-06-07 18:31:14 +0300 | [diff] [blame] | 10 | #include <plat_marvell.h> |
| 11 | |
| 12 | void marvell_bl1_setup_mpps(void) |
| 13 | { |
| 14 | /* Enable UART MPPs. |
| 15 | ** In a normal system, this is done by Bootrom. |
| 16 | */ |
| 17 | mmio_write_32(MVEBU_AP_MPP_REGS(1), 0x3000); |
| 18 | mmio_write_32(MVEBU_AP_MPP_REGS(2), 0x3000); |
| 19 | } |