From af1a266670d040d2f4083ff309d732d648afba2a Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Tue, 10 Oct 2023 14:33:42 +0000 Subject: Add submodule dependency files Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec --- .../board/st/stm32h750-art-pi/stm32h750-art-pi.c | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 roms/u-boot/board/st/stm32h750-art-pi/stm32h750-art-pi.c (limited to 'roms/u-boot/board/st/stm32h750-art-pi/stm32h750-art-pi.c') diff --git a/roms/u-boot/board/st/stm32h750-art-pi/stm32h750-art-pi.c b/roms/u-boot/board/st/stm32h750-art-pi/stm32h750-art-pi.c new file mode 100644 index 000000000..5785b2e57 --- /dev/null +++ b/roms/u-boot/board/st/stm32h750-art-pi/stm32h750-art-pi.c @@ -0,0 +1,58 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2021, STMicroelectronics - All Rights Reserved + * Author(s): Dillon Min + */ + +#include +#include +#include +#include +#include + +DECLARE_GLOBAL_DATA_PTR; + +int dram_init(void) +{ + struct udevice *dev; + int ret; + + ret = uclass_get_device(UCLASS_RAM, 0, &dev); + if (ret) { + debug("DRAM init failed: %d\n", ret); + return ret; + } + + if (fdtdec_setup_mem_size_base() != 0) + ret = -EINVAL; + + return ret; +} + +int dram_init_banksize(void) +{ + fdtdec_setup_memory_banksize(); + + return 0; +} + +int board_early_init_f(void) +{ + return 0; +} + +u32 get_board_rev(void) +{ + return 0; +} + +int board_late_init(void) +{ + return 0; +} + +int board_init(void) +{ + gd->bd->bi_boot_params = gd->bd->bi_dram[0].start + 0x100; + return 0; +} -- cgit