Ye Li | f3c8abb | 2025-04-28 18:37:43 +0800 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright 2025 NXP |
| 4 | */ |
| 5 | |
| 6 | #include <asm/arch/clock.h> |
| 7 | #include <asm/gpio.h> |
| 8 | #include <asm/mach-imx/sys_proto.h> |
| 9 | |
| 10 | int board_early_init_f(void) |
| 11 | { |
| 12 | /* UART1: A55, UART2: M33, UART3: M7 */ |
| 13 | init_uart_clk(0); |
| 14 | |
| 15 | return 0; |
| 16 | } |
| 17 | |
| 18 | int board_init(void) |
| 19 | { |
| 20 | return 0; |
| 21 | } |
| 22 | |
| 23 | int board_late_init(void) |
| 24 | { |
| 25 | if (IS_ENABLED(CONFIG_ENV_IS_IN_MMC)) |
| 26 | board_late_mmc_env_init(); |
| 27 | |
| 28 | return 0; |
| 29 | } |
| 30 | |
| 31 | int board_phys_sdram_size(phys_size_t *size) |
| 32 | { |
| 33 | *size = PHYS_SDRAM_SIZE + PHYS_SDRAM_2_SIZE; |
| 34 | |
| 35 | return 0; |
| 36 | } |