diff options
Diffstat (limited to 'roms/u-boot/board/st/stm32h743-eval')
-rw-r--r-- | roms/u-boot/board/st/stm32h743-eval/Kconfig | 19 | ||||
-rw-r--r-- | roms/u-boot/board/st/stm32h743-eval/MAINTAINERS | 6 | ||||
-rw-r--r-- | roms/u-boot/board/st/stm32h743-eval/Makefile | 6 | ||||
-rw-r--r-- | roms/u-boot/board/st/stm32h743-eval/stm32h743-eval.c | 48 |
4 files changed, 79 insertions, 0 deletions
diff --git a/roms/u-boot/board/st/stm32h743-eval/Kconfig b/roms/u-boot/board/st/stm32h743-eval/Kconfig new file mode 100644 index 000000000..ea879b13c --- /dev/null +++ b/roms/u-boot/board/st/stm32h743-eval/Kconfig @@ -0,0 +1,19 @@ +if TARGET_STM32H743_EVAL + +config SYS_BOARD + string + default "stm32h743-eval" + +config SYS_VENDOR + string + default "st" + +config SYS_SOC + string + default "stm32h7" + +config SYS_CONFIG_NAME + string + default "stm32h743-eval" + +endif diff --git a/roms/u-boot/board/st/stm32h743-eval/MAINTAINERS b/roms/u-boot/board/st/stm32h743-eval/MAINTAINERS new file mode 100644 index 000000000..fda93db77 --- /dev/null +++ b/roms/u-boot/board/st/stm32h743-eval/MAINTAINERS @@ -0,0 +1,6 @@ +STM32H743 EVALUATION BOARD +M: Patrice Chotard <patrice.chotard@foss.st.com> +S: Maintained +F: board/st/stm32h743-eval +F: include/configs/stm32h743-eval.h +F: configs/stm32h743-eval_defconfig diff --git a/roms/u-boot/board/st/stm32h743-eval/Makefile b/roms/u-boot/board/st/stm32h743-eval/Makefile new file mode 100644 index 000000000..86ef19fc3 --- /dev/null +++ b/roms/u-boot/board/st/stm32h743-eval/Makefile @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Copyright (C) 2017, STMicroelectronics - All Rights Reserved +# Author(s): Patrice CHOTARD, <patrice.chotard@foss.st.com> for STMicroelectronics. + +obj-y := stm32h743-eval.o diff --git a/roms/u-boot/board/st/stm32h743-eval/stm32h743-eval.c b/roms/u-boot/board/st/stm32h743-eval/stm32h743-eval.c new file mode 100644 index 000000000..4091d5f9f --- /dev/null +++ b/roms/u-boot/board/st/stm32h743-eval/stm32h743-eval.c @@ -0,0 +1,48 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2017, STMicroelectronics - All Rights Reserved + * Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics. + */ + +#include <common.h> +#include <dm.h> +#include <init.h> +#include <log.h> +#include <asm/global_data.h> + +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; +} + +u32 get_board_rev(void) +{ + return 0; +} + +int board_init(void) +{ + gd->bd->bi_boot_params = gd->bd->bi_dram[0].start + 0x100; + return 0; +} |