Lokesh Vutla | a228532 | 2019-06-13 10:29:42 +0530 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * J721E: SoC specific initialization |
| 4 | * |
| 5 | * Copyright (C) 2018-2019 Texas Instruments Incorporated - http://www.ti.com/ |
| 6 | * Lokesh Vutla <lokeshvutla@ti.com> |
| 7 | */ |
| 8 | |
| 9 | #include <common.h> |
| 10 | #include <spl.h> |
| 11 | #include <asm/io.h> |
| 12 | #include <asm/armv7_mpu.h> |
| 13 | #include "common.h" |
| 14 | |
| 15 | #ifdef CONFIG_SPL_BUILD |
| 16 | void board_init_f(ulong dummy) |
| 17 | { |
| 18 | /* |
| 19 | * ToDo: |
| 20 | * - Store boot rom index. |
| 21 | * - unlock mmr. |
| 22 | */ |
| 23 | |
| 24 | #ifdef CONFIG_CPU_V7R |
| 25 | setup_k3_mpu_regions(); |
| 26 | #endif |
| 27 | |
| 28 | /* Init DM early */ |
| 29 | spl_early_init(); |
| 30 | |
| 31 | /* Prepare console output */ |
| 32 | preloader_console_init(); |
| 33 | } |
| 34 | #endif |