Dave Gerlach | 96571ec | 2021-04-23 11:27:32 -0500 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * AM642: SoC specific initialization |
| 4 | * |
| 5 | * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/ |
| 6 | * Keerthy <j-keerthy@ti.com> |
| 7 | * Dave Gerlach <d-gerlach@ti.com> |
| 8 | */ |
| 9 | |
| 10 | #include <common.h> |
| 11 | #include <spl.h> |
| 12 | #include <asm/io.h> |
| 13 | #include "common.h" |
| 14 | |
| 15 | #if defined(CONFIG_SPL_BUILD) |
| 16 | |
| 17 | void board_init_f(ulong dummy) |
| 18 | { |
| 19 | #if defined(CONFIG_CPU_V7R) |
| 20 | setup_k3_mpu_regions(); |
| 21 | #endif |
| 22 | |
| 23 | /* Init DM early */ |
| 24 | spl_early_init(); |
| 25 | |
| 26 | preloader_console_init(); |
| 27 | } |
| 28 | #endif |