]>
git.ipfire.org Git - people/ms/u-boot.git/blob - board/st/stm32f429-evaluation/stm32f429-evaluation.c
2 * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
3 * Author(s): Patrice Chotard, <patrice.chotard@st.com> for STMicroelectronics.
5 * SPDX-License-Identifier: GPL-2.0+
12 #include <asm/arch/stm32.h>
14 DECLARE_GLOBAL_DATA_PTR
;
21 rv
= uclass_get_device(UCLASS_RAM
, 0, &dev
);
23 debug("DRAM init failed: %d\n", rv
);
27 if (fdtdec_setup_memory_size() != 0)
33 int dram_init_banksize(void)
35 fdtdec_setup_memory_banksize();
40 u32
get_board_rev(void)
45 int board_early_init_f(void)
52 gd
->bd
->bi_boot_params
= CONFIG_SYS_SDRAM_BASE
+ 0x100;
57 #ifdef CONFIG_MISC_INIT_R
61 u32 u_id_low
, u_id_mid
, u_id_high
;
63 if (!env_get("serial#")) {
64 u_id_low
= readl(&STM32_U_ID
->u_id_low
);
65 u_id_mid
= readl(&STM32_U_ID
->u_id_mid
);
66 u_id_high
= readl(&STM32_U_ID
->u_id_high
);
67 sprintf(serialno
, "%08x%08x%08x",
68 u_id_high
, u_id_mid
, u_id_low
);
69 env_set("serial#", serialno
);