X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=board%2Fst%2Fstm32f746-disco%2Fstm32f746-disco.c;h=e21cfc6e495579ef2762c1039adc119b113843bc;hb=83d290c56fab2d38cd1ab4c4cc7099559c1d5046;hp=2bb0f02c9683302924da19ddc7270b4635b3966d;hpb=55a3ef714f9867a9b2e18851cfdca906698e8c2f;p=platform%2Fkernel%2Fu-boot.git diff --git a/board/st/stm32f746-disco/stm32f746-disco.c b/board/st/stm32f746-disco/stm32f746-disco.c index 2bb0f02..e21cfc6 100644 --- a/board/st/stm32f746-disco/stm32f746-disco.c +++ b/board/st/stm32f746-disco/stm32f746-disco.c @@ -1,22 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0+ /* - * (C) Copyright 2016 - * Vikas Manocha, - * - * SPDX-License-Identifier: GPL-2.0+ + * Copyright (C) 2016, STMicroelectronics - All Rights Reserved + * Author(s): Vikas Manocha, for STMicroelectronics. */ #include #include +#include #include #include +#include +#include +#include #include #include #include #include -#include -#include -#include -#include #include #include @@ -71,24 +70,10 @@ int dram_init_banksize(void) return 0; } -#ifdef CONFIG_ETH_DESIGNWARE -static int stmmac_setup(void) -{ - clock_setup(SYSCFG_CLOCK_CFG); - /* Set >RMII mode */ - STM32_SYSCFG->pmc |= SYSCFG_PMC_MII_RMII_SEL; - clock_setup(STMMAC_CLOCK_CFG); - - return 0; -} - int board_early_init_f(void) { - stmmac_setup(); - return 0; } -#endif #ifdef CONFIG_SPL_BUILD #ifdef CONFIG_SPL_OS_BOOT @@ -117,7 +102,7 @@ void spl_board_init(void) } u32 spl_boot_device(void) { - return BOOT_DEVICE_NOR; + return BOOT_DEVICE_XIP; } #endif @@ -165,5 +150,16 @@ int board_late_init(void) int board_init(void) { gd->bd->bi_boot_params = gd->bd->bi_dram[0].start + 0x100; + +#ifdef CONFIG_ETH_DESIGNWARE + /* Set >RMII mode */ + STM32_SYSCFG->pmc |= SYSCFG_PMC_MII_RMII_SEL; +#endif + +#if defined(CONFIG_CMD_BMP) + bmp_display((ulong)stmicroelectronics_uboot_logo_8bit_rle, + BMP_ALIGN_CENTER, BMP_ALIGN_CENTER); +#endif /* CONFIG_CMD_BMP */ + return 0; }