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 
board_early_init_f(void)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 
board_late_init(void)18 int board_late_init(void)
19 {
20 	if (IS_ENABLED(CONFIG_ENV_IS_IN_MMC))
21 		board_late_mmc_env_init();
22 
23 	return 0;
24 }
25 
board_phys_sdram_size(phys_size_t * size)26 int board_phys_sdram_size(phys_size_t *size)
27 {
28 	*size = PHYS_SDRAM_SIZE + PHYS_SDRAM_2_SIZE;
29 
30 	return 0;
31 }
32