]>
git.ipfire.org Git - people/ms/u-boot.git/blob - board/st/stm32f429-discovery/stm32f429-discovery.c
2 * (C) Copyright 2011, 2012, 2013
3 * Yuri Tikhonov, Emcraft Systems, yur@emcraft.com
4 * Alexander Potashev, Emcraft Systems, aspotashev@emcraft.com
5 * Vladimir Khusainov, Emcraft Systems, vlad@emcraft.com
6 * Pavel Boldin, Emcraft Systems, paboldin@emcraft.com
9 * Kamil Lulko, <kamil.lulko@gmail.com>
11 * SPDX-License-Identifier: GPL-2.0+
18 #include <asm/arch/stm32.h>
20 DECLARE_GLOBAL_DATA_PTR
;
27 rv
= uclass_get_device(UCLASS_RAM
, 0, &dev
);
29 debug("DRAM init failed: %d\n", rv
);
33 if (fdtdec_setup_memory_size() != 0)
39 int dram_init_banksize(void)
41 fdtdec_setup_memory_banksize();
46 u32
get_board_rev(void)
51 int board_early_init_f(void)
58 gd
->bd
->bi_boot_params
= CONFIG_SYS_SDRAM_BASE
+ 0x100;
63 #ifdef CONFIG_MISC_INIT_R
67 uint32_t u_id_low
, u_id_mid
, u_id_high
;
69 if (!env_get("serial#")) {
70 u_id_low
= readl(&STM32_U_ID
->u_id_low
);
71 u_id_mid
= readl(&STM32_U_ID
->u_id_mid
);
72 u_id_high
= readl(&STM32_U_ID
->u_id_high
);
73 sprintf(serialno
, "%08x%08x%08x",
74 u_id_high
, u_id_mid
, u_id_low
);
75 env_set("serial#", serialno
);